diff --git a/packages/network/portmap/build b/packages/network/portmap/build deleted file mode 100755 index 5efb4d6557..0000000000 --- a/packages/network/portmap/build +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh - -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv) -# -# This Program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. -# -# This Program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with OpenELEC.tv; see the file COPYING. If not, write to -# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. -# http://www.gnu.org/copyleft/gpl.html -################################################################################ - -. config/options $1 - -cd $PKG_BUILD -make FACILITY=LOG_AUTH \ - ZOMBIES='-DIGNORE_SIGCHLD -Dlint' \ - LIBS="-lnsl" \ - AUX="" \ - HOSTS_ACCESS="" \ - diff --git a/packages/network/portmap/init.d/54_portmap b/packages/network/portmap/init.d/54_portmap deleted file mode 100644 index 08ee2a7b26..0000000000 --- a/packages/network/portmap/init.d/54_portmap +++ /dev/null @@ -1,28 +0,0 @@ -################################################################################ -# Copyright (C) 2009-2010 OpenELEC.tv -# http://www.openelec.tv -# -# This Program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. -# -# This Program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with OpenELEC.tv; see the file COPYING. If not, write to -# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. -# http://www.gnu.org/copyleft/gpl.html -################################################################################ - -# starting portmap -# -# runlevels: openelec, textmode - -( - progress "starting portmap" - portmap -)& \ No newline at end of file diff --git a/packages/network/portmap/install b/packages/network/portmap/install deleted file mode 100755 index 5afa135c98..0000000000 --- a/packages/network/portmap/install +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh - -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv) -# -# This Program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. -# -# This Program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with OpenELEC.tv; see the file COPYING. If not, write to -# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. -# http://www.gnu.org/copyleft/gpl.html -################################################################################ - -. config/options $1 - -mkdir -p $INSTALL/sbin - cp $PKG_BUILD/portmap $INSTALL/sbin/ - -mkdir -p $INSTALL/usr/sbin - cp $PKG_BUILD/pmap_set $INSTALL/usr/sbin/ - cp $PKG_BUILD/pmap_dump $INSTALL/usr/sbin/ diff --git a/packages/network/portmap/meta b/packages/network/portmap/meta deleted file mode 100644 index c8e8eab2d4..0000000000 --- a/packages/network/portmap/meta +++ /dev/null @@ -1,36 +0,0 @@ -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv) -# -# This Program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. -# -# This Program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with OpenELEC.tv; see the file COPYING. If not, write to -# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. -# http://www.gnu.org/copyleft/gpl.html -################################################################################ - -PKG_NAME="portmap" -PKG_VERSION="4" -PKG_REV="1" -PKG_ARCH="any" -PKG_LICENSE="OSS" -PKG_SITE="ftp://ftp.porcupine.org/pub/security/" -PKG_URL="ftp://ftp.porcupine.org/pub/security/${PKG_NAME}_${PKG_VERSION}.tar.gz" -PKG_DEPENDS="" -PKG_BUILD_DEPENDS="toolchain" -PKG_PRIORITY="optional" -PKG_SECTION="network" -PKG_SHORTDESC="portmap: RPC portmapper" -PKG_LONGDESC="This is an RPC portmapper that prevents theft of NIS (YP), NFS, and other sensitive information via the portmapper. As an option, the program supports access control in the style of the tcp wrapper (log_tcp) package." -PKG_IS_ADDON="no" - -PKG_AUTORECONF="no" diff --git a/packages/network/portmap/patches/portmap-4-errno.patch b/packages/network/portmap/patches/portmap-4-errno.patch deleted file mode 100644 index bd83ac863e..0000000000 --- a/packages/network/portmap/patches/portmap-4-errno.patch +++ /dev/null @@ -1,18 +0,0 @@ ---- portmap_4/portmap.c.old 1996-05-31 09:52:59.000000000 -0400 -+++ portmap_4/portmap.c 2002-12-13 11:44:16.000000000 -0500 -@@ -94,6 +94,7 @@ - #ifdef SYSV40 - #include - #endif -+#include - - extern char *strerror(); - #include -@@ -124,7 +125,6 @@ - static void callit(); - struct pmaplist *pmaplist; - int debugging = 0; --extern int errno; - - #include "pmap_check.h" - diff --git a/packages/network/portmap/patches/portmap-4-linux.patch b/packages/network/portmap/patches/portmap-4-linux.patch deleted file mode 100644 index c29b3d570f..0000000000 --- a/packages/network/portmap/patches/portmap-4-linux.patch +++ /dev/null @@ -1,27 +0,0 @@ ---- portmap_4/Makefile.orig Fri May 31 09:50:40 1996 -+++ portmap_4/Makefile Fri Aug 9 17:40:43 1996 -@@ -67,9 +67,9 @@ - - SHELL = /bin/sh - --COPT = -Dconst= -Dperror=xperror $(HOSTS_ACCESS) $(CHECK_PORT) \ -+COPT = -Dconst= $(HOSTS_ACCESS) $(CHECK_PORT) \ - $(SYS) -DFACILITY=$(FACILITY) $(ULONG) $(ZOMBIES) $(SA_LEN) --CFLAGS = $(COPT) -O $(NSARCHS) $(SETPGRP) -+CFLAGS = $(COPT) $(RPM_OPT_FLAGS) $(NSARCHS) $(SETPGRP) - OBJECTS = portmap.o pmap_check.o from_local.o $(AUX) - - all: portmap pmap_dump pmap_set ---- portmap_4/Makefile.bad 1996-05-31 09:50:40.000000000 -0400 -+++ portmap_4/Makefile 2002-12-12 09:54:00.000000000 -0500 -@@ -74,8 +74,8 @@ - - all: portmap pmap_dump pmap_set - --portmap: $(OBJECTS) $(WRAP_DIR)/libwrap.a -- $(CC) $(CFLAGS) -o $@ $(OBJECTS) $(WRAP_DIR)/libwrap.a $(LIBS) -+portmap: $(OBJECTS) -+ $(CC) $(CFLAGS) -o $@ $(OBJECTS) $(LIBS) - - pmap_dump: pmap_dump.c - $(CC) $(CFLAGS) -o $@ $? $(LIBS) diff --git a/packages/network/portmap/patches/portmap-4-loopback.patch b/packages/network/portmap/patches/portmap-4-loopback.patch deleted file mode 100644 index 5234e7ef56..0000000000 --- a/packages/network/portmap/patches/portmap-4-loopback.patch +++ /dev/null @@ -1,51 +0,0 @@ ---- portmap_4/portmap.c.orig 2004-08-12 10:48:13.405000000 -0400 -+++ portmap_4/portmap.c 2004-08-12 10:58:13.666000000 -0400 -@@ -126,6 +126,7 @@ - static void callit(); - struct pmaplist *pmaplist; - int debugging = 0; -+int localhost_only = 0; - - #include "pmap_check.h" - -@@ -140,13 +141,17 @@ - int len = sizeof(struct sockaddr_in); - register struct pmaplist *pml; - -- while ((c = getopt(argc, argv, "dv")) != EOF) { -+ while ((c = getopt(argc, argv, "dlv")) != EOF) { - switch (c) { - - case 'd': - debugging = 1; - break; - -+ case 'l': -+ localhost_only = 1; -+ break; -+ - case 'v': - verboselog = 1; - break; -@@ -154,6 +159,7 @@ - default: - (void) fprintf(stderr, "usage: %s [-dv]\n", argv[0]); - (void) fprintf(stderr, "-d: debugging mode\n"); -+ (void) fprintf(stderr, "-l: listen on localhost only\n"); - (void) fprintf(stderr, "-v: verbose logging\n"); - exit(1); - } -@@ -176,7 +182,12 @@ - exit(1); - } - -- addr.sin_addr.s_addr = 0; -+ if (localhost_only) { -+ addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); -+ syslog(LOG_NOTICE, "Only binding to LOOPBACK address!"); -+ } else { -+ addr.sin_addr.s_addr = 0; -+ } - addr.sin_family = AF_INET; - addr.sin_port = htons(PMAPPORT); - if (bind(sock, (struct sockaddr *)&addr, len) != 0) { diff --git a/packages/network/portmap/patches/portmap-4-pie.patch b/packages/network/portmap/patches/portmap-4-pie.patch deleted file mode 100644 index ee22eb769e..0000000000 --- a/packages/network/portmap/patches/portmap-4-pie.patch +++ /dev/null @@ -1,42 +0,0 @@ ---- portmap_4/Makefile.pie 2003-10-28 20:18:32.000000000 -0800 -+++ portmap_4/Makefile 2003-10-28 20:18:32.000000000 -0800 -@@ -74,8 +74,11 @@ - - all: portmap pmap_dump pmap_set - -+$(OBJECTS): %.o: %.c -+ $(CC) $(CFLAGS) -fpie -c $< -+ - portmap: $(OBJECTS) -- $(CC) $(CFLAGS) -o $@ $(OBJECTS) $(LIBS) -+ $(CC) $(CFLAGS) -o $@ -pie $(OBJECTS) $(LIBS) - - pmap_dump: pmap_dump.c - $(CC) $(CFLAGS) -o $@ $? $(LIBS) ---- portmap_4/pmap_check.h.pie 2003-10-28 20:26:34.000000000 -0800 -+++ portmap_4/pmap_check.h 2003-10-28 20:26:49.000000000 -0800 -@@ -6,6 +6,6 @@ - extern int check_setunset(); - extern int check_privileged_port(); - extern int check_callit(); --extern int verboselog; --extern int allow_severity; --extern int deny_severity; -+extern int verboselog __attribute__ ((visibility ("hidden"))); -+extern int allow_severity __attribute__ ((visibility ("hidden"))); -+extern int deny_severity __attribute__ ((visibility ("hidden"))); ---- portmap_4/pmap_check.c.pie 2003-10-28 20:27:38.000000000 -0800 -+++ portmap_4/pmap_check.c 2003-10-28 20:27:40.000000000 -0800 -@@ -63,9 +63,9 @@ - - static void logit(); - static void toggle_verboselog(); --int verboselog = 0; --int allow_severity = LOG_INFO; --int deny_severity = LOG_WARNING; -+int verboselog __attribute ((visibility ("hidden"))) = 0; -+int allow_severity __attribute ((visibility ("hidden"))) = LOG_INFO; -+int deny_severity __attribute ((visibility ("hidden"))) = LOG_WARNING; - - /* A handful of macros for "readability". */ - diff --git a/packages/network/portmap/patches/portmap-4-sigpipe.patch b/packages/network/portmap/patches/portmap-4-sigpipe.patch deleted file mode 100644 index dba7cf4bb1..0000000000 --- a/packages/network/portmap/patches/portmap-4-sigpipe.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- portmap_4/portmap.c.sigpipe Sun Feb 11 17:45:11 2001 -+++ portmap_4/portmap.c Sun Feb 11 17:45:51 2001 -@@ -228,6 +228,9 @@ - #else - (void)signal(SIGCHLD, reap); - #endif -+ /* Dying on SIGPIPE doesn't help anyone */ -+ (void)signal(SIGPIPE, SIG_IGN); -+ - svc_run(); - syslog(LOG_ERR, "run_svc returned unexpectedly"); - abort();