summaryrefslogtreecommitdiff
path: root/ftp
diff options
context:
space:
mode:
authorNeil Blakey-Milner <nbm@FreeBSD.org>2002-03-23 11:12:19 +0000
committerNeil Blakey-Milner <nbm@FreeBSD.org>2002-03-23 11:12:19 +0000
commit53704a2b4e82cb004d1c0f68ec93240d6f16a164 (patch)
tree0d14b03c0b81d4f23a0bf65cd563ebe998bc1e97 /ftp
parentUpdate to version 0.58.3 (diff)
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>
Notes
Notes: svn path=/head/; revision=56484
Diffstat (limited to 'ftp')
-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 000000000000..ed72e4c47c25
--- /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 7127bb221804..cf864bc13035 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";
}
}