summaryrefslogtreecommitdiffstats
path: root/ftp/vsftpd
diff options
context:
space:
mode:
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