diff options
author | rtr <rtr@pkgsrc.org> | 2008-03-11 09:16:38 +0000 |
---|---|---|
committer | rtr <rtr@pkgsrc.org> | 2008-03-11 09:16:38 +0000 |
commit | 02f2cc5faf4787b822ed8e9405696379ecd5f972 (patch) | |
tree | b6c9710c7960872023c6d28780c51da25530a7cc | |
parent | 0bb1b24a70f4b5460ed2e4f7af41c328922382f8 (diff) | |
download | pkgsrc-02f2cc5faf4787b822ed8e9405696379ecd5f972.tar.gz |
- add/update patches to introduce LDFLAGS to links in the package
identified by Charles Zmudzinski in pr pkg/32275
- use EXPORT_SYMBOLS_LDFLAGS as suggested by salo@
- resolves pkg/32275
-rw-r--r-- | net/rp-l2tp/Makefile | 5 | ||||
-rw-r--r-- | net/rp-l2tp/distinfo | 5 | ||||
-rw-r--r-- | net/rp-l2tp/patches/patch-ab | 14 | ||||
-rw-r--r-- | net/rp-l2tp/patches/patch-ah | 17 |
4 files changed, 31 insertions, 10 deletions
diff --git a/net/rp-l2tp/Makefile b/net/rp-l2tp/Makefile index 0eec5da208e..dd28e19e3f5 100644 --- a/net/rp-l2tp/Makefile +++ b/net/rp-l2tp/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2007/12/22 13:01:07 obache Exp $ +# $NetBSD: Makefile,v 1.11 2008/03/11 09:16:38 rtr Exp $ # DISTNAME= rp-l2tp-0.3 @@ -16,6 +16,9 @@ GNU_CONFIGURE= yes CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} USE_TOOLS+= gmake +LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS} +LDFLAGS.NetBSD+= -lutil + INSTALL_MAKE_FLAGS+= RPM_INSTALL_ROOT=${DESTDIR:Q} PKG_DESTDIR_SUPPORT= user-destdir diff --git a/net/rp-l2tp/distinfo b/net/rp-l2tp/distinfo index 20eee521192..d13ebed8eea 100644 --- a/net/rp-l2tp/distinfo +++ b/net/rp-l2tp/distinfo @@ -1,12 +1,13 @@ -$NetBSD: distinfo,v 1.4 2007/12/22 13:01:08 obache Exp $ +$NetBSD: distinfo,v 1.5 2008/03/11 09:16:38 rtr Exp $ SHA1 (rp-l2tp-0.3.tar.gz) = 3f4f08a5271f0adf1dd90567851f1a8e223ecb72 RMD160 (rp-l2tp-0.3.tar.gz) = 25ed4a68a01c08f3acee1ce01a90673a568db55f Size (rp-l2tp-0.3.tar.gz) = 191418 bytes SHA1 (patch-aa) = a351d8bcea431bc47a0a375c770d07e059103841 -SHA1 (patch-ab) = 4a30988989688b1cdc30fdd73edd7fd60509d2e3 +SHA1 (patch-ab) = 31b9b78bace8ab5c1717944e630f296b81cbbe11 SHA1 (patch-ac) = ed6cb031b458027f7df8a97a051a1f12bc6b5e00 SHA1 (patch-ad) = 943de75b5928bca92ec739106f3c5679189557c3 SHA1 (patch-ae) = 62c6d5fb9ddd69467fbb6ed6b502add0ae646a29 SHA1 (patch-af) = 3fa6c660ca06ddf3ea49e33e31506f714f7ef9b5 SHA1 (patch-ag) = 5dc50f2ace17bb97717d628e9fdfe689443966c0 +SHA1 (patch-ah) = fcac0fb3c264d68df1f2dbbc0d548311abdaaa2c diff --git a/net/rp-l2tp/patches/patch-ab b/net/rp-l2tp/patches/patch-ab index d715b970dab..95ad5268655 100644 --- a/net/rp-l2tp/patches/patch-ab +++ b/net/rp-l2tp/patches/patch-ab @@ -1,8 +1,8 @@ -$NetBSD: patch-ab,v 1.2 2007/12/22 13:01:08 obache Exp $ +$NetBSD: patch-ab,v 1.3 2008/03/11 09:16:38 rtr Exp $ ---- Makefile.in.orig 2002-09-30 21:33:55.000000000 +0100 -+++ Makefile.in 2003-12-18 10:24:07.000000000 +0000 -@@ -26,11 +26,20 @@ +--- Makefile.in.orig 2002-10-01 06:33:55.000000000 +1000 ++++ Makefile.in +@@ -26,11 +26,20 @@ install=@INSTALL@ install_dir=@INSTALL@ -d sbindir=@sbindir@ @@ -25,16 +25,16 @@ $NetBSD: patch-ab,v 1.2 2007/12/22 13:01:08 obache Exp $ TARGETS=l2tpd libl2tp.a handlers -@@ -43,7 +52,7 @@ +@@ -43,7 +52,7 @@ libl2tp.a: $(OBJS) l2tpd: libl2tp.a libevent/libevent.a $(MAKE) -C handlers - @CC@ -o l2tpd -rdynamic $(OBJS) $(EXTRA_LIBS) -+ @CC@ -o l2tpd $(DYNAMIC_FLAGS) $(OBJS) @LIBEVENT@/*.o $(EXTRA_LIBS) ++ @CC@ $(LDFLAGS) -o l2tpd $(DYNAMIC_FLAGS) $(OBJS) @LIBEVENT@/*.o $(EXTRA_LIBS) libevent/libevent.a: test -d libevent || ln -s ../libevent . -@@ -82,8 +91,8 @@ +@@ -82,8 +91,8 @@ distclean: clean install: all -mkdir -p $(RPM_INSTALL_ROOT)$(sbindir) $(install) -m 755 -s l2tpd $(RPM_INSTALL_ROOT)$(sbindir) diff --git a/net/rp-l2tp/patches/patch-ah b/net/rp-l2tp/patches/patch-ah new file mode 100644 index 00000000000..383a9f084a6 --- /dev/null +++ b/net/rp-l2tp/patches/patch-ah @@ -0,0 +1,17 @@ +$NetBSD: patch-ah,v 1.2 2008/03/11 09:16:38 rtr Exp $ + +--- handlers/Makefile.in.orig 2008-03-10 15:31:14.000000000 +1100 ++++ handlers/Makefile.in +@@ -28,10 +28,10 @@ cmd-control.o: cmd-control.c + gcc $(CFLAGS) -fPIC -c -o $@ $< + + sync-pppd.so: pty.o sync-pppd.o +- gcc -shared -o $@ $^ ++ gcc -shared $(LDFLAGS) -o $@ $^ + + cmd.so: cmd.o dstring.o +- gcc -shared -o $@ $^ ++ gcc -shared $(LDFLAGS) -o $@ $^ + + clean: + rm -f *.so *.o *~ |