diff options
author | John Marino <marino@FreeBSD.org> | 2013-11-29 18:34:34 +0000 |
---|---|---|
committer | John Marino <marino@FreeBSD.org> | 2013-11-29 18:34:34 +0000 |
commit | 2600ce4b431adfdab72ccd9932c19f548c5825dd (patch) | |
tree | 59a2c7e8bebbc5e5f22209674b264ca44df1b2e7 /ports-mgmt | |
parent | 27955500a75b2f33e3bdbb6b58d0da5394e7034c (diff) | |
download | ports-2600ce4b431adfdab72ccd9932c19f548c5825dd.tar.gz ports-2600ce4b431adfdab72ccd9932c19f548c5825dd.zip |
Notes
Diffstat (limited to 'ports-mgmt')
-rw-r--r-- | ports-mgmt/pkg-devel/Makefile | 5 | ||||
-rw-r--r-- | ports-mgmt/pkg-devel/files/extra-patch-pkg_pkg.8 | 34 | ||||
-rw-r--r-- | ports-mgmt/pkg/Makefile | 5 | ||||
-rw-r--r-- | ports-mgmt/pkg/files/extra-patch-pkg_pkg.8 | 34 |
4 files changed, 78 insertions, 0 deletions
diff --git a/ports-mgmt/pkg-devel/Makefile b/ports-mgmt/pkg-devel/Makefile index e69e93819304..e51dc29eb23a 100644 --- a/ports-mgmt/pkg-devel/Makefile +++ b/ports-mgmt/pkg-devel/Makefile @@ -20,6 +20,7 @@ USE_XZ= yes NO_CCACHE= yes USE_LDCONFIG= yes USES= uidfix +MAKE_ARGS+= PKG_PORTSDIR=${PORTSDIR} MAKE_ENV+= WITHOUT_PROFILE=yes __MAKE_CONF=/dev/null SRCCONF=/dev/null \ PORTREVISION=${PORTREVISION} @@ -28,6 +29,10 @@ MAKE_ENV+= WITHOUT_PROFILE=yes __MAKE_CONF=/dev/null SRCCONF=/dev/null \ # so that pkg-static is used from the wrkdir USE_SUBMAKE= yes +.if !exists(/usr/include/jail.h) +EXTRA_PATCHES= ${FILESDIR}/extra-patch-pkg_pkg.8 +.endif + .include <bsd.port.pre.mk> .if defined(WITH_DEBUG) && !defined(WITHOUT_DEBUG) diff --git a/ports-mgmt/pkg-devel/files/extra-patch-pkg_pkg.8 b/ports-mgmt/pkg-devel/files/extra-patch-pkg_pkg.8 new file mode 100644 index 000000000000..a6f077b2449b --- /dev/null +++ b/ports-mgmt/pkg-devel/files/extra-patch-pkg_pkg.8 @@ -0,0 +1,34 @@ +--- pkg/pkg.8.orig 2013-11-27 18:14:50.000000000 +0000 ++++ pkg/pkg.8 +@@ -30,7 +30,7 @@ + .Op Fl d + .Op Fl l + .Op Fl N +-.Op Fl j Ao jail name or id Ac | Fl c Ao chroot path Ac ++.Op Fl c Ao chroot path Ac + .Op Fl C Ao configuration file Ac + .Op Fl R Ao repository configuration directory Ac + .Ao command Ac Ao Ar flags Ac +@@ -129,22 +129,6 @@ is installed and activated: + # pkg_install-specifics + fi + .Ed +-.It Fl j Ao jail name or id Ac +-.Nm +-will execute in the given +-.Ao jail name or id Ac , +-where +-.Em name +-matches +-.Dq Cm jls Ar name +-and +-.Em id +-matches +-.Dq Cm jls Ar jid . +-See +-.Xr jail 8 +-and +-.Xr jls 8 . + .It Fl c Ao chroot path Ac + .Nm + will chroot in the diff --git a/ports-mgmt/pkg/Makefile b/ports-mgmt/pkg/Makefile index d6c45151ce02..77af1e7eae14 100644 --- a/ports-mgmt/pkg/Makefile +++ b/ports-mgmt/pkg/Makefile @@ -20,6 +20,7 @@ NO_CCACHE= yes USE_LDCONFIG= yes USES= uidfix shebangfix SHEBANG_FILES= scripts/completion/_pkg.bash.in +MAKE_ARGS+= PKG_PORTSDIR=${PORTSDIR} MAKE_ENV+= WITHOUT_PROFILE=yes __MAKE_CONF=/dev/null SRCCONF=/dev/null \ PORTREVISION=${PORTREVISION} @@ -28,6 +29,10 @@ MAKE_ENV+= WITHOUT_PROFILE=yes __MAKE_CONF=/dev/null SRCCONF=/dev/null \ # so that pkg-static is used from the wrkdir USE_SUBMAKE= yes +.if !exists(/usr/include/jail.h) +EXTRA_PATCHES= ${FILESDIR}/extra-patch-pkg_pkg.8 +.endif + .include <bsd.port.pre.mk> .if defined(WITH_DEBUG) && !defined(WITHOUT_DEBUG) diff --git a/ports-mgmt/pkg/files/extra-patch-pkg_pkg.8 b/ports-mgmt/pkg/files/extra-patch-pkg_pkg.8 new file mode 100644 index 000000000000..a6f077b2449b --- /dev/null +++ b/ports-mgmt/pkg/files/extra-patch-pkg_pkg.8 @@ -0,0 +1,34 @@ +--- pkg/pkg.8.orig 2013-11-27 18:14:50.000000000 +0000 ++++ pkg/pkg.8 +@@ -30,7 +30,7 @@ + .Op Fl d + .Op Fl l + .Op Fl N +-.Op Fl j Ao jail name or id Ac | Fl c Ao chroot path Ac ++.Op Fl c Ao chroot path Ac + .Op Fl C Ao configuration file Ac + .Op Fl R Ao repository configuration directory Ac + .Ao command Ac Ao Ar flags Ac +@@ -129,22 +129,6 @@ is installed and activated: + # pkg_install-specifics + fi + .Ed +-.It Fl j Ao jail name or id Ac +-.Nm +-will execute in the given +-.Ao jail name or id Ac , +-where +-.Em name +-matches +-.Dq Cm jls Ar name +-and +-.Em id +-matches +-.Dq Cm jls Ar jid . +-See +-.Xr jail 8 +-and +-.Xr jls 8 . + .It Fl c Ao chroot path Ac + .Nm + will chroot in the |