From 6b45eebe5b7743194fc5a7876a5f3d1c6a8ffaa0 Mon Sep 17 00:00:00 2001 From: Nicolas Thill Date: Fri, 2 May 2008 01:20:40 +0000 Subject: [PATCH] portmap fixes: - disable pie (closes: #3095) - use start-stop-daemon - bump release number SVN-Revision: 11001 --- net/portmap/Makefile | 4 ++-- net/portmap/files/portmap.init | 12 ++++++------ net/portmap/patches/101-no_pie.patch | 12 ++++++++++++ 3 files changed, 20 insertions(+), 8 deletions(-) create mode 100644 net/portmap/patches/101-no_pie.patch diff --git a/net/portmap/Makefile b/net/portmap/Makefile index 9c8ddf052..720f8a555 100644 --- a/net/portmap/Makefile +++ b/net/portmap/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2007 OpenWrt.org +# Copyright (C) 2006-2008 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=portmap PKG_VERSION:=6.0 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz PKG_SOURCE_URL:=http://neil.brown.name/portmap/ diff --git a/net/portmap/files/portmap.init b/net/portmap/files/portmap.init index 3bbfb573f..97ee0d706 100644 --- a/net/portmap/files/portmap.init +++ b/net/portmap/files/portmap.init @@ -1,16 +1,16 @@ #!/bin/sh /etc/rc.common -# Copyright (C) 2006 OpenWrt.org +# Copyright (C) 2006-2008 OpenWrt.org START=40 -BIN=portmap -DEFAULT=/etc/default/$BIN +NAME=portmap +PROG=/usr/sbin/$NAME +DEFAULT=/etc/default/$NAME start() { [ -f $DEFAULT ] && . $DEFAULT - $BIN $OPTIONS + start-stop-daemon -q -S -x $PROG -- $OPTIONS } stop() { - killall $BIN + start-stop-daemon -q -K -x $PROG -- $OPTIONS } - diff --git a/net/portmap/patches/101-no_pie.patch b/net/portmap/patches/101-no_pie.patch new file mode 100644 index 000000000..6cbdece92 --- /dev/null +++ b/net/portmap/patches/101-no_pie.patch @@ -0,0 +1,12 @@ +diff -ur portmap_6.0.org/Makefile portmap_6.0/Makefile +--- portmap_6.0.org/Makefile 2008-04-19 22:44:35.000000000 +0200 ++++ portmap_6.0/Makefile 2008-04-19 00:02:01.000000000 +0200 +@@ -127,7 +127,7 @@ + CPPFLAGS += $(HOSTS_ACCESS) + portmap: CFLAGS += -fpie + portmap: LDLIBS += $(WRAP_LIB) +-portmap: LDFLAGS += -pie ++#portmap: LDFLAGS += -pie + portmap: portmap.o pmap_check.o from_local.o + + from_local: CPPFLAGS += -DTEST -- 2.30.2