aboutsummaryrefslogtreecommitdiffstats
path: root/main/vsftpd
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2013-01-01 13:06:30 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2013-01-01 13:06:41 +0000
commit88b38d7fa47bbeab06b85ef0fd117cda0a70b2d2 (patch)
tree633c56a7fec6a2f082fa75e32187b5186503fb1e /main/vsftpd
parentfb29be2c662525730775f67aae674a87914da8cb (diff)
downloadaports-88b38d7fa47bbeab06b85ef0fd117cda0a70b2d2.tar.bz2
aports-88b38d7fa47bbeab06b85ef0fd117cda0a70b2d2.tar.xz
main/vsftpd: run daemon with vsftp user/group
Diffstat (limited to 'main/vsftpd')
-rw-r--r--main/vsftpd/APKBUILD5
-rw-r--r--main/vsftpd/vsftpd.confd4
-rwxr-xr-xmain/vsftpd/vsftpd.pre-install3
3 files changed, 8 insertions, 4 deletions
diff --git a/main/vsftpd/APKBUILD b/main/vsftpd/APKBUILD
index e4b0466d8b..ef353ee3e6 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=1
+pkgrel=2
pkgdesc="Very secure ftpd"
url="http://vsftpd.beasts.org"
arch="all"
@@ -10,6 +10,7 @@ license="GPL"
depends=
makedepends="openssl-dev libcap-dev linux-pam-dev"
subpackages="$pkgname-doc"
+install="$pkgname.pre-install"
source="https://security.appspot.com/downloads/vsftpd-${pkgver}.tar.gz
vsftpd-enable-ssl.patch
vsftpd-gnu-source.patch
@@ -50,4 +51,4 @@ md5sums="8b00c749719089401315bd3c44dddbb2 vsftpd-3.0.2.tar.gz
f3cbaf364cd3c46a2a03b00de9d7e184 vsftpd-enable-ssl.patch
f2245efcc271356743805f38d6c5aea3 vsftpd-gnu-source.patch
b48784af42b0f787e55276fc20476aa2 vsftpd.initd
-ac2ae36e4849bf50e0f03fa5e02a7bae vsftpd.confd"
+9e495776096c78c3f9d9e6756a8c3003 vsftpd.confd"
diff --git a/main/vsftpd/vsftpd.confd b/main/vsftpd/vsftpd.confd
index 0ef89316b9..f14602696d 100644
--- a/main/vsftpd/vsftpd.confd
+++ b/main/vsftpd/vsftpd.confd
@@ -5,5 +5,5 @@
#
OPTS="/etc/vsftpd/vsftpd.conf"
-USER="nobody"
-GROUP="nobody"
+USER="vsftp"
+GROUP="vsftp"
diff --git a/main/vsftpd/vsftpd.pre-install b/main/vsftpd/vsftpd.pre-install
new file mode 100755
index 0000000000..cb151882b0
--- /dev/null
+++ b/main/vsftpd/vsftpd.pre-install
@@ -0,0 +1,3 @@
+#!/bin/sh
+addgroup -S vsftp &>/dev/null
+adduser -h /var/lib/vsftpd -s /bin/false -G vsftp -S vsftp &>/dev/null