reintroduce common Makefile (previously removed by approved commit)

upgrade snapshot version
bump package version for stable version
This commit is contained in:
jakob 2006-11-13 07:45:05 +00:00
parent 4b42852fd9
commit 198e9b11aa
4 changed files with 119 additions and 216 deletions

111
mail/postfix/Makefile.inc Normal file
View File

@ -0,0 +1,111 @@
# $OpenBSD: Makefile.inc,v 1.60 2006/11/13 07:45:05 jakob Exp $
COMMENT= "fast, secure sendmail replacement"
DISTNAME?= postfix-${VERSION}
.if defined(PATCHLEVEL)
PKGNAME?= postfix-${VERSION}p${PATCHLEVEL}
.endif
CATEGORIES= mail
MASTER_SITE_POSTFIX=\
ftp://ftp.porcupine.org/mirrors/postfix-release/ \
ftp://ftp.merit.edu/postfix/ \
ftp://ftp.sunet.se/pub/unix/mail/postfix/ \
ftp://ftp.tau.ac.il/pub/unix/mail/postfix/ \
ftp://ftp.cs.uu.nl/mirror/postfix/postfix-release/
DIST_SUBDIR= postfix
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
HOMEPAGE= http://www.postfix.org/
MAINTAINER= Jakob Schlyter <jakob@openbsd.org>
PERMIT_PACKAGE_CDROM= "cannot be sold, see section 4 of license"
PERMIT_PACKAGE_FTP= yes
PERMIT_DISTFILES_CDROM= "cannot be sold, see section 4 of license"
PERMIT_DISTFILES_FTP= yes
MAKE_DEBUG?=
MAKE_CCARGS?= -DFD_SETSIZE=2048
MAKE_CCARGS+= -DDEF_CONFIG_DIR=\"${SYSCONFDIR}/postfix\"
MAKE_CCARGS+= -DUSE_TLS
MAKE_AUXLIBS+= -lssl -lcrypto
WANTLIB= c crypto ssl
ALL_TARGET= default
NO_REGRESS= Yes
MAKE_CCARGS+= -DUSE_SASL_AUTH
# always include pcre
LIB_DEPENDS+= pcre::devel/pcre
MAKE_CCARGS+= -DHAS_PCRE -I${LOCALBASE}/include
MAKE_AUXLIBS+= -L${LOCALBASE}/lib -lpcre
FLAVORS+= sasl2 ldap mysql pgsql db4
FLAVOR?=
.if ${FLAVOR:L:Msasl2}
LIB_DEPENDS+= sasl2::security/cyrus-sasl2
MAKE_CCARGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/sasl -DUSE_CYRUS_SASL
MAKE_AUXLIBS+= -L${LOCALBASE}/lib -lsasl2
.endif
.if ${FLAVOR:L:Mldap}
LIB_DEPENDS+= ldap.>=2,lber:openldap-client-2.*:databases/openldap
MAKE_CCARGS+= -I${LOCALBASE}/include -DHAS_LDAP
MAKE_AUXLIBS+= -L${LOCALBASE}/lib -lldap -llber
.endif
.if ${FLAVOR:L:Mmysql}
LIB_DEPENDS+= lib/mysql/mysqlclient.>=10::databases/mysql
MAKE_CCARGS+= -I${LOCALBASE}/include/mysql -DHAS_MYSQL
MAKE_AUXLIBS+= -L${LOCALBASE}/lib/mysql -lmysqlclient
.endif
.if ${FLAVOR:L:Mpgsql}
LIB_DEPENDS+= pq.>=3:postgresql-client-*:databases/postgresql
MAKE_CCARGS+= -I${LOCALBASE}/include/postgresql -DHAS_PGSQL
MAKE_AUXLIBS+= -L${LOCALBASE}/lib -lpq
.endif
.if ${FLAVOR:L:Mdb4}
LIB_DEPENDS+= lib/db4/db.=4:db-4.*:databases/db/v4
MAKE_CCARGS+= -I${LOCALBASE}/include/db4
MAKE_AUXLIBS+= -L${LOCALBASE}/lib/db4 -ldb
.endif
do-configure:
@cd ${WRKSRC}; ${MAKE_PROGRAM} makefiles \
CC="${CC}" OPT="${CFLAGS}" DEBUG="${MAKE_DEBUG}" \
CCARGS='${MAKE_CCARGS}' AUXLIBS="${MAKE_AUXLIBS}"
do-install:
@(cd ${WRKSRC}; sh postfix-install \
-non-interactive \
mail_owner=_postfix \
setgid_group=_postdrop \
install_root=${WRKINST} \
daemon_directory=${TRUEPREFIX}/libexec/postfix \
command_directory=${TRUEPREFIX}/sbin \
sendmail_path=${TRUEPREFIX}/sbin/sendmail \
newaliases_path=${TRUEPREFIX}/sbin/newaliases \
mailq_path=${TRUEPREFIX}/sbin/mailq \
manpage_directory=${TRUEPREFIX}/man \
readme_directory=${TRUEPREFIX}/share/doc/postfix/readme \
html_directory=${TRUEPREFIX}/share/doc/postfix/html \
)
@${INSTALL_SCRIPT} ${FILESDIR}/postfix-enable ${PREFIX}/sbin
@${INSTALL_SCRIPT} ${FILESDIR}/postfix-disable ${PREFIX}/sbin
@${INSTALL_SCRIPT} ${WRKSRC}/auxiliary/qshape/qshape.pl ${PREFIX}/sbin/qshape
@${INSTALL_MAN} ${WRKSRC}/man/man1/qshape.1 ${PREFIX}/man/man1
@${INSTALL_DATA_DIR} ${PREFIX}/share/examples/postfix
@mv ${WRKINST}${SYSCONFDIR}/postfix/* ${PREFIX}/share/examples/postfix
@rm -fr ${WRKINST}/var/spool/postfix
@chown -h ${BINOWN}:${BINGRP} ${PREFIX}/{sbin,libexec/postfix}/*
@chown -R ${MANOWN}:${MANGRP} ${PREFIX}/man
@chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share

View File

@ -1,112 +1,7 @@
# $OpenBSD: Makefile,v 1.150 2006/10/25 22:44:09 jolan Exp $
# $OpenBSD: Makefile,v 1.151 2006/11/13 07:45:05 jakob Exp $
COMMENT= "fast, secure sendmail replacement"
VERSION= 2.4-20061006
DISTNAME?= postfix-${VERSION}
PKGNAME?= postfix-${VERSION:S/-/./}p1
CATEGORIES= mail
VERSION= 2.4-20061019
MASTER_SITE_POSTFIX=\
ftp://ftp.porcupine.org/mirrors/postfix-release/ \
ftp://ftp.merit.edu/postfix/ \
ftp://ftp.sunet.se/pub/unix/mail/postfix/ \
ftp://ftp.tau.ac.il/pub/unix/mail/postfix/ \
ftp://ftp.cs.uu.nl/mirror/postfix/postfix-release/
MASTER_SITES= ${MASTER_SITE_POSTFIX:=experimental/}
DIST_SUBDIR= postfix
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
HOMEPAGE= http://www.postfix.org/
MAINTAINER= Jakob Schlyter <jakob@openbsd.org>
PERMIT_PACKAGE_CDROM= "cannot be sold, see section 4 of license"
PERMIT_PACKAGE_FTP= yes
PERMIT_DISTFILES_CDROM= "cannot be sold, see section 4 of license"
PERMIT_DISTFILES_FTP= yes
MAKE_DEBUG?=
MAKE_CCARGS?= -DFD_SETSIZE=2048
MAKE_CCARGS+= -DDEF_CONFIG_DIR=\"${SYSCONFDIR}/postfix\"
MAKE_CCARGS+= -DUSE_TLS
MAKE_AUXLIBS+= -lssl -lcrypto
WANTLIB= c crypto ssl
ALL_TARGET= default
NO_REGRESS= Yes
MAKE_CCARGS+= -DUSE_SASL_AUTH
# always include pcre
LIB_DEPENDS+= pcre::devel/pcre
MAKE_CCARGS+= -DHAS_PCRE -I${LOCALBASE}/include
MAKE_AUXLIBS+= -L${LOCALBASE}/lib -lpcre
FLAVORS+= sasl2 ldap mysql pgsql db4
FLAVOR?=
.if ${FLAVOR:L:Msasl2}
LIB_DEPENDS+= sasl2::security/cyrus-sasl2
MAKE_CCARGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/sasl -DUSE_CYRUS_SASL
MAKE_AUXLIBS+= -L${LOCALBASE}/lib -lsasl2
.endif
.if ${FLAVOR:L:Mldap}
LIB_DEPENDS+= ldap.>=2,lber:openldap-client-2.*:databases/openldap
MAKE_CCARGS+= -I${LOCALBASE}/include -DHAS_LDAP
MAKE_AUXLIBS+= -L${LOCALBASE}/lib -lldap -llber
.endif
.if ${FLAVOR:L:Mmysql}
LIB_DEPENDS+= lib/mysql/mysqlclient.>=10::databases/mysql
MAKE_CCARGS+= -I${LOCALBASE}/include/mysql -DHAS_MYSQL
MAKE_AUXLIBS+= -L${LOCALBASE}/lib/mysql -lmysqlclient
.endif
.if ${FLAVOR:L:Mpgsql}
LIB_DEPENDS+= pq.>=3:postgresql-client-*:databases/postgresql
MAKE_CCARGS+= -I${LOCALBASE}/include/postgresql -DHAS_PGSQL
MAKE_AUXLIBS+= -L${LOCALBASE}/lib -lpq
.endif
.if ${FLAVOR:L:Mdb4}
LIB_DEPENDS+= lib/db4/db.=4:db-4.*:databases/db/v4
MAKE_CCARGS+= -I${LOCALBASE}/include/db4
MAKE_AUXLIBS+= -L${LOCALBASE}/lib/db4 -ldb
.endif
do-configure:
@cd ${WRKSRC}; ${MAKE_PROGRAM} makefiles \
CC="${CC}" OPT="${CFLAGS}" DEBUG="${MAKE_DEBUG}" \
CCARGS='${MAKE_CCARGS}' AUXLIBS="${MAKE_AUXLIBS}"
do-install:
@(cd ${WRKSRC}; sh postfix-install \
-non-interactive \
mail_owner=_postfix \
setgid_group=_postdrop \
install_root=${WRKINST} \
daemon_directory=${TRUEPREFIX}/libexec/postfix \
command_directory=${TRUEPREFIX}/sbin \
sendmail_path=${TRUEPREFIX}/sbin/sendmail \
newaliases_path=${TRUEPREFIX}/sbin/newaliases \
mailq_path=${TRUEPREFIX}/sbin/mailq \
manpage_directory=${TRUEPREFIX}/man \
readme_directory=${TRUEPREFIX}/share/doc/postfix/readme \
html_directory=${TRUEPREFIX}/share/doc/postfix/html \
)
@${INSTALL_SCRIPT} ${FILESDIR}/postfix-enable ${PREFIX}/sbin
@${INSTALL_SCRIPT} ${FILESDIR}/postfix-disable ${PREFIX}/sbin
@${INSTALL_SCRIPT} ${WRKSRC}/auxiliary/qshape/qshape.pl ${PREFIX}/sbin/qshape
@${INSTALL_MAN} ${WRKSRC}/man/man1/qshape.1 ${PREFIX}/man/man1
@${INSTALL_DATA_DIR} ${PREFIX}/share/examples/postfix
@mv ${WRKINST}${SYSCONFDIR}/postfix/* ${PREFIX}/share/examples/postfix
@rm -fr ${WRKINST}/var/spool/postfix
@chown -h ${BINOWN}:${BINGRP} ${PREFIX}/{sbin,libexec/postfix}/*
@chown -R ${MANOWN}:${MANGRP} ${PREFIX}/man
@chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
MD5 (postfix/postfix-2.4-20061006.tar.gz) = 9cd7cbeb0e1e74447a993a31ad1ea518
RMD160 (postfix/postfix-2.4-20061006.tar.gz) = b35d03578ec2232d27a417d6f195fa0be6ebbdd9
SHA1 (postfix/postfix-2.4-20061006.tar.gz) = 2acf9997f289d7e70cf6d13f90f3dfa0ca9e44e0
SIZE (postfix/postfix-2.4-20061006.tar.gz) = 2815528
MD5 (postfix/postfix-2.4-20061019.tar.gz) = c16a5b2c98d463cf033b59e17e5046a4
RMD160 (postfix/postfix-2.4-20061019.tar.gz) = b394b0d405d7d290ab1f891a6123faae29dd0976
SHA1 (postfix/postfix-2.4-20061019.tar.gz) = 88403d1c82f4965db9aedd9ea17b0d235ee92254
SIZE (postfix/postfix-2.4-20061019.tar.gz) = 2816536

View File

@ -1,111 +1,8 @@
# $OpenBSD: Makefile,v 1.92 2006/11/03 05:55:50 brad Exp $
# $OpenBSD: Makefile,v 1.93 2006/11/13 07:45:05 jakob Exp $
COMMENT= "fast, secure sendmail replacement"
VERSION= 2.3.4
DISTNAME?= postfix-${VERSION}
CATEGORIES= mail
PATCHLEVEL= 0
MASTER_SITE_POSTFIX=\
ftp://ftp.porcupine.org/mirrors/postfix-release/ \
ftp://ftp.merit.edu/postfix/ \
ftp://ftp.sunet.se/pub/unix/mail/postfix/ \
ftp://ftp.tau.ac.il/pub/unix/mail/postfix/ \
ftp://ftp.cs.uu.nl/mirror/postfix/postfix-release/
MASTER_SITES= ${MASTER_SITE_POSTFIX:=official/}
DIST_SUBDIR= postfix
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
HOMEPAGE= http://www.postfix.org/
MAINTAINER= Jakob Schlyter <jakob@openbsd.org>
PERMIT_PACKAGE_CDROM= "cannot be sold, see section 4 of license"
PERMIT_PACKAGE_FTP= yes
PERMIT_DISTFILES_CDROM= "cannot be sold, see section 4 of license"
PERMIT_DISTFILES_FTP= yes
MAKE_DEBUG?=
MAKE_CCARGS?= -DFD_SETSIZE=2048
MAKE_CCARGS+= -DDEF_CONFIG_DIR=\"${SYSCONFDIR}/postfix\"
MAKE_CCARGS+= -DUSE_TLS
MAKE_AUXLIBS+= -lssl -lcrypto
WANTLIB= c crypto ssl
ALL_TARGET= default
NO_REGRESS= Yes
MAKE_CCARGS+= -DUSE_SASL_AUTH
# always include pcre
LIB_DEPENDS+= pcre::devel/pcre
MAKE_CCARGS+= -DHAS_PCRE -I${LOCALBASE}/include
MAKE_AUXLIBS+= -L${LOCALBASE}/lib -lpcre
FLAVORS+= sasl2 ldap mysql pgsql db4
FLAVOR?=
.if ${FLAVOR:L:Msasl2}
LIB_DEPENDS+= sasl2::security/cyrus-sasl2
MAKE_CCARGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/sasl -DUSE_CYRUS_SASL
MAKE_AUXLIBS+= -L${LOCALBASE}/lib -lsasl2
.endif
.if ${FLAVOR:L:Mldap}
LIB_DEPENDS+= ldap.>=2,lber:openldap-client-2.*:databases/openldap
MAKE_CCARGS+= -I${LOCALBASE}/include -DHAS_LDAP
MAKE_AUXLIBS+= -L${LOCALBASE}/lib -lldap -llber
.endif
.if ${FLAVOR:L:Mmysql}
LIB_DEPENDS+= lib/mysql/mysqlclient.>=10::databases/mysql
MAKE_CCARGS+= -I${LOCALBASE}/include/mysql -DHAS_MYSQL
MAKE_AUXLIBS+= -L${LOCALBASE}/lib/mysql -lmysqlclient
.endif
.if ${FLAVOR:L:Mpgsql}
LIB_DEPENDS+= pq.>=3:postgresql-client-*:databases/postgresql
MAKE_CCARGS+= -I${LOCALBASE}/include/postgresql -DHAS_PGSQL
MAKE_AUXLIBS+= -L${LOCALBASE}/lib -lpq
.endif
.if ${FLAVOR:L:Mdb4}
LIB_DEPENDS+= lib/db4/db.=4:db-4.*:databases/db/v4
MAKE_CCARGS+= -I${LOCALBASE}/include/db4
MAKE_AUXLIBS+= -L${LOCALBASE}/lib/db4 -ldb
.endif
do-configure:
@cd ${WRKSRC}; ${MAKE_PROGRAM} makefiles \
CC="${CC}" OPT="${CFLAGS}" DEBUG="${MAKE_DEBUG}" \
CCARGS='${MAKE_CCARGS}' AUXLIBS="${MAKE_AUXLIBS}"
do-install:
@(cd ${WRKSRC}; sh postfix-install \
-non-interactive \
mail_owner=_postfix \
setgid_group=_postdrop \
install_root=${WRKINST} \
daemon_directory=${TRUEPREFIX}/libexec/postfix \
command_directory=${TRUEPREFIX}/sbin \
sendmail_path=${TRUEPREFIX}/sbin/sendmail \
newaliases_path=${TRUEPREFIX}/sbin/newaliases \
mailq_path=${TRUEPREFIX}/sbin/mailq \
manpage_directory=${TRUEPREFIX}/man \
readme_directory=${TRUEPREFIX}/share/doc/postfix/readme \
html_directory=${TRUEPREFIX}/share/doc/postfix/html \
)
@${INSTALL_SCRIPT} ${FILESDIR}/postfix-enable ${PREFIX}/sbin
@${INSTALL_SCRIPT} ${FILESDIR}/postfix-disable ${PREFIX}/sbin
@${INSTALL_SCRIPT} ${WRKSRC}/auxiliary/qshape/qshape.pl ${PREFIX}/sbin/qshape
@${INSTALL_MAN} ${WRKSRC}/man/man1/qshape.1 ${PREFIX}/man/man1
@${INSTALL_DATA_DIR} ${PREFIX}/share/examples/postfix
@mv ${WRKINST}${SYSCONFDIR}/postfix/* ${PREFIX}/share/examples/postfix
@rm -fr ${WRKINST}/var/spool/postfix
@chown -h ${BINOWN}:${BINGRP} ${PREFIX}/{sbin,libexec/postfix}/*
@chown -R ${MANOWN}:${MANGRP} ${PREFIX}/man
@chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share
.include <bsd.port.mk>