1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

- install this port correctly.

- minor cleanups.

PR:		62912
Submitted by:	Hsin-Hsiung Chang <sexbear@tmu.edu.tw>
Reviewed by:	Hsin-Hsiung Chang <sexbear@tmu.edu.tw>
This commit is contained in:
Yen-Ming Lee 2004-02-18 09:17:04 +00:00
parent 58a0882a1b
commit 75a39de023
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=101308
2 changed files with 10 additions and 4 deletions

View File

@ -1,6 +1,6 @@
# New ports collection makefile for: mailmgr
# Date created: 14 August 2003
# Whom: Hsin-HSIUNG CHANG
# Whom: Hsin-Hsiung Chang
#
# $FreeBSD$
#
@ -14,9 +14,13 @@ MAINTAINER= sexbear@tmu.edu.tw
COMMENT= Sendmail Analisys Report Generator
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --prefix=${PREFIX}
do-install:
@${CAT} ${PKGMESSAGE}
${INSTALL_DATA} ${WRKSRC}/mailmgr.conf ${PREFIX}/etc/mailmgr.conf.default
.if !exists(${PREFIX}/etc/mailmgr.conf)
${INSTALL_DATA} ${WRKSRC}/mailmgr.conf ${PREFIX}/etc/mailmgr.conf
.endif
${INSTALL_PROGRAM} ${WRKSRC}/mailmgr ${PREFIX}/bin
@${SED} -e 's,PREFIX,${PREFIX},g' ${PKGMESSAGE}
.include <bsd.port.mk>

View File

@ -1,2 +1,4 @@
etc/mailmgr.conf
@unexec if cmp -s %D/etc/mailmgr.conf %D/etc/mailmgr.conf.default; then rm -f %D/etc/mailmgr.conf; fi
etc/mailmgr.conf.default
@exec if [ ! -f %D/etc/mailmgr.conf ] ; then cp -p %D/%F %B/mailmgr.conf; fi
bin/mailmgr