diff options
author | lioux <lioux@FreeBSD.org> | 2001-02-12 02:53:22 +0000 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2001-02-12 02:53:22 +0000 |
commit | 0fecf7964d349c367a11000aa7495cd8447b82dd (patch) | |
tree | 0f86cde2533f077613cf23574918e27b0facc45f /mail/qmail/Makefile | |
parent | 1f325575a216a338fc18885f1bd1ef4294652b83 (diff) | |
download | FreeBSD-ports-0fecf7964d349c367a11000aa7495cd8447b82dd.zip FreeBSD-ports-0fecf7964d349c367a11000aa7495cd8447b82dd.tar.gz |
Add some bell and whistles that will enable better support for the
qmail-* skeleton ports inheriting (including) this port
While there, update NO_PACKAGE with a more informative message.
The NO_PACKAGE variable will be inherited by all meta ports
Since qmail-{ldap,mysql,tls} are meta ports sharing qmail's port
code, update qmail distinfo information with new distribution
patches:
- Add new distinfo information required by updated qmail-ldap
version 1.03.20010201
- Add new distinfo for recently added port qmail-tls and
qmail-mysql
In PLIST, use recently added PORTDOCS variable support
PORTREVISION bump is not necessary.
Diffstat (limited to 'mail/qmail/Makefile')
-rw-r--r-- | mail/qmail/Makefile | 42 |
1 files changed, 33 insertions, 9 deletions
diff --git a/mail/qmail/Makefile b/mail/qmail/Makefile index 3e9997f..e8b0e28 100644 --- a/mail/qmail/Makefile +++ b/mail/qmail/Makefile @@ -16,18 +16,23 @@ MASTER_SITES= http://cr.yp.to/software/ \ ftp://ftp.id.wustl.edu/pub/qmail/ DISTNAME= ${PORTNAME}-${QMAIL_VERSION} +# qmail-* skeleton ports including this port may not want +# its patches +.if !defined (MAIN_QMAIL_PORT_PATCH_BARRIER) # Patch necessary to cope with non-RFC >512 dns entries # Since AOL has been using those, the problem has skyrocketed from minor to # groundzero. qmail being RFC compliant need to be "fixed" to work with those -PATCH_SITES?= http://www.ckdhr.com/ckd/ \ +PATCH_SITES+= http://www.ckdhr.com/ckd/ \ ${MASTER_SITE_LOCAL} -PATCH_SITE_SUBDIR?= lioux -PATCHFILES?= qmail-103.patch +PATCH_SITE_SUBDIR+= lioux +PATCHFILES+= qmail-103.patch PATCH_DIST_STRIP+= -p1 +.endif MAINTAINER= lioux@FreeBSD.org -NO_PACKAGE= Forbidden - we have patches to the distribution. +NO_PACKAGE= djb\'s packaging license does not allow non-standard\ + qmail binary distributions # A normal qmail installation puts everything into /var/qmail/. # If you want to install to /usr/local/, then "/usr/local/qmail" is @@ -35,6 +40,9 @@ NO_PACKAGE= Forbidden - we have patches to the distribution. PREFIX?= /var/qmail QMAIL_VERSION?= 1.03 +# Some programs we use when building/installing the port +HEAD?= /usr/bin/head + ALL_TARGET= default dot-qmail.5 qmail-control.5 qmail-getpw.8 \ qmail-limits.7 qmail-newmrh.8 qmail-newu.8 qmail-pw2u.8 \ qmail-send.8 qmail-start.8 qmail-users.5 @@ -98,16 +106,32 @@ NO_MTREE= yes .include <bsd.port.pre.mk> .endif +pre-fetch: yetanotherone-pre-fetch + +# Yet anther ugly hack (used by qmail-* skeleton ports) +# Permits them to define local targets without braking everything +# The ugly target name hopefully will avoid name clashing +.if !target(yetanotherone-pre-fetch) +yetanotherone-pre-fetch: +.endif + # If you want to change the qmail users, they must be changed in both # work/*/conf-users and pkg/INSTALL. do-configure: @# Create/Check the necessary groups/users @PKG_PREFIX=${PREFIX} ${PERL5} ${PKGINSTALL} - @${ECHO} ${CC} ${CFLAGS} > ${WRKSRC}/conf-cc + @${ECHO} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc @${ECHO} ${PREFIX} > ${WRKSRC}/conf-qmail -post-patch: thereal-post-patch +post-patch: thereal-post-patch yetanotherone-post-patch + +# Yet anther ugly hack (used by qmail-* skeleton ports) +# Permits them to define local targets without braking everything +# The ugly target name hopefully will avoid name clashing +.if !target(yetanotherone-post-patch) +yetanotherone-post-patch: +.endif do-install: @# Check again, just in case (ideally should error if not found) @@ -158,8 +182,8 @@ thereal-post-patch: then \ ${CP} $i.sh $i.sh.orig; \ (head -c `${EXPR} \`ls -l $i.sh.orig \ - | ${AWK} '{print $$5}'\` - 1` $i.sh.orig ; ${ECHO} '&') \ - > $i.sh ; \ + | ${AWK} '{print $$5}'\` - 1` $i.sh.orig ; ${ECHO} '&') \ + > $i.sh ; \ fi .endfor @${SED} s!/var/qmail/!${PREFIX}/!g ${FILESDIR}/mailer.conf.sample > \ @@ -226,7 +250,7 @@ enable-qmail: install disable-sendmail ${ECHO_MSG} "===> installation breaking your qmail one." ; \ ${ECHO_MSG} "===> Read the FreeBSD Handbook section on \"make world\"" ; \ ${ECHO_MSG} "===> if you do not know what I am talking about." ; \ - ${ECHO_MSG} "===> Check http://www.freebsd.org/ for the most" ; \ + ${ECHO_MSG} "===> Check http://www.FreeBSD.org/ for the most" ; \ ${ECHO_MSG} "===> updated copy of the Handbook." ; \ fi @${ECHO_MSG} "===> Do not forget to choose an appropriate qmail startup" |