openbsd-ports/mail/postfix/Makefile

57 lines
1.9 KiB
Makefile
Raw Normal View History

2000-03-09 15:50:29 -05:00
# $OpenBSD: Makefile,v 1.21 2000/03/09 20:50:29 jakob Exp $
#BROKEN= auto installs files in /etc
1998-12-16 13:30:46 -05:00
2000-03-09 15:50:29 -05:00
DISTNAME= postfix-19991231-pl05
1998-12-16 13:30:46 -05:00
CATEGORIES= mail
1999-06-13 12:15:57 -04:00
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/ \
ftp://ftp.cs.uu.nl/mirror/postfix/postfix-release/official/
1998-12-16 13:30:46 -05:00
MAINTAINER= jakob@openbsd.org
1998-12-16 13:30:46 -05:00
2000-03-05 18:00:29 -05:00
PERMIT_PACKAGE_CDROM= yes
PERMIT_PACKAGE_FTP= yes
PERMIT_DISTFILES_CDROM= yes
PERMIT_DISTFILES_FTP= yes
1998-12-16 13:30:46 -05:00
NO_CONFIGURE= yes
MAKE_FLAGS= CC="${CC}" DEBUG="" OPT="${CFLAGS}" \
OPTS="CC=\"${CC}\" DEBUG=\"\" OPT=\"${CFLAGS}\""
1998-12-16 13:30:46 -05:00
ALL_TARGET= default
pre-install:
@PKG_PREFIX="${PREFIX}" sh ${PKGDIR}/INSTALL ${DISTNAME} PRE-INSTALL
1999-06-13 12:15:57 -04:00
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/lib/postfix
${INSTALL_PROGRAM_DIR} ${PREFIX}/libexec/postfix
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/postfix
1999-06-13 12:15:57 -04:00
@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
1999-06-13 12:15:57 -04:00
@echo "-> Installing postfix daemons in ${PREFIX}/libexec/postfix"
${INSTALL_PROGRAM} ${WRKSRC}/libexec/* ${PREFIX}/libexec/postfix
1999-06-13 12:15:57 -04:00
@echo "-> Installing postfix sample config files in ${PREFIX}/lib/postfix"
${INSTALL_DATA} ${WRKSRC}/conf/* ${PREFIX}/lib/postfix
1999-06-13 12:15:57 -04:00
@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)
1999-06-13 12:15:57 -04:00
@echo "-> Installing postfix HTML documentation in ${PREFIX}/share/doc/postfix"
${INSTALL_DATA} ${WRKSRC}/html/*.html ${PREFIX}/share/doc/postfix
${INSTALL_DATA} ${WRKSRC}/html/*.gif ${PREFIX}/share/doc/postfix
1998-12-16 13:30:46 -05:00
post-install:
@PKG_PREFIX="${PREFIX}" sh ${PKGDIR}/INSTALL ${DISTNAME} POST-INSTALL
1998-12-16 13:30:46 -05:00
1999-06-13 12:15:57 -04:00
post-deinstall:
@PKG_PREFIX="${PREFIX}" sh ${PKGDIR}/DEINSTALL ${DISTNAME} DEINSTALL
1998-12-16 13:30:46 -05:00
.include <bsd.port.mk>