aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-02-08 09:28:46 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-02-08 09:28:46 +0000
commitc049572d8164d0a8a4a844673f006e275375033e (patch)
tree2267429a7147f8f6cd5a67227bdaf86c246b6826
parentc5dd08b28f84d42f5ab35c7781828df7ba2dcac7 (diff)
downloadaports-c049572d8164d0a8a4a844673f006e275375033e.tar.gz
aports-c049572d8164d0a8a4a844673f006e275375033e.tar.bz2
aports-c049572d8164d0a8a4a844673f006e275375033e.tar.xz
main/vsftpd: disable seccomp sandbox by default
we currently don't have support for it in our default kernel fixes #1607
-rw-r--r--main/vsftpd/APKBUILD11
1 files changed, 10 insertions, 1 deletions
diff --git a/main/vsftpd/APKBUILD b/main/vsftpd/APKBUILD
index 03f5cef158..221122b0ff 100644
--- a/main/vsftpd/APKBUILD
+++ b/main/vsftpd/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=vsftpd
pkgver=3.0.2
-pkgrel=0
+pkgrel=1
pkgdesc="Very secure ftpd"
url="http://vsftpd.beasts.org"
arch="all"
@@ -33,6 +33,14 @@ prepare() {
build() {
cd $_builddir
make || return 1
+
+ # disable seccomp by default since we don't have it in kernel
+ cat >>vsftpd.conf<<EOF
+#
+# seccomp sandboxing requires kernel support
+seccomp_sandbox=0
+EOF
+
}
package() {
@@ -41,6 +49,7 @@ package() {
install -m644 -D vsftpd.8 "$pkgdir"/usr/share/man/man8/vsftpd.8
install -m644 -D vsftpd.conf.5 "$pkgdir"/usr/share/man/man5/vsftpd.conf.5
install -m644 -D vsftpd.conf "$pkgdir"/etc/vsftpd.conf
+
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
mkdir -p "$pkgdir"/usr/share/empty