aboutsummaryrefslogtreecommitdiffstats
path: root/ftp
diff options
context:
space:
mode:
authornbm <nbm@FreeBSD.org>2002-03-23 19:12:19 +0800
committernbm <nbm@FreeBSD.org>2002-03-23 19:12:19 +0800
commit83af2fefa78381df02c372986816c7f797631d00 (patch)
tree3c7019f4d75cdf53fed98d85a0341f13dbcaad66 /ftp
parent69eebdbaccc2bc84eccd818d83bb921206556cc9 (diff)
downloadfreebsd-ports-gnome-83af2fefa78381df02c372986816c7f797631d00.tar.gz
freebsd-ports-gnome-83af2fefa78381df02c372986816c7f797631d00.tar.zst
freebsd-ports-gnome-83af2fefa78381df02c372986816c7f797631d00.zip
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')
-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";
}
}