diff options
author | obache <obache@pkgsrc.org> | 2010-10-09 07:26:04 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2010-10-09 07:26:04 +0000 |
commit | 1aa2f76dda66ed02b58dae1c600d774c38a47869 (patch) | |
tree | 52cc76def91f007867258e6948524be35f27d0a2 /mail/mailagent | |
parent | 7ab17df0300ac968e0d8ac2c4ebbe68a95a8900a (diff) | |
download | pkgsrc-1aa2f76dda66ed02b58dae1c600d774c38a47869.tar.gz |
* no interactive in configure stage since 3 years 7 months ago.
* add user-destdir installation support.
* no for workref of cat command.
* honor PKGMANDIR.
Diffstat (limited to 'mail/mailagent')
-rw-r--r-- | mail/mailagent/Makefile | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/mail/mailagent/Makefile b/mail/mailagent/Makefile index 0c44164755a..de016849940 100644 --- a/mail/mailagent/Makefile +++ b/mail/mailagent/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.19 2010/10/09 05:58:27 obache Exp $ +# $NetBSD: Makefile,v 1.20 2010/10/09 07:26:04 obache Exp $ DISTNAME= mailagent-3.0.73 CATEGORIES= mail @@ -7,12 +7,13 @@ MASTER_SITES= ${MASTER_SITE_PERL_CPAN:S/by-module/by-authors\/id\/RAM/g} MAINTAINER= pkgsrc-users@NetBSD.org COMMENT= Sophisticated automatic mail-processing tool +PKG_DESTDIR_SUPPORT= user-destdir + USE_TOOLS+= perl:run RESTRICTED= Correct FQDN needs to be hardcoded NO_BIN_ON_FTP= ${RESTRICTED} NO_BIN_ON_CDROM= ${RESTRICTED} -INTERACTIVE_STAGE= configure MAKE_JOBS_SAFE= no @@ -22,9 +23,9 @@ CONFIGURE_ARGS+= -dres CONFIGURE_ARGS+= -Dperlpath=${PERL5:Q} CONFIGURE_ARGS+= -Dutmp='/var/run/utmp' CONFIGURE_ARGS+= -Dprefix=${PREFIX:Q} -CONFIGURE_ARGS+= -Dmansrc=${PREFIX:Q}/man/man1 +CONFIGURE_ARGS+= -Dmansrc=${PREFIX:Q}/${PKGMANDIR}/man1 CONFIGURE_ARGS+= -Dnotifypatches='false' -MAKE_ENV+= PATH=`${DIRNAME} ${PERL5}`:${PATH:Q} +CONFIGURE_ARGS+= -Dcat=${CAT:Q} INSTALL_TARGET= install install.man MAILAGENT_DOMAIN?= example.com @@ -34,6 +35,12 @@ MAILAGENT_ORGANIZATION?= Example Company BUILD_DEFS+= MAILAGENT_DOMAIN MAILAGENT_EMAIL MAILAGENT_FQDN MAILAGENT_ORGANIZATION +INSTALL_MAKE_FLAGS+= BINDIR=${DESTDIR}${PREFIX}/bin +INSTALL_MAKE_FLAGS+= SCRIPTDIR=${DESTDIR}${PREFIX}/bin +INSTALL_MAKE_FLAGS+= PRIVLIB=${DESTDIR}${PREFIX}/lib/mailagent +INSTALL_MAKE_FLAGS+= MANSRC=${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 +INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1 + CF= ${WRKSRC}/config.sh pre-extract: @@ -59,10 +66,8 @@ pre-configure: ${ECHO} "orgname='${MAILAGENT_ORGANIZATION}'" >> ${CF} post-install: - ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mailagent - ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mailagent/misc - ${CP} -pR ${WRKSRC}/misc/* ${PREFIX}/share/examples/mailagent/misc - ${LN} -fs ${PREFIX}/lib/mailagent/examples \ - ${PREFIX}/share/examples/mailagent/agent + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/mailagent + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/mailagent/misc + ${CP} -pR ${WRKSRC}/misc/* ${DESTDIR}${PREFIX}/share/examples/mailagent/misc .include "../../mk/bsd.pkg.mk" |