diff options
author | garga <garga@FreeBSD.org> | 2005-08-30 02:50:22 +0800 |
---|---|---|
committer | garga <garga@FreeBSD.org> | 2005-08-30 02:50:22 +0800 |
commit | 83527a9845b1f50b8594c59c5edc04fbcab301d2 (patch) | |
tree | 736085011580669324293f9982180f03585d4d8b | |
parent | 4936f4776bcbe58acd300cc5e96fc1876b467a17 (diff) | |
download | freebsd-ports-gnome-83527a9845b1f50b8594c59c5edc04fbcab301d2.tar.gz freebsd-ports-gnome-83527a9845b1f50b8594c59c5edc04fbcab301d2.tar.zst freebsd-ports-gnome-83527a9845b1f50b8594c59c5edc04fbcab301d2.zip |
- Remove perl dependency
- Remove uneeded patch
- Take maintainership
-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(); - } - |