diff options
author | James E. Housley <jeh@FreeBSD.org> | 2003-11-21 00:59:01 +0000 |
---|---|---|
committer | James E. Housley <jeh@FreeBSD.org> | 2003-11-21 00:59:01 +0000 |
commit | ec0975dc4df403f14ed701b3983b412c442db028 (patch) | |
tree | a34a4868fab715b614c280c2fdb51ac33ca2c525 /shells/scponly | |
parent | Include support for all possible antivirus in a package (diff) |
scponly dist includes a script which setup chroot cage, which
depends a location of run-time link-editor. Since FreeBSD has
dynamic root capability from __FreeBSD_version == 501105, we
should add new location to unbreak the script.
PR: 59511
Submintted by: MAINTAINER
Notes
Notes:
svn path=/head/; revision=94583
Diffstat (limited to 'shells/scponly')
-rw-r--r-- | shells/scponly/Makefile | 4 | ||||
-rw-r--r-- | shells/scponly/files/extra-patch-aa | 21 |
2 files changed, 25 insertions, 0 deletions
diff --git a/shells/scponly/Makefile b/shells/scponly/Makefile index 95b9acfe166c..619d8bcc0725 100644 --- a/shells/scponly/Makefile +++ b/shells/scponly/Makefile @@ -65,6 +65,10 @@ PLIST_SUB+= SCPONLY_CHROOT="@comment " .include <bsd.port.pre.mk> +.if ${OSVERSION} >= 501105 && exists(/libexec/ld-elf.so.1) +EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-aa +.endif + .if defined(WITHOUT_SCPONLY_WILDCARDS) CONFIGURE_ARGS+=--disable-wildcards .endif diff --git a/shells/scponly/files/extra-patch-aa b/shells/scponly/files/extra-patch-aa new file mode 100644 index 000000000000..4ecd72223afc --- /dev/null +++ b/shells/scponly/files/extra-patch-aa @@ -0,0 +1,21 @@ +--- ./setup_chroot.sh.in.orig Fri Nov 21 00:14:36 2003 ++++ ./setup_chroot.sh.in Fri Nov 21 00:15:13 2003 +@@ -106,6 +106,7 @@ + @INSTALL@ -d $targetdir/usr/local/lib + @INSTALL@ -d $targetdir/usr/local/bin + @INSTALL@ -d $targetdir/lib ++@INSTALL@ -d $targetdir/libexec + @INSTALL@ -d $targetdir/usr/lib + @INSTALL@ -d $targetdir/usr/libexec + @INSTALL@ -d $targetdir/usr/libexec/openssh +@@ -125,6 +126,10 @@ + fi + if [ -f /lib/ld-linux.so.2 ]; then + LIB_LIST="$LIB_LIST /lib/ld-linux.so.2" ++ LDSOFOUND=1 ++fi ++if [ -f /libexec/ld-elf.so.1 ]; then ++ LIB_LIST="$LIB_LIST /libexec/ld-elf.so.1" + LDSOFOUND=1 + fi + if [ -f /usr/libexec/ld-elf.so.1 ]; then |