]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/commitdiff
chrpath: New package.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 23 Jul 2011 08:54:46 +0000 (10:54 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 23 Jul 2011 08:54:46 +0000 (10:54 +0200)
pkgs/chrpath/chrpath.nm [new file with mode: 0644]
pkgs/chrpath/patches/chrpath-0.13-NULL-entry.patch [new file with mode: 0644]

diff --git a/pkgs/chrpath/chrpath.nm b/pkgs/chrpath/chrpath.nm
new file mode 100644 (file)
index 0000000..22c3816
--- /dev/null
@@ -0,0 +1,50 @@
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
+#                                                                             #
+# 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 3 of the License, 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 this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# Definitions
+###############################################################################
+
+include $(PKGROOT)/Include
+
+PKG_NAME       = chrpath
+PKG_VER        = 0.13
+PKG_REL        = 1
+
+PKG_MAINTAINER =
+PKG_GROUPS     = Development/Tools
+PKG_URL        = ftp://ftp.hungry.com/pub/hungry/chrpath/
+PKG_LICENSE    = GPL+
+PKG_SUMMARY    = Modify rpath of compiled programs.
+
+define PKG_DESCRIPTION
+       chrpath allows you to modify the dynamic library load path (rpath) of
+       compiled programs.  Currently, only removing and modifying the rpath
+       is supported.
+endef
+
+PKG_TARBALL    = $(THISAPP).tar.gz
+
+CONFIGURE_OPTIONS += \
+       --mandir=/usr/share/man
+
+define STAGE_INSTALL_CMDS
+       rm -rfv $(BUILDROOT)/usr/doc
+endef
diff --git a/pkgs/chrpath/patches/chrpath-0.13-NULL-entry.patch b/pkgs/chrpath/patches/chrpath-0.13-NULL-entry.patch
new file mode 100644 (file)
index 0000000..27275d2
--- /dev/null
@@ -0,0 +1,16 @@
+diff -uNr chrpath-0.13.old/killrpath.c chrpath-0.13/killrpath.c
+--- chrpath-0.13.old/killrpath.c       2003-06-24 00:46:15.000000000 +0200
++++ chrpath-0.13/killrpath.c   2009-07-19 23:05:11.000000000 +0200
+@@ -73,8 +73,11 @@
+        if ( ! elf_dynpath_tag(dyns[i].d_tag) )
+         dynpos++;
+      }
+-   for (; dynpos < i; dynpos++)
++   for (; dynpos < i; dynpos++) {
+      dyns[dynpos].d_tag = DT_NULL;
++     dyns[dynpos].d_un.d_val = 0x0;
++   }
++
+    if (lseek(fd, phdr.p_offset, SEEK_SET) == -1
+        || write(fd, dyns, phdr.p_filesz) != (int)phdr.p_filesz)