- cleanup
- make use of MAKE_FLAGS so this port respects CC and CFLAGS
This commit is contained in:
parent
0ba870b439
commit
d2db3d6d76
@ -1,8 +1,7 @@
|
||||
# $OpenBSD: Makefile,v 1.16 2000/01/30 20:01:46 jakob Exp $
|
||||
# $OpenBSD: Makefile,v 1.17 2000/02/17 06:28:59 brad Exp $
|
||||
|
||||
DISTNAME= postfix-19991231-pl04
|
||||
CATEGORIES= mail
|
||||
|
||||
MASTER_SITES= ftp://ftp.merit.edu/postfix/official/ \
|
||||
ftp://ftp.sunet.se/pub/unix/mail/postfix/official/ \
|
||||
ftp://ftp.tau.ac.il/pub/unix/mail/postfix/official/ \
|
||||
@ -12,36 +11,39 @@ MAINTAINER= jakob@openbsd.org
|
||||
|
||||
NO_CONFIGURE= yes
|
||||
|
||||
MAKE_FLAGS= CC="${CC}" DEBUG="" OPT="${CFLAGS}" \
|
||||
OPTS="CC=\"${CC}\" DEBUG=\"\" OPT=\"${CFLAGS}\""
|
||||
|
||||
ALL_TARGET= default
|
||||
|
||||
pre-install:
|
||||
@${SH} ${PKGDIR}/INSTALL ${DISTNAME} PRE-INSTALL
|
||||
@PKG_PREFIX="${PREFIX}" sh ${PKGDIR}/INSTALL ${DISTNAME} PRE-INSTALL
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/lib/postfix
|
||||
${INSTALL_PROGRAM_DIR} ${PREFIX}/libexec/postfix
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/postfix
|
||||
@echo "-> Installing postfix commands in ${PREFIX}/sbin"
|
||||
@${INSTALL_PROGRAM} ${WRKSRC}/bin/* ${PREFIX}/sbin
|
||||
@${INSTALL_SCRIPT} ${FILESDIR}/postfix-enable ${PREFIX}/sbin
|
||||
@${INSTALL_SCRIPT} ${FILESDIR}/postfix-disable ${PREFIX}/sbin
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/bin/* ${PREFIX}/sbin
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/postfix-enable ${PREFIX}/sbin
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/postfix-disable ${PREFIX}/sbin
|
||||
@echo "-> Installing postfix daemons in ${PREFIX}/libexec/postfix"
|
||||
@${INSTALL_PROGRAM_DIR} ${PREFIX}/libexec/postfix
|
||||
@${INSTALL_PROGRAM} ${WRKSRC}/libexec/* ${PREFIX}/libexec/postfix
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/libexec/* ${PREFIX}/libexec/postfix
|
||||
@echo "-> Installing postfix sample config files in ${PREFIX}/lib/postfix"
|
||||
@${INSTALL_DATA_DIR} ${PREFIX}/lib/postfix
|
||||
@${INSTALL_DATA} ${WRKSRC}/conf/* ${PREFIX}/lib/postfix
|
||||
${INSTALL_DATA} ${WRKSRC}/conf/* ${PREFIX}/lib/postfix
|
||||
@echo "-> Installing postfix man pages in ${PREFIX}/man"
|
||||
@( cd ${WRKSRC}/man ; \
|
||||
for mandir in man[0-9] ; do \
|
||||
${INSTALL_MAN} $$mandir/* ${PREFIX}/man/$$mandir ; \
|
||||
done )
|
||||
@(cd ${WRKSRC}/man; \
|
||||
for mandir in man[0-9]; do \
|
||||
${INSTALL_MAN} $$mandir/* ${PREFIX}/man/$$mandir; \
|
||||
done)
|
||||
@echo "-> Installing postfix HTML documentation in ${PREFIX}/share/doc/postfix"
|
||||
@${INSTALL_DATA_DIR} ${PREFIX}/share/doc/postfix
|
||||
@${INSTALL_DATA} ${WRKSRC}/html/*.html ${PREFIX}/share/doc/postfix
|
||||
@${INSTALL_DATA} ${WRKSRC}/html/*.gif ${PREFIX}/share/doc/postfix
|
||||
${INSTALL_DATA} ${WRKSRC}/html/*.html ${PREFIX}/share/doc/postfix
|
||||
${INSTALL_DATA} ${WRKSRC}/html/*.gif ${PREFIX}/share/doc/postfix
|
||||
|
||||
post-install:
|
||||
@${SH} ${PKGDIR}/INSTALL ${DISTNAME} POST-INSTALL
|
||||
@PKG_PREFIX="${PREFIX}" sh ${PKGDIR}/INSTALL ${DISTNAME} POST-INSTALL
|
||||
|
||||
post-deinstall:
|
||||
@${SH} ${PKGDIR}/DEINSTALL ${DISTNAME} DEINSTALL
|
||||
@PKG_PREFIX="${PREFIX}" sh ${PKGDIR}/DEINSTALL ${DISTNAME} DEINSTALL
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user