pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/proftpd PKGREVISION++
details: https://anonhg.NetBSD.org/pkgsrc/rev/0f44eb1cfe80
branches: trunk
changeset: 496098:0f44eb1cfe80
user: salo <salo%pkgsrc.org@localhost>
date: Wed Jun 22 22:43:37 2005 +0000
description:
PKGREVISION++
- split PKG_OPTIONS to options.mk file
- fix issue with state directory in (typically) /var/run,
noted by Justin Newcomer on tech-pkg@
- delint
diffstat:
net/proftpd/Makefile | 62 +++++++------------------------------------
net/proftpd/PLIST | 4 +-
net/proftpd/distinfo | 3 +-
net/proftpd/files/proftpd.sh | 4 +-
net/proftpd/options.mk | 45 +++++++++++++++++++++++++++++++
net/proftpd/patches/patch-ab | 18 ++++++++++++
6 files changed, 80 insertions(+), 56 deletions(-)
diffs (215 lines):
diff -r 9ed1c51276a8 -r 0f44eb1cfe80 net/proftpd/Makefile
--- a/net/proftpd/Makefile Wed Jun 22 22:10:53 2005 +0000
+++ b/net/proftpd/Makefile Wed Jun 22 22:43:37 2005 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.21 2005/05/31 11:24:32 dillo Exp $
+# $NetBSD: Makefile,v 1.22 2005/06/22 22:43:37 salo Exp $
DISTNAME= proftpd-1.2.10
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= net
MASTER_SITES= ftp://ftp.proftpd.org/distrib/source/ \
ftp://ftp.servus.at/ProFTPD/distrib/source/ \
@@ -15,12 +15,12 @@
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
-GNU_CONFIGURE= # defined
+GNU_CONFIGURE= yes
+USE_PKGINSTALL= yes
USE_TOOLS+= gmake
-USE_PKGINSTALL= YES
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
-CONFIGURE_ARGS+= --localstatedir=${VARBASE}/run
+CONFIGURE_ARGS+= --localstatedir=${VARBASE}
CONFIGURE_ARGS+= --disable-sendfile
CONFIGURE_ARGS+= --enable-ctrls
@@ -29,54 +29,15 @@
CONF_FILES= ${PREFIX}/share/examples/proftpd/basic.conf \
${PKG_SYSCONFDIR}/proftpd.conf
-PKG_SUPPORTED_OPTIONS = pam wrap quota pgsql
-PKG_OPTIONS_VAR = PKG_OPTIONS.proftpd
-
-# This (or something like this must be in mk/bsd.options.mk) to allow
-# to see the supported options
-##BUILD_DEFS+=PKG_SUPPORTED_OPTIONS
-
-.include "../../mk/bsd.options.mk"
-
-.if !empty(PKG_OPTIONS:Mpam)
-CONFIGURE_ARGS+= --enable-auth-pam
-.include "../../mk/pam.buildlink3.mk"
-.endif
-
-.if !empty(PKG_OPTIONS:Mwrap)
-MODULES:=${MODULES}mod_wrap
-.endif
-
-MODULES=#defined
-.if !empty(PKG_OPTIONS:Mquota)
-MODULES:=${MODULES}mod_quota
-.endif
+SUBST_CLASSES+= man
+SUBST_MESSAGE.man= "Fixing paths in manual pages."
+SUBST_STAGE.man= pre-configure
+SUBST_FILES.man= utils/ftpcount.1.in utils/ftptop.1.in utils/ftpwho.1.in
+SUBST_SED.man= -e s,@LOCALSTATEDIR@/run/proftpd,${VARBASE}/run,
-## .if defined(PROFTPD_USE_LDAP) && ${PROFTPD_USE_LDAP} == "YES"
-## MODULES:= ${MODULES}:mod_ldap
-## DEPENDS+= openldap-[0-9]*:../../databases/openldap
-## .endif
-##
-## .if defined(PROFTPD_USE_MYSQL) && ${PROFTPD_USE_MYSQL} == "YES"
-## MODULES:= ${MODULES}:mod_sql:mod_sql_mysql
-## DEPENDS+= mysql-client-[0-9]*:../../databases/mysql-client
-## .endif
-##
-## .if defined(PROFTPD_USE_POSTGRES) && ${PROFTPD_USE_POSTGRES} == "YES"
-## MODULES:= ${MODULES}:mod_sql:mod_sql_postgres
-## DEPENDS+= postgresql-client-[0-9]*:../../databases/postgresql-client
-## .endif
-##
-## .if defined(PROFTPD_USE_README) && ${PROFTPD_USE_README} == "YES"
-## MODULES:= ${MODULES}:mod_readme
-## .endif
-
-.if !empty(MODULES)
-CONFIGURE_ARGS+= --with-modules=${MODULES}
-.endif
+.include "options.mk"
post-install:
- # documentation
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/proftpd
.for i in NEWS README README.IPv6 README.LDAP README.PAM README.modules
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/doc/proftpd
@@ -84,7 +45,6 @@
.for i in Configuration.html faq.html license.txt
${INSTALL_DATA} ${WRKSRC}/doc/${i} ${PREFIX}/share/doc/proftpd
.endfor
- # examples
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/proftpd
${INSTALL_DATA} ${WRKSRC}/sample-configurations/*.conf \
${PREFIX}/share/examples/proftpd
diff -r 9ed1c51276a8 -r 0f44eb1cfe80 net/proftpd/PLIST
--- a/net/proftpd/PLIST Wed Jun 22 22:10:53 2005 +0000
+++ b/net/proftpd/PLIST Wed Jun 22 22:43:37 2005 +0000
@@ -1,8 +1,8 @@
-@comment $NetBSD: PLIST,v 1.8 2005/05/02 20:34:03 reed Exp $
+@comment $NetBSD: PLIST,v 1.9 2005/06/22 22:43:37 salo Exp $
bin/ftpcount
-bin/ftpwho
bin/ftpdctl
bin/ftptop
+bin/ftpwho
man/man1/ftpcount.1
man/man1/ftptop.1
man/man1/ftpwho.1
diff -r 9ed1c51276a8 -r 0f44eb1cfe80 net/proftpd/distinfo
--- a/net/proftpd/distinfo Wed Jun 22 22:10:53 2005 +0000
+++ b/net/proftpd/distinfo Wed Jun 22 22:43:37 2005 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.9 2005/02/24 12:14:01 agc Exp $
+$NetBSD: distinfo,v 1.10 2005/06/22 22:43:37 salo Exp $
SHA1 (proftpd-1.2.10.tar.gz) = ea12d139b8b47168cabcd993b137b2360bba1465
RMD160 (proftpd-1.2.10.tar.gz) = c96cadc6bfef0f77f2d44ed901b55474c6f6a464
Size (proftpd-1.2.10.tar.gz) = 1182176 bytes
SHA1 (patch-aa) = 3784f6aed87b327741685d45d453aa2ac98dd98b
+SHA1 (patch-ab) = cc760fc91846a0fc595e2e76d5a1ef582915034d
diff -r 9ed1c51276a8 -r 0f44eb1cfe80 net/proftpd/files/proftpd.sh
--- a/net/proftpd/files/proftpd.sh Wed Jun 22 22:10:53 2005 +0000
+++ b/net/proftpd/files/proftpd.sh Wed Jun 22 22:43:37 2005 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: proftpd.sh,v 1.1 2003/03/22 10:15:27 jmmv Exp $
+# $NetBSD: proftpd.sh,v 1.2 2005/06/22 22:43:37 salo Exp $
#
# PROVIDE: proftpd
@@ -12,7 +12,7 @@
name="proftpd"
rcvar=$name
command="@PREFIX@/sbin/${name}"
-pidfile="/var/run/${name}.pid"
+pidfile="@VARBASE@/run/${name}.pid"
required_files="@PKG_SYSCONFDIR@/proftpd.conf"
load_rc_config $name
diff -r 9ed1c51276a8 -r 0f44eb1cfe80 net/proftpd/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/proftpd/options.mk Wed Jun 22 22:43:37 2005 +0000
@@ -0,0 +1,45 @@
+# $NetBSD: options.mk,v 1.1 2005/06/22 22:43:37 salo Exp $
+#
+
+PKG_OPTIONS_VAR = PKG_OPTIONS.proftpd
+PKG_SUPPORTED_OPTIONS = pam wrap quota
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mpam)
+CONFIGURE_ARGS+= --enable-auth-pam
+.include "../../mk/pam.buildlink3.mk"
+.endif
+
+MODULES=#defined
+
+.if !empty(PKG_OPTIONS:Mwrap)
+MODULES:=${MODULES}mod_wrap
+.endif
+
+.if !empty(PKG_OPTIONS:Mquota)
+MODULES:=${MODULES}mod_quota
+.endif
+
+## .if defined(PROFTPD_USE_LDAP) && ${PROFTPD_USE_LDAP} == "YES"
+## MODULES:= ${MODULES}:mod_ldap
+## DEPENDS+= openldap-[0-9]*:../../databases/openldap
+## .endif
+##
+## .if defined(PROFTPD_USE_MYSQL) && ${PROFTPD_USE_MYSQL} == "YES"
+## MODULES:= ${MODULES}:mod_sql:mod_sql_mysql
+## DEPENDS+= mysql-client-[0-9]*:../../databases/mysql-client
+## .endif
+##
+## .if defined(PROFTPD_USE_POSTGRES) && ${PROFTPD_USE_POSTGRES} == "YES"
+## MODULES:= ${MODULES}:mod_sql:mod_sql_postgres
+## DEPENDS+= postgresql-client-[0-9]*:../../databases/postgresql-client
+## .endif
+##
+## .if defined(PROFTPD_USE_README) && ${PROFTPD_USE_README} == "YES"
+## MODULES:= ${MODULES}:mod_readme
+## .endif
+
+.if !empty(MODULES)
+CONFIGURE_ARGS+= --with-modules=${MODULES}
+.endif
diff -r 9ed1c51276a8 -r 0f44eb1cfe80 net/proftpd/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/proftpd/patches/patch-ab Wed Jun 22 22:43:37 2005 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-ab,v 1.1 2005/06/22 22:43:37 salo Exp $
+
+--- configure.orig 2004-05-26 04:17:24.000000000 +0200
++++ configure 2005-06-23 00:25:54.000000000 +0200
+@@ -16809,11 +16809,11 @@
+ _ACEOF
+
+ cat >>confdefs.h <<_ACEOF
+-#define PID_FILE_PATH "`eval echo "${localstatedir}/proftpd.pid"`"
++#define PID_FILE_PATH "`eval echo "${localstatedir}/run/proftpd.pid"`"
+ _ACEOF
+
+ cat >>confdefs.h <<_ACEOF
+-#define RUN_DIR "`eval echo "${localstatedir}/proftpd"`"
++#define RUN_DIR "`eval echo "${localstatedir}/run"`"
+ _ACEOF
+
+
Home |
Main Index |
Thread Index |
Old Index