diff options
author | Renato Botelho <garga@FreeBSD.org> | 2005-08-29 18:50:22 +0000 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2005-08-29 18:50:22 +0000 |
commit | b44d7528aab23cef92c1b510c268783f6acd99ab (patch) | |
tree | adfe7650aabd1f50cf543a99e0fa00584b24ec11 /mail | |
parent | Update to 4.1-14.2 (diff) |
- Remove perl dependency
- Remove uneeded patch
- Take maintainership
Notes
Notes:
svn path=/head/; revision=141366
Diffstat (limited to 'mail')
-rw-r--r-- | mail/qmail-contrib/Makefile | 21 | ||||
-rw-r--r-- | mail/qmail-contrib/files/extra-patch-striplocal | 28 |
2 files changed, 10 insertions, 39 deletions
diff --git a/mail/qmail-contrib/Makefile b/mail/qmail-contrib/Makefile index c73274fff9f1..f5a3dd507aa3 100644 --- a/mail/qmail-contrib/Makefile +++ b/mail/qmail-contrib/Makefile @@ -13,7 +13,7 @@ MASTER_SITES= ftp://ftp.qmail.org/pub/software/ \ DISTFILES= dot-forward-${DF_VER}.tar.gz \ fastforward-${FF_VER}.tar.gz -MAINTAINER= ports@FreeBSD.org +MAINTAINER= garga@FreeBSD.org COMMENT= Contributed programs for qmail RUN_DEPENDS= ${QMAIL_DIR}/bin/qmail-send:${PORTSDIR}/mail/qmail @@ -36,7 +36,7 @@ QMAIL_DIR?= /var/qmail PREFIX?= /var/qmail .endif -.if (${PREFIX} == "/usr/local") +.if (${PREFIX} == ${LOCALBASE}) DOCDIR= share/doc/qmail .else DOCDIR= doc @@ -50,21 +50,20 @@ WRKFF= ${WRKDIR}/fastforward-${FF_VER} WRKDF= ${WRKDIR}/dot-forward-${DF_VER} NO_MTREE= yes -USE_PERL5_BUILD=yes + +USE_REINPLACE= yes pre-patch: @cd ${WRKFF} \ && ${PATCH} -s <${PATCHDIR}/extra-patch-newaliases -# && ${PATCH} <${PATCHDIR}/extra-patch-striplocal -# apparently the above patch is no longer needed post-patch: - @perl -pi.bak -e "s|-O2|${CFLAGS}|" ${WRKFF}/conf-cc - @perl -pi.bak -e "s|.var.qmail|${QMAIL_DIR}|" ${WRKFF}/conf-qmail - @perl -pi.bak -e '$$_ = "" if /cat/' ${WRKFF}/hier.c - @perl -pi.bak -e "s|-O2|${CFLAGS}|" ${WRKDF}/conf-cc - @perl -pi.bak -e "s|.var.qmail|${QMAIL_DIR}|" ${WRKDF}/conf-qmail - @perl -pi.bak -e '$$_ = "" if /cat/' ${WRKDF}/hier.c + @${REINPLACE_CMD} -e "s|-O2|${CFLAGS}|" ${WRKFF}/conf-cc + @${REINPLACE_CMD} -e "s|.var.qmail|${QMAIL_DIR}|" ${WRKFF}/conf-qmail + @${REINPLACE_CMD} -e '/cat/d' ${WRKFF}/hier.c + @${REINPLACE_CMD} -e "s|-O2|${CFLAGS}|" ${WRKDF}/conf-cc + @${REINPLACE_CMD} -e "s|.var.qmail|${QMAIL_DIR}|" ${WRKDF}/conf-qmail + @${REINPLACE_CMD} -e '/cat/d' ${WRKDF}/hier.c do-build: @cd ${WRKDIR}/dot-forward-${DF_VER} \ diff --git a/mail/qmail-contrib/files/extra-patch-striplocal b/mail/qmail-contrib/files/extra-patch-striplocal deleted file mode 100644 index 8017b679fa71..000000000000 --- a/mail/qmail-contrib/files/extra-patch-striplocal +++ /dev/null @@ -1,28 +0,0 @@ -*** fastforward.c.orig Thu Apr 23 20:35:48 1998 ---- fastforward.c Thu Apr 23 20:37:05 1998 -*************** -*** 261,270 **** - if (gettarget(1,"?",addr)) - if (!stralloc_copy(&sender,&data)) nomem(); - if (!gettarget(1,":",addr)) -! if (flagpassthrough) -! _exit(0); -! else -! strerr_die1x(100,"Sorry, no mailbox here by that name. (#5.1.1)"); - dodata(); - } - ---- 261,273 ---- - if (gettarget(1,"?",addr)) - if (!stralloc_copy(&sender,&data)) nomem(); - if (!gettarget(1,":",addr)) -! if (strpbrk(addr,"-")) -! if (!str_copy(addr,strpbrk(addr,"-")+1)) nomem(); -! if (!gettarget(1,":",addr)) -! if (flagpassthrough) -! _exit(0); -! else -! strerr_die1x(100,"Sorry, no mailbox here by that name. (#5.1.1)"); - dodata(); - } - |