summaryrefslogtreecommitdiff
path: root/mail/autorespond
diff options
context:
space:
mode:
authorPeter Pentchev <roam@FreeBSD.org>2003-04-04 07:27:36 +0000
committerPeter Pentchev <roam@FreeBSD.org>2003-04-04 07:27:36 +0000
commit5de648d1fe0b4389042607d8bd881d5299c324e3 (patch)
tree5441dcca2a93b2f08453db1522c9d37528779f95 /mail/autorespond
parentUpdate to 2.2.3.1. (diff)
Update to 2.0.3 and add my autoconfiguration patch which uses DJB's
mechanisms for detecting the availability of strcasestr(3) and only uses autorespond's own strcasestr() version if needed. NOTE: there is NO functionality change in autorespond-2.0.3 with respect to 2.0.2.
Notes
Notes: svn path=/head/; revision=78125
Diffstat (limited to 'mail/autorespond')
-rw-r--r--mail/autorespond/Makefile19
-rw-r--r--mail/autorespond/distinfo3
-rw-r--r--mail/autorespond/files/patch-autorespond.c19
3 files changed, 10 insertions, 31 deletions
diff --git a/mail/autorespond/Makefile b/mail/autorespond/Makefile
index bd1e788f4b01..147293ee0097 100644
--- a/mail/autorespond/Makefile
+++ b/mail/autorespond/Makefile
@@ -6,25 +6,22 @@
#
PORTNAME= autorespond
-PORTVERSION= 2.0.2
+PORTVERSION= 2.0.3
CATEGORIES= mail
MASTER_SITES= http://www.inter7.com/devel/
+PATCH_SITES= http://people.FreeBSD.org/~roam/ports/patches/mail/
+PATCHFILES= ${DISTNAME}-conf-strcasestr.patch
+
MAINTAINER= roam@FreeBSD.org
COMMENT= "Simple autoresponder for qmail"
-USE_REINPLACE= yes
-
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} < 440003 || ${OSVERSION} >= 500000 && ${OSVERSION} < 500027
-CFLAGS+= -DNEED_STRCASESTR
-.endif
-
post-patch:
- ${REINPLACE_CMD} -Ee "s|^(DEFS =.*)|\1 ${CFLAGS}|" ${WRKSRC}/Makefile
+ ${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc
+ ${ECHO_CMD} "${CC} ${STRIP}" > ${WRKSRC}/conf-ld
+ ${ECHO_CMD} "${PREFIX}" > ${WRKSRC}/conf-home
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/autorespond ${PREFIX}/bin/
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/mail/autorespond/distinfo b/mail/autorespond/distinfo
index 8dbf45404ed1..9edffa7c1aa9 100644
--- a/mail/autorespond/distinfo
+++ b/mail/autorespond/distinfo
@@ -1 +1,2 @@
-MD5 (autorespond-2.0.2.tar.gz) = aa81f2c02b36ccd3ce58c60f0f89683e
+MD5 (autorespond-2.0.3.tar.gz) = 21cbd765ab662c0553b309f7e412fcbf
+MD5 (autorespond-2.0.3-conf-strcasestr.patch) = 5d05646620a057ebc2ea2013b3500403
diff --git a/mail/autorespond/files/patch-autorespond.c b/mail/autorespond/files/patch-autorespond.c
deleted file mode 100644
index b4c74f42c468..000000000000
--- a/mail/autorespond/files/patch-autorespond.c
+++ /dev/null
@@ -1,19 +0,0 @@
---- autorespond.c Thu Feb 7 12:07:44 2002
-+++ autorespond.c Thu Feb 7 12:07:59 2002
-@@ -377,6 +377,7 @@
- /*********************************************************
- ** find string in string - ignore case **/
-
-+#ifdef NEED_STRCASESTR
- char *strcasestr( char *_s1, char *_s2 )
- {
- char *s1;
-@@ -399,7 +400,7 @@
- else
- return _s1 + (ptr - s1);
- }
--
-+#endif
-
-
-