Use SETUID_ROOT_PERMS and allow building as normal user. Bump revision.

This commit is contained in:
joerg 2010-02-15 17:06:18 +00:00
parent 069a16e686
commit 8204e18749
3 changed files with 24 additions and 3 deletions

View file

@ -1,9 +1,9 @@
# $NetBSD: Makefile,v 1.17 2010/01/27 17:02:16 joerg Exp $
# $NetBSD: Makefile,v 1.18 2010/02/15 17:06:18 joerg Exp $
#
DISTNAME= priv-1.0-beta2
PKGNAME= priv-1.0beta2
PKGREVISION= 2
PKGREVISION= 3
CATEGORIES= security
MASTER_SITES= ftp://ftp.thistledown.com.au/pub/simonb/
@ -24,6 +24,8 @@ SUBST_SED.sysconfdir= -e "s|/usr/local/etc/|${PKG_SYSCONFDIR}/|g"
INSTALL_MAKE_FLAGS= bindir=${DESTDIR}${PREFIX}/bin \
mandir=${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
SPECIAL_PERMS+= bin/priv ${SETUID_ROOT_PERMS}
OWN_DIRS= ${PKG_SYSCONFDIR}/priv
.include "../../mk/bsd.pkg.mk"

View file

@ -1,6 +1,7 @@
$NetBSD: distinfo,v 1.6 2005/02/24 13:10:11 agc Exp $
$NetBSD: distinfo,v 1.7 2010/02/15 17:06:18 joerg Exp $
SHA1 (priv-1.0-beta2.tar.gz) = dee75baaf320c5dee112376cca0bb08a635f2806
RMD160 (priv-1.0-beta2.tar.gz) = 635e0e2cf64c0bdbbdc790a4833e650700473448
Size (priv-1.0-beta2.tar.gz) = 34507 bytes
SHA1 (patch-aa) = 2a1252d2593333ceb048baa269dbe1b2e9a5d1e4
SHA1 (patch-ab) = e6f89b30954ac9dbe0243e755287f5f8a37011bd

View file

@ -0,0 +1,18 @@
$NetBSD: patch-aa,v 1.3 2010/02/15 17:06:18 joerg Exp $
--- Makefile.in.orig 1997-07-08 06:19:04.000000000 +0000
+++ Makefile.in
@@ -75,11 +75,11 @@ priv: ${OBJ} @LIBOBJS@
${OBJ}: ${srcdir}/priv.h config.h
install: all ${srcdir}/priv.1 installdirs
- ${INSTALL_PROGRAM} -o root -m ${BINMODE} priv ${bindir}/${binprefix}priv
+ ${BSD_INSTALL_PROGRAM} priv ${bindir}/${binprefix}priv
${INSTALL_DATA} ${srcdir}/priv.1 ${mandir}/${manprefix}priv.${manext}
installdirs: mkinstalldirs
- ${srcdir}/mkinstalldirs ${bindir} ${mandir} ${sysconfdir}/priv
+ ${srcdir}/mkinstalldirs ${bindir} ${mandir}
uninstall:
rm -f ${bindir}/${binprefix}priv