#!/bin/sh # This is a shell archive echo x chrpath mkdir -p chrpath > /dev/null 2>&1 echo x chrpath/Makefile sed 's/^X//' > chrpath/Makefile << 'SHAR_END' X# New ports collection makefile for: chrpath X# Date created: 2009-12-01 X# Whom: bms X# X# $FreeBSD$ X# X XPORTNAME= chrpath XPORTVERSION= 0.13 XCATEGORIES= devel sysutils XMASTER_SITES= http://ftp.tux.org/pub/X-Windows/ftp.hungry.com/chrpath/ X XMAINTAINER= bms@FreeBSD.org XCOMMENT= Tool to modify DT_RPATH in existing ELF binaries X XGNU_CONFIGURE= yes X XMAN1= chrpath.1 X XPLIST_FILES= bin/chrpath XPORTDOCS= * X X.include SHAR_END echo x chrpath/distinfo sed 's/^X//' > chrpath/distinfo << 'SHAR_END' XMD5 (chrpath-0.13.tar.gz) = b73072a8fbba277558c50364b65bb407 XSHA256 (chrpath-0.13.tar.gz) = c1aa5342eac0daad81b8da05aa282ae1ccd6f68bc75ca94064304f541eed071b XSIZE (chrpath-0.13.tar.gz) = 125129 SHAR_END echo x chrpath/files mkdir -p chrpath/files > /dev/null 2>&1 echo x chrpath/pkg-descr sed 's/^X//' > chrpath/pkg-descr << 'SHAR_END' Xchrpath allows you to modify the dynamic library load path (rpath) of Xcompiled programs. Only removing and modifying the rpath is supported. SHAR_END echo x chrpath/files/patch-elf.c sed 's/^X//' > chrpath/files/patch-elf.c << 'SHAR_END' X--- elf.c.orig 2003-12-19 21:07:00.000000000 +0000 X+++ elf.c 2009-12-01 20:39:21.000000000 +0000 X@@ -55,7 +55,7 @@ X if (ehdr->e_phentsize != sizeof(Elf_Phdr)) X { X fprintf(stderr, "section size was read as %d, not %d!\n", X- ehdr->e_phentsize, sizeof(Elf_Phdr)); X+ ehdr->e_phentsize, (int)sizeof(Elf_Phdr)); X close(fd); X return -1; X } SHAR_END echo x chrpath/files/patch-Makefile.in sed 's/^X//' > chrpath/files/patch-Makefile.in << 'SHAR_END' X--- Makefile.in.orig 2009-12-01 20:39:04.000000000 +0000 X+++ Makefile.in 2009-12-01 20:39:13.000000000 +0000 X@@ -66,7 +66,7 @@ X X SUBDIRS = testsuite deb X X-docdir = $(prefix)/doc/$(PACKAGE)-$(VERSION) X+docdir = $(prefix)/share/doc/$(PACKAGE) X X doc_DATA = AUTHORS COPYING ChangeLog INSTALL NEWS README X SHAR_END exit