summaryrefslogtreecommitdiffstats
path: root/ftp/vsftpd
diff options
context:
space:
mode:
authornbm <nbm@FreeBSD.org>2002-03-23 11:12:19 +0000
committernbm <nbm@FreeBSD.org>2002-03-23 11:12:19 +0000
commit83af2fefa78381df02c372986816c7f797631d00 (patch)
tree3c7019f4d75cdf53fed98d85a0341f13dbcaad66 /ftp/vsftpd
parent69eebdbaccc2bc84eccd818d83bb921206556cc9 (diff)
downloadFreeBSD-ports-83af2fefa78381df02c372986816c7f797631d00.zip
FreeBSD-ports-83af2fefa78381df02c372986816c7f797631d00.tar.gz
Make port more verbose about creating users and what users to remove if
no longer necessary. PR: 28179 Submitted by: Rob Simmons <rsimmons@beanweevil.wlcg.com>
Diffstat (limited to 'ftp/vsftpd')
-rw-r--r--ftp/vsftpd/pkg-deinstall16
-rw-r--r--ftp/vsftpd/pkg-install2
2 files changed, 18 insertions, 0 deletions
diff --git a/ftp/vsftpd/pkg-deinstall b/ftp/vsftpd/pkg-deinstall
new file mode 100644
index 0000000..ed72e4c
--- /dev/null
+++ b/ftp/vsftpd/pkg-deinstall
@@ -0,0 +1,16 @@
+#!/bin/sh
+# $FreeBSD$
+#
+
+if [ "$2" != "POST-DEINSTALL" ]; then
+ exit 0
+fi
+
+USER=vsftpd
+
+if pw usershow "${USER}" 2>/dev/null 1>&2; then
+ echo "To delete FTP user permanently, use 'pw userdel ${USER}'"
+ echo "Don't do this if you're using FreeBSD's anonymous FTP server"
+fi
+
+exit 0
diff --git a/ftp/vsftpd/pkg-install b/ftp/vsftpd/pkg-install
index 7127bb2..cf864bc 100644
--- a/ftp/vsftpd/pkg-install
+++ b/ftp/vsftpd/pkg-install
@@ -21,6 +21,7 @@ foreach $group (@groups) {
if ($result) {
die "Failed to add group $group as gid $gids{$group}\n";
}
+ print "Added group $group for vsftpd\n";
}
}
@@ -33,6 +34,7 @@ foreach $user (keys %users) {
if ($result) {
die "Failed to add user $user as uid $uids{$user}\n";
}
+ print "Added user $user for vsftpd\n";
}
}
OpenPOWER on IntegriCloud