summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2001-10-25 19:02:47 +0000
committeragc <agc@pkgsrc.org>2001-10-25 19:02:47 +0000
commitacfcce70d25eb88b8b98b1f64e362813e6c9e17b (patch)
tree3af40b8a7007d6698cf3922bf305ea6096891610 /net
parentc1f1fd1134c1d0cb72f6ce97be62a8ef223f4e3d (diff)
downloadpkgsrc-acfcce70d25eb88b8b98b1f64e362813e6c9e17b.tar.gz
Rather than re-patching in a post-configure stage by means of a
script, do this at configure time by means of a conventional patch to the configuration script. Move the invocation of the post-configure stage to be a package Makefile target, rather than in a script file.
Diffstat (limited to 'net')
-rw-r--r--net/sendfile/Makefile7
-rw-r--r--net/sendfile/distinfo4
-rw-r--r--net/sendfile/patches/patch-aa17
-rwxr-xr-xnet/sendfile/scripts/post-configure21
4 files changed, 21 insertions, 28 deletions
diff --git a/net/sendfile/Makefile b/net/sendfile/Makefile
index 6c933c67668..54065adb998 100644
--- a/net/sendfile/Makefile
+++ b/net/sendfile/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2001/03/05 20:13:00 wiz Exp $
+# $NetBSD: Makefile,v 1.7 2001/10/25 19:02:47 agc Exp $
#
DISTNAME= sendfile-2.1a
@@ -10,7 +10,7 @@ MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.belwue.de/aktivitaeten/projekte/saft/
COMMENT= Implementation of the Simple asynchronous file transfer protocol
-WRKSRC= ${WRKDIR}/${DISTNAME}
+WRKSRC= ${WRKDIR}/${DISTNAME}
post-patch:
cd ${WRKSRC} && \
@@ -18,4 +18,7 @@ post-patch:
${MV} makeconfig.new makeconfig; \
${CHMOD} +x makeconfig
+post-configure:
+ cd ${WRKSRC} && ${MAKE} config
+
.include "../../mk/bsd.pkg.mk"
diff --git a/net/sendfile/distinfo b/net/sendfile/distinfo
index 36eb090d054..c9ffca7d7ea 100644
--- a/net/sendfile/distinfo
+++ b/net/sendfile/distinfo
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.2 2001/04/21 11:23:32 wiz Exp $
+$NetBSD: distinfo,v 1.3 2001/10/25 19:02:47 agc Exp $
SHA1 (sendfile-2.1a.tar.gz) = cdf6ff67bdc11709209c5f93ac94d380fa1abac3
Size (sendfile-2.1a.tar.gz) = 292130 bytes
-SHA1 (patch-aa) = f50d62076fb4c2f2c0996b87add938e46934afe2
+SHA1 (patch-aa) = 6c242d962625986cf6c0ed20696a979f8852c85f
SHA1 (patch-ab) = c74cf201573068d8e1afa8e285831181d1be789e
SHA1 (patch-ac) = bd81d52fc1eada9170b48404f6c0d7779acdea84
diff --git a/net/sendfile/patches/patch-aa b/net/sendfile/patches/patch-aa
index 2a08d065503..6b07e25f59e 100644
--- a/net/sendfile/patches/patch-aa
+++ b/net/sendfile/patches/patch-aa
@@ -1,7 +1,7 @@
-$NetBSD: patch-aa,v 1.2 2001/02/26 11:34:55 wiz Exp $
+$NetBSD: patch-aa,v 1.3 2001/10/25 19:02:48 agc Exp $
---- makeconfig.orig Thu Aug 26 20:53:32 1999
-+++ makeconfig
+--- makeconfig.orig Thu Aug 26 19:53:32 1999
++++ makeconfig Thu Oct 25 19:53:04 2001
@@ -16,10 +16,10 @@
# default installation settings
@@ -17,3 +17,14 @@ $NetBSD: patch-aa,v 1.2 2001/02/26 11:34:55 wiz Exp $
INETDCONF=/etc/inetd.conf
SERVICES=/etc/services
+@@ -108,6 +108,10 @@
+ # esac;;
+ # *) SYSTEM=UNKNOWN;;
+ # esac;;
++esac
++
++case "$SYSTEM" in
++BSD) CFLAGS="$CFLAGS -DHAVE_STRERROR=1" ;;
+ esac
+
+ cd ../src
diff --git a/net/sendfile/scripts/post-configure b/net/sendfile/scripts/post-configure
deleted file mode 100755
index 67046216653..00000000000
--- a/net/sendfile/scripts/post-configure
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/sh
-# $NetBSD: post-configure,v 1.1.1.1 1999/06/06 17:08:37 hwr Exp $
-
-echo "post-configure"
-
-cd ${WRKSRC}
-make config
-cd ${WRKSRC}/src
-patch <<-MOUSE-
---- config.h.orig Sun Jun 6 18:23:52 1999
-+++ config.h Sun Jun 6 18:24:18 1999
-@@ -86,7 +86,7 @@
- /* #undef HAVE_SOCKET */
-
- /* Define if you have the strerror function. */
--/* #undef HAVE_STRERROR */
-+#define HAVE_STRERROR
-
- /* Define if you have the uname function. */
- /* #undef HAVE_UNAME */
--MOUSE-