summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcy <cy@FreeBSD.org>2014-05-06 04:04:30 +0000
committercy <cy@FreeBSD.org>2014-05-06 04:04:30 +0000
commitc25912755a2120be7fbdcbf2d5e527718b249aa2 (patch)
tree3f45a761e55bce5282014edc9a6dcadcc0d2c97b
parentc236950c29ab1f8ab4a24f49e5af43a8d1bf8cf9 (diff)
downloadFreeBSD-ports-c25912755a2120be7fbdcbf2d5e527718b249aa2.zip
FreeBSD-ports-c25912755a2120be7fbdcbf2d5e527718b249aa2.tar.gz
Allow package build (make stage/make package) for non-root user.
Submitted by: John Hein <john.hein@microsemi.com>
-rw-r--r--security/krb5-maint/files/patch-av33
-rw-r--r--security/krb5-maint/pkg-plist8
-rw-r--r--security/krb5/files/patch-av33
-rw-r--r--security/krb5/pkg-plist8
4 files changed, 50 insertions, 32 deletions
diff --git a/security/krb5-maint/files/patch-av b/security/krb5-maint/files/patch-av
index 95394e4..e86eb93 100644
--- a/security/krb5-maint/files/patch-av
+++ b/security/krb5-maint/files/patch-av
@@ -1,15 +1,18 @@
-*** clients/ksu/Makefile.in.ORIG Sun Aug 2 16:51:18 1998
---- clients/ksu/Makefile.in Sun Aug 2 16:53:48 1998
-***************
-*** 3,7 ****
- mydir=ksu
- BUILDTOP=$(REL)$(U)$(S)$(U)
-! DEFINES = -DGET_TGT_VIA_PASSWD -DPRINC_LOOK_AHEAD -DCMD_PATH='"/bin /local/bin"'
- CFLAGS = $(CCOPTS) $(DEFINES) $(DEFS) $(LOCALINCLUDE)
-
---- 3,7 ----
- mydir=ksu
- BUILDTOP=$(REL)$(U)$(S)$(U)
-! DEFINES = -DGET_TGT_VIA_PASSWD -DPRINC_LOOK_AHEAD -DCMD_PATH='"/usr/bin /bin /usr/sbin /sbin"' -DDEBUG
- CFLAGS = $(CCOPTS) $(DEFINES) $(DEFS) $(LOCALINCLUDE)
-
+--- clients/ksu/Makefile.in.orig 2014-01-21 14:11:14.000000000 -0800
++++ clients/ksu/Makefile.in 2014-05-05 20:55:07.343860783 -0700
+@@ -1,6 +1,6 @@
+ mydir=clients$(S)ksu
+ BUILDTOP=$(REL)..$(S)..
+-DEFINES = -DGET_TGT_VIA_PASSWD -DPRINC_LOOK_AHEAD -DCMD_PATH='"/bin /local/bin"'
++DEFINES = -DGET_TGT_VIA_PASSWD -DPRINC_LOOK_AHEAD -DCMD_PATH='"/usr/bin /bin /usr/sbin /sbin"' -DDEBUG
+ DEFS=
+
+ PROG_LIBPATH=-L$(TOPLIBD)
+@@ -34,6 +34,6 @@
+
+ install::
+ -for f in ksu; do \
+- $(INSTALL_SETUID) $$f \
++ $(INSTALL_PROGRAM) $$f \
+ $(DESTDIR)$(CLIENT_BINDIR)/`echo $$f|sed '$(transform)'`; \
+ done
diff --git a/security/krb5-maint/pkg-plist b/security/krb5-maint/pkg-plist
index 1d5cf1e..f48bb63 100644
--- a/security/krb5-maint/pkg-plist
+++ b/security/krb5-maint/pkg-plist
@@ -7,8 +7,14 @@ bin/kinit
bin/klist
bin/kpasswd
bin/krb5-config
-bin/kswitch
+@mode 04755
+@owner root
+@group wheel
bin/ksu
+@mode
+@owner root
+@group wheel
+bin/kswitch
bin/ktutil
bin/kvno
bin/sclient
diff --git a/security/krb5/files/patch-av b/security/krb5/files/patch-av
index 95394e4..7ec54ab 100644
--- a/security/krb5/files/patch-av
+++ b/security/krb5/files/patch-av
@@ -1,15 +1,18 @@
-*** clients/ksu/Makefile.in.ORIG Sun Aug 2 16:51:18 1998
---- clients/ksu/Makefile.in Sun Aug 2 16:53:48 1998
-***************
-*** 3,7 ****
- mydir=ksu
- BUILDTOP=$(REL)$(U)$(S)$(U)
-! DEFINES = -DGET_TGT_VIA_PASSWD -DPRINC_LOOK_AHEAD -DCMD_PATH='"/bin /local/bin"'
- CFLAGS = $(CCOPTS) $(DEFINES) $(DEFS) $(LOCALINCLUDE)
-
---- 3,7 ----
- mydir=ksu
- BUILDTOP=$(REL)$(U)$(S)$(U)
-! DEFINES = -DGET_TGT_VIA_PASSWD -DPRINC_LOOK_AHEAD -DCMD_PATH='"/usr/bin /bin /usr/sbin /sbin"' -DDEBUG
- CFLAGS = $(CCOPTS) $(DEFINES) $(DEFS) $(LOCALINCLUDE)
-
+--- clients/ksu/Makefile.in.orig 2014-01-15 16:44:15.000000000 -0800
++++ clients/ksu/Makefile.in 2014-05-05 20:51:51.925985974 -0700
+@@ -1,6 +1,6 @@
+ mydir=clients$(S)ksu
+ BUILDTOP=$(REL)..$(S)..
+-DEFINES = -DGET_TGT_VIA_PASSWD -DPRINC_LOOK_AHEAD -DCMD_PATH='"/bin /local/bin"'
++DEFINES = -DGET_TGT_VIA_PASSWD -DPRINC_LOOK_AHEAD -DCMD_PATH='"/usr/bin /bin /usr/sbin /sbin"' -DDEBUG
+
+ KSU_LIBS=@KSU_LIBS@
+
+@@ -30,6 +30,6 @@
+
+ install::
+ -for f in ksu; do \
+- $(INSTALL_SETUID) $$f \
++ $(INSTALL_PROGRAM) $$f \
+ $(DESTDIR)$(CLIENT_BINDIR)/`echo $$f|sed '$(transform)'`; \
+ done
diff --git a/security/krb5/pkg-plist b/security/krb5/pkg-plist
index 0c9b8ab..95f61ef 100644
--- a/security/krb5/pkg-plist
+++ b/security/krb5/pkg-plist
@@ -7,8 +7,14 @@ bin/kinit
bin/klist
bin/kpasswd
bin/krb5-config
-bin/kswitch
+@mode 04755
+@owner root
+@group wheel
bin/ksu
+@mode
+@owner root
+@group wheel
+bin/kswitch
bin/ktutil
bin/kvno
bin/sclient
OpenPOWER on IntegriCloud