From 53704a2b4e82cb004d1c0f68ec93240d6f16a164 Mon Sep 17 00:00:00 2001 From: Neil Blakey-Milner Date: Sat, 23 Mar 2002 11:12:19 +0000 Subject: Make port more verbose about creating users and what users to remove if no longer necessary. PR: 28179 Submitted by: Rob Simmons --- ftp/vsftpd/pkg-deinstall | 16 ++++++++++++++++ ftp/vsftpd/pkg-install | 2 ++ 2 files changed, 18 insertions(+) create mode 100644 ftp/vsftpd/pkg-deinstall (limited to 'ftp/vsftpd') 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"; } } -- cgit v1.2.3