summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorshattered <shattered>2009-01-11 22:47:54 +0000
committershattered <shattered>2009-01-11 22:47:54 +0000
commit6277e4ca7b7aaf355165957ee11af4ab400e9d51 (patch)
tree1305212df3fe833086cd11066d31a53e3b56d8ec /net
parent5c4e726dcc6d8cfac962f874a45dcb9cbb471f88 (diff)
downloadpkgsrc-6277e4ca7b7aaf355165957ee11af4ab400e9d51.tar.gz
- rc.d script: replace interpreter, add 'reload' command
- install 'ftpasswd' script from contrib OK by kim@.
Diffstat (limited to 'net')
-rw-r--r--net/proftpd/Makefile7
-rw-r--r--net/proftpd/PLIST3
-rw-r--r--net/proftpd/files/proftpd.sh5
3 files changed, 10 insertions, 5 deletions
diff --git a/net/proftpd/Makefile b/net/proftpd/Makefile
index 72f6f4c09a1..2fe6f9fd30e 100644
--- a/net/proftpd/Makefile
+++ b/net/proftpd/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.52 2008/12/28 08:56:59 kim Exp $
+# $NetBSD: Makefile,v 1.53 2009/01/11 22:47:54 shattered Exp $
DISTNAME= proftpd-1.3.2rc3
-#PKGREVISION= 1
+PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= ftp://ftp.proftpd.org/distrib/source/ \
ftp://ftp.servus.at/ProFTPD/distrib/source/ \
@@ -31,6 +31,7 @@ CONFIGURE_ENV+= install_user=${ROOT_USER} install_group=${ROOT_GROUP}
BUILD_DEFS+= VARBASE
RCD_SCRIPTS= proftpd
+REPLACE_PERL+= contrib/ftpasswd
CONF_FILES= ${PREFIX}/share/examples/proftpd/basic.conf \
${PKG_SYSCONFDIR}/proftpd.conf
@@ -64,6 +65,8 @@ post-install:
.endfor
${INSTALL_DATA} ${WRKSRC}/sample-configurations/*.conf \
${DESTDIR}${PREFIX}/share/examples/proftpd
+ ${INSTALL_SCRIPT} ${WRKSRC}/contrib/ftpasswd \
+ ${DESTDIR}${PREFIX}/share/examples/proftpd
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/net/proftpd/PLIST b/net/proftpd/PLIST
index e4bcfe77bfc..7f4f227856e 100644
--- a/net/proftpd/PLIST
+++ b/net/proftpd/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.14 2008/10/03 06:52:03 martti Exp $
+@comment $NetBSD: PLIST,v 1.15 2009/01/11 22:47:54 shattered Exp $
bin/ftpcount
bin/ftpdctl
bin/ftptop
@@ -83,6 +83,7 @@ share/doc/proftpd/license.txt
share/examples/proftpd/anonymous.conf
share/examples/proftpd/basic.conf
share/examples/proftpd/complex-virtual.conf
+share/examples/proftpd/ftpasswd
share/examples/proftpd/mod_sql.conf
share/examples/proftpd/virtual.conf
share/examples/rc.d/proftpd
diff --git a/net/proftpd/files/proftpd.sh b/net/proftpd/files/proftpd.sh
index 0d24dcfe199..e2c0cc220d1 100644
--- a/net/proftpd/files/proftpd.sh
+++ b/net/proftpd/files/proftpd.sh
@@ -1,6 +1,6 @@
-#!/bin/sh
+#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: proftpd.sh,v 1.2 2005/06/22 22:43:37 salo Exp $
+# $NetBSD: proftpd.sh,v 1.3 2009/01/11 22:47:54 shattered Exp $
#
# PROVIDE: proftpd
@@ -14,6 +14,7 @@ rcvar=$name
command="@PREFIX@/sbin/${name}"
pidfile="@VARBASE@/run/${name}.pid"
required_files="@PKG_SYSCONFDIR@/proftpd.conf"
+extra_commands="reload"
load_rc_config $name
run_rc_command "$1"