2007-07-06 13:04:40 +02:00
|
|
|
# $NetBSD: Makefile,v 1.42 2007/07/06 11:04:40 martti Exp $
|
2001-10-22 16:26:45 +02:00
|
|
|
|
2007-07-06 13:04:40 +02:00
|
|
|
DISTNAME= proftpd-1.3.1rc3
|
|
|
|
#PKGREVISION= 1
|
2007-01-24 06:22:01 +01:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= ftp://ftp.proftpd.org/distrib/source/ \
|
|
|
|
ftp://ftp.servus.at/ProFTPD/distrib/source/ \
|
|
|
|
ftp://ftp.fsn.hu/pub/proftpd/distrib/source/ \
|
|
|
|
ftp://ftp.middle-earth.it/proftpd/
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2001-10-22 16:26:45 +02:00
|
|
|
|
2007-01-24 06:22:01 +01:00
|
|
|
MAINTAINER= martti@NetBSD.org
|
|
|
|
HOMEPAGE= http://www.proftpd.org/
|
|
|
|
COMMENT= FTP server with Apache like configuration
|
2001-10-22 16:26:45 +02:00
|
|
|
|
2007-01-24 06:22:01 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
|
2003-09-23 20:26:05 +02:00
|
|
|
|
2007-01-24 06:22:01 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_TOOLS+= gmake intltool
|
2001-10-22 16:26:45 +02:00
|
|
|
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
|
|
|
|
CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q}
|
2004-10-14 01:03:52 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-sendfile
|
|
|
|
CONFIGURE_ARGS+= --enable-ctrls
|
2006-12-14 12:19:46 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-nls
|
2001-10-22 16:26:45 +02:00
|
|
|
|
2007-01-24 06:22:01 +01:00
|
|
|
CONFIGURE_ENV+= install_user=${ROOT_USER} install_group=${ROOT_GROUP}
|
2006-05-01 23:17:06 +02:00
|
|
|
|
2007-01-24 06:22:01 +01:00
|
|
|
BUILD_DEFS+= VARBASE
|
2006-12-14 12:19:46 +01:00
|
|
|
|
2007-01-24 06:22:01 +01:00
|
|
|
RCD_SCRIPTS= proftpd
|
2003-03-22 11:15:27 +01:00
|
|
|
|
2007-01-24 06:22:01 +01:00
|
|
|
CONF_FILES= ${PREFIX:Q}/share/examples/proftpd/basic.conf \
|
|
|
|
${PKG_SYSCONFDIR:Q}/proftpd.conf
|
2003-03-22 11:15:27 +01:00
|
|
|
|
2005-06-23 00:43:37 +02:00
|
|
|
SUBST_CLASSES+= man
|
2006-02-17 08:43:36 +01:00
|
|
|
SUBST_MESSAGE.man= Fixing paths in manual pages.
|
2005-06-23 00:43:37 +02:00
|
|
|
SUBST_STAGE.man= pre-configure
|
|
|
|
SUBST_FILES.man= utils/ftpcount.1.in utils/ftptop.1.in utils/ftpwho.1.in
|
2006-02-17 08:43:36 +01:00
|
|
|
SUBST_SED.man= -e s,@LOCALSTATEDIR@/run/proftpd,${VARBASE:Q}/run,
|
2004-08-30 20:13:18 +02:00
|
|
|
|
2006-12-14 12:19:46 +01:00
|
|
|
INSTALLATION_DIRS+= share/doc/proftpd
|
|
|
|
INSTALLATION_DIRS+= share/examples/proftpd
|
|
|
|
|
2007-01-24 06:22:01 +01:00
|
|
|
PLIST_SRC+= ${PKGDIR}/PLIST
|
|
|
|
|
2005-06-23 00:43:37 +02:00
|
|
|
.include "options.mk"
|
2001-10-22 16:26:45 +02:00
|
|
|
|
|
|
|
post-install:
|
2005-11-03 20:09:46 +01:00
|
|
|
.for i in NEWS README README.IPv6 README.LDAP README.PAM README.capabilities \
|
|
|
|
README.classes README.controls README.facl README.modules
|
2006-03-02 11:46:20 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC:Q}/${i:Q} ${PREFIX:Q}/share/doc/proftpd
|
2001-10-22 16:26:45 +02:00
|
|
|
.endfor
|
2002-06-10 07:49:41 +02:00
|
|
|
.for i in Configuration.html faq.html license.txt
|
2006-03-02 11:46:20 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC:Q}/doc/${i:Q} ${PREFIX:Q}/share/doc/proftpd
|
2001-10-22 16:26:45 +02:00
|
|
|
.endfor
|
2006-02-17 08:43:36 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC:Q}/sample-configurations/*.conf \
|
|
|
|
${PREFIX:Q}/share/examples/proftpd
|
2001-10-22 16:26:45 +02:00
|
|
|
|
2006-12-14 12:19:46 +01:00
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
2001-10-22 16:26:45 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|