diff options
author | jmmv <jmmv@pkgsrc.org> | 2003-03-22 10:15:27 +0000 |
---|---|---|
committer | jmmv <jmmv@pkgsrc.org> | 2003-03-22 10:15:27 +0000 |
commit | c9a7a5aa11181f9e3bdf7ab56630d417e35d88b8 (patch) | |
tree | df04381955b2bd8ee418ea8a8b2ad1dc5931b4a3 /net/proftpd | |
parent | bb3388551d33eff4548b3430dab553a03cf68a84 (diff) | |
download | pkgsrc-c9a7a5aa11181f9e3bdf7ab56630d417e35d88b8.tar.gz |
Install an rc.d script, provided in PR pkg/20244 by David Ferlier.
Honour PKG_SYSCONFDIR and install a default configuration file.
Bump PKGREVISION.
Diffstat (limited to 'net/proftpd')
-rw-r--r-- | net/proftpd/Makefile | 11 | ||||
-rw-r--r-- | net/proftpd/PLIST | 3 | ||||
-rw-r--r-- | net/proftpd/files/proftpd.sh | 19 |
3 files changed, 30 insertions, 3 deletions
diff --git a/net/proftpd/Makefile b/net/proftpd/Makefile index 278e8833b38..1a4099cf696 100644 --- a/net/proftpd/Makefile +++ b/net/proftpd/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.6 2003/03/05 09:05:33 martti Exp $ +# $NetBSD: Makefile,v 1.7 2003/03/22 10:15:27 jmmv Exp $ DISTNAME= proftpd-1.2.8 +PKGREVISION= 1 CATEGORIES= net MASTER_SITES= ftp://ftp.proftpd.org/distrib/source/ EXTRACT_SUFX= .tar.bz2 @@ -11,11 +12,17 @@ COMMENT= FTP server with Apache like configuration GNU_CONFIGURE= # defined USE_GMAKE= # defined +USE_PKGINSTALL= YES -CONFIGURE_ARGS+=--sysconfdir=${PREFIX}/etc +CONFIGURE_ARGS+=--sysconfdir=${PKG_SYSCONFDIR} CONFIGURE_ARGS+=--localstatedir=/var/run CONFIGURE_ARGS+=--disable-sendfile +RCD_SCRIPTS= proftpd + +CONF_FILES= ${PREFIX}/share/examples/proftpd/basic.conf \ + ${PKG_SYSCONFDIR}/proftpd.conf + ## .if defined(PROFTPD_USE_LDAP) && ${PROFTPD_USE_LDAP} == "YES" ## MODULES:= ${MODULES}:mod_ldap ## DEPENDS+= openldap-[0-9]*:../../databases/openldap diff --git a/net/proftpd/PLIST b/net/proftpd/PLIST index d1f9a47fb6d..46334f2c1ea 100644 --- a/net/proftpd/PLIST +++ b/net/proftpd/PLIST @@ -1,7 +1,8 @@ -@comment $NetBSD: PLIST,v 1.3 2002/12/31 09:19:04 martti Exp $ +@comment $NetBSD: PLIST,v 1.4 2003/03/22 10:15:27 jmmv Exp $ bin/ftpcount bin/ftpwho bin/ftptop +etc/rc.d/proftpd man/man1/ftpcount.1 man/man1/ftpwho.1 man/man5/xferlog.5 diff --git a/net/proftpd/files/proftpd.sh b/net/proftpd/files/proftpd.sh new file mode 100644 index 00000000000..336fdd1601a --- /dev/null +++ b/net/proftpd/files/proftpd.sh @@ -0,0 +1,19 @@ +#!/bin/sh +# +# $NetBSD: proftpd.sh,v 1.1 2003/03/22 10:15:27 jmmv Exp $ +# + +# PROVIDE: proftpd +# REQUIRE: DAEMON LOGIN network +# KEYWORD: shutdown + +. /etc/rc.subr + +name="proftpd" +rcvar=$name +command="@PREFIX@/sbin/${name}" +pidfile="/var/run/${name}.pid" +required_files="@PKG_SYSCONFDIR@/proftpd.conf" + +load_rc_config $name +run_rc_command "$1" |