Add SPECIAL_PERMS entries for binaries the need special perms. Because of the above change switch all amanda packages to user-destdir support.diff -r1.53 -r1.54 pkgsrc/sysutils/amanda-client/Makefile
(sbd)
@@ -1,37 +1,42 @@ | @@ -1,37 +1,42 @@ | |||
1 | # $NetBSD: Makefile,v 1.53 2012/07/30 07:00:50 sbd Exp $ | 1 | # $NetBSD: Makefile,v 1.54 2012/07/30 07:04:29 sbd Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | PKGNAME= amanda-client-${AMANDA_VERSION} | 4 | PKGNAME= amanda-client-${AMANDA_VERSION} | |
5 | PKGREVISION= 2 | 5 | PKGREVISION= 2 | |
6 | SVR4_PKGNAME= amacl | 6 | SVR4_PKGNAME= amacl | |
7 | 7 | |||
8 | COMMENT= Client part of Amanda, a network backup system | 8 | COMMENT= Client part of Amanda, a network backup system | |
9 | 9 | |||
10 | PKG_DESTDIR_SUPPORT= destdir | 10 | PKG_DESTDIR_SUPPORT= user-destdir | |
11 | 11 | |||
12 | USE_TOOLS+= awk:run perl:run | 12 | USE_TOOLS+= awk:run perl:run | |
13 | 13 | |||
14 | .include "../../sysutils/amanda-common/Makefile.common" | 14 | .include "../../sysutils/amanda-common/Makefile.common" | |
15 | CONFIGURE_ARGS+= --without-server --without-gnuplot | 15 | CONFIGURE_ARGS+= --without-server --without-gnuplot | |
16 | 16 | |||
17 | .if !empty(PKG_OPTIONS:Mamanda-smb) | 17 | .if !empty(PKG_OPTIONS:Mamanda-smb) | |
18 | CONFIGURE_ARGS+= --with-smbclient | 18 | CONFIGURE_ARGS+= --with-smbclient | |
19 | DEPENDS+= {samba>=2.0,ja-samba>=2.0}:../../net/samba | 19 | DEPENDS+= {samba>=2.0,ja-samba>=2.0}:../../net/samba | |
20 | .endif | 20 | .endif | |
21 | 21 | |||
22 | .if !empty(PKG_OPTIONS:Mamanda-dump-snap) | 22 | .if !empty(PKG_OPTIONS:Mamanda-dump-snap) | |
23 | CONFIGURE_ARGS+= --with-dump-use-snapshot --with-rundump | 23 | CONFIGURE_ARGS+= --with-dump-use-snapshot --with-rundump | |
24 | .endif | 24 | .endif | |
25 | 25 | |||
26 | # Prevent configure script from finding unnecessary libraries. We'll patch | 26 | # Prevent configure script from finding unnecessary libraries. We'll patch | |
27 | # the amrecover Makefile to add the readline libraries as it's the only | 27 | # the amrecover Makefile to add the readline libraries as it's the only | |
28 | # program that uses readline. (XXX: incorrect, does not happen) | 28 | # program that uses readline. (XXX: incorrect, does not happen) | |
29 | # | 29 | # | |
30 | CONFIGURE_ENV+= ac_cv_lib_intl_main=no | 30 | CONFIGURE_ENV+= ac_cv_lib_intl_main=no | |
31 | CONFIGURE_ENV+= ac_cv_lib_termcap_tgetent=no | 31 | CONFIGURE_ENV+= ac_cv_lib_termcap_tgetent=no | |
32 | CONFIGURE_ENV+= ac_cv_lib_curses_tgetent=no | 32 | CONFIGURE_ENV+= ac_cv_lib_curses_tgetent=no | |
33 | CONFIGURE_ENV+= ac_cv_lib_ncurses_tgetent=no | 33 | CONFIGURE_ENV+= ac_cv_lib_ncurses_tgetent=no | |
34 | CONFIGURE_ENV+= ac_cv_lib_readline_readline=no | 34 | CONFIGURE_ENV+= ac_cv_lib_readline_readline=no | |
35 | 35 | |||
36 | SPECIAL_PERMS+= libexec/runtar ${AM_PROG_PERMS} | |||
37 | SPECIAL_PERMS+= libexec/killpgrp ${AM_PROG_PERMS} | |||
38 | SPECIAL_PERMS+= libexec/rundump ${AM_PROG_PERMS} | |||
39 | SPECIAL_PERMS+= libexec/calcsize ${AM_PROG_PERMS} | |||
40 | ||||
36 | .include "../../sysutils/amanda-common/buildlink3.mk" | 41 | .include "../../sysutils/amanda-common/buildlink3.mk" | |
37 | .include "../../mk/bsd.pkg.mk" | 42 | .include "../../mk/bsd.pkg.mk" |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.55 2012/07/30 07:03:04 sbd Exp $ | 1 | # $NetBSD: Makefile,v 1.56 2012/07/30 07:04:29 sbd Exp $ | |
2 | 2 | |||
3 | PKGNAME= amanda-common-${AMANDA_VERSION} | 3 | PKGNAME= amanda-common-${AMANDA_VERSION} | |
4 | SVR4_PKGNAME= amaco | 4 | SVR4_PKGNAME= amaco | |
5 | PKGREVISION= 2 | 5 | PKGREVISION= 2 | |
6 | 6 | |||
7 | COMMENT= Common libraries and binaries for Amanda | 7 | COMMENT= Common libraries and binaries for Amanda | |
8 | 8 | |||
9 | PKG_DESTDIR_SUPPORT= user-destdir | 9 | PKG_DESTDIR_SUPPORT= user-destdir | |
10 | 10 | |||
11 | .include "../../sysutils/amanda-common/Makefile.common" | 11 | .include "../../sysutils/amanda-common/Makefile.common" | |
12 | 12 | |||
13 | .if ${OPSYS} == "SunOS" | 13 | .if ${OPSYS} == "SunOS" | |
14 | CPPFLAGS+= -D_LARGEFILE64_SOURCE | 14 | CPPFLAGS+= -D_LARGEFILE64_SOURCE | |
@@ -25,16 +25,14 @@ CONFIGURE_ENV+= ac_cv_lib_ncurses_tgete | @@ -25,16 +25,14 @@ CONFIGURE_ENV+= ac_cv_lib_ncurses_tgete | |||
25 | CONFIGURE_ENV+= ac_cv_lib_readline_readline=no | 25 | CONFIGURE_ENV+= ac_cv_lib_readline_readline=no | |
26 | 26 | |||
27 | PKG_GROUPS= ${AMANDA_GROUP} | 27 | PKG_GROUPS= ${AMANDA_GROUP} | |
28 | PKG_USERS= ${AMANDA_USER}:${AMANDA_GROUP} | 28 | PKG_USERS= ${AMANDA_USER}:${AMANDA_GROUP} | |
29 | 29 | |||
30 | PKG_GECOS.${AMANDA_USER}= Amanda backup user | 30 | PKG_GECOS.${AMANDA_USER}= Amanda backup user | |
31 | PKG_SHELL.${AMANDA_USER}= ${SH} | 31 | PKG_SHELL.${AMANDA_USER}= ${SH} | |
32 | PKG_HOME.${AMANDA_USER}= ${AMANDA_VAR} | 32 | PKG_HOME.${AMANDA_USER}= ${AMANDA_VAR} | |
33 | 33 | |||
34 | OWN_DIRS_PERMS= ${AMANDA_VAR} ${AMANDA_USER} ${AMANDA_GROUP} 0750 | 34 | OWN_DIRS_PERMS= ${AMANDA_VAR} ${AMANDA_USER} ${AMANDA_GROUP} 0750 | |
35 | OWN_DIRS_PERMS+= ${AMANDA_VAR}/gnutar-lists ${AMANDA_USER} ${AMANDA_GROUP} 0750 | 35 | OWN_DIRS_PERMS+= ${AMANDA_VAR}/gnutar-lists ${AMANDA_USER} ${AMANDA_GROUP} 0750 | |
36 | OWN_DIRS_PERMS+= ${VARBASE}/log/amanda ${AMANDA_USER} ${AMANDA_GROUP} 0750 | 36 | OWN_DIRS_PERMS+= ${VARBASE}/log/amanda ${AMANDA_USER} ${AMANDA_GROUP} 0750 | |
37 | 37 | |||
38 | INSTALL_MAKE_FLAGS+= SETUID_GROUP=${ROOT_GROUP} | |||
39 | ||||
40 | .include "../../mk/bsd.pkg.mk" | 38 | .include "../../mk/bsd.pkg.mk" |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile.common,v 1.35 2012/07/30 07:03:04 sbd Exp $ | 1 | # $NetBSD: Makefile.common,v 1.36 2012/07/30 07:04:29 sbd Exp $ | |
2 | 2 | |||
3 | # used by sysutils/amanda-common/Makefile | 3 | # used by sysutils/amanda-common/Makefile | |
4 | # used by sysutils/amanda-client/Makefile | 4 | # used by sysutils/amanda-client/Makefile | |
5 | # used by sysutils/amanda-server/Makefile | 5 | # used by sysutils/amanda-server/Makefile | |
6 | # used by sysutils/amanda-plot/Makefile | 6 | # used by sysutils/amanda-plot/Makefile | |
7 | 7 | |||
8 | COMMONDIR= ../../sysutils/amanda-common | 8 | COMMONDIR= ../../sysutils/amanda-common | |
9 | .include "${COMMONDIR}/version.mk" | 9 | .include "${COMMONDIR}/version.mk" | |
10 | 10 | |||
11 | DISTNAME= amanda-${AMANDA_VERSION} | 11 | DISTNAME= amanda-${AMANDA_VERSION} | |
12 | CATEGORIES= sysutils | 12 | CATEGORIES= sysutils | |
13 | MASTER_SITES?= ${MASTER_SITE_SOURCEFORGE:=amanda/} | 13 | MASTER_SITES?= ${MASTER_SITE_SOURCEFORGE:=amanda/} | |
14 | 14 | |||
@@ -23,38 +23,43 @@ AMANDA_GROUP?= sysadmin | @@ -23,38 +23,43 @@ AMANDA_GROUP?= sysadmin | |||
23 | .else | 23 | .else | |
24 | # NetBSD, Linux and Darwin | 24 | # NetBSD, Linux and Darwin | |
25 | AMANDA_GROUP?= operator | 25 | AMANDA_GROUP?= operator | |
26 | .endif | 26 | .endif | |
27 | 27 | |||
28 | AMANDA_USER?= amandabackup | 28 | AMANDA_USER?= amandabackup | |
29 | AMANDA_TMP?= /tmp/amanda | 29 | AMANDA_TMP?= /tmp/amanda | |
30 | AMANDA_VAR?= ${VARBASE}/amanda | 30 | AMANDA_VAR?= ${VARBASE}/amanda | |
31 | 31 | |||
32 | PKG_GROUPS_VARS+= AMANDA_GROUP | 32 | PKG_GROUPS_VARS+= AMANDA_GROUP | |
33 | PKG_USERS_VARS+= AMANDA_USER | 33 | PKG_USERS_VARS+= AMANDA_USER | |
34 | BUILD_DEFS+= AMANDA_TMP AMANDA_USER AMANDA_GROUP AMANDA_VAR VARBASE | 34 | BUILD_DEFS+= AMANDA_TMP AMANDA_USER AMANDA_GROUP AMANDA_VAR VARBASE | |
35 | 35 | |||
36 | AM_PROG_PERMS= ${REAL_ROOT_USER} ${AMANDA_GROUP} 4510 | |||
37 | ||||
36 | USE_LIBTOOL= yes | 38 | USE_LIBTOOL= yes | |
37 | USE_TOOLS+= gzip:run gtar:run | 39 | USE_TOOLS+= gzip:run gtar:run | |
38 | 40 | |||
39 | GNU_CONFIGURE= yes | 41 | GNU_CONFIGURE= yes | |
40 | CONFIGURE_ENV+= ac_cv_path_GZIP=${TOOLS_GZIP_CMD:Q} | 42 | CONFIGURE_ENV+= ac_cv_path_GZIP=${TOOLS_GZIP_CMD:Q} | |
41 | CONFIGURE_ENV+= GNUTAR=${TOOLS_GTAR:Q} | 43 | CONFIGURE_ENV+= GNUTAR=${TOOLS_GTAR:Q} | |
42 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} | 44 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} | |
43 | CONFIGURE_ARGS+= --localstatedir=${AMANDA_VAR:Q} | 45 | CONFIGURE_ARGS+= --localstatedir=${AMANDA_VAR:Q} | |
44 | CONFIGURE_ARGS+= --with-tmpdir=${AMANDA_TMP:Q} | 46 | CONFIGURE_ARGS+= --with-tmpdir=${AMANDA_TMP:Q} | |
45 | CONFIGURE_ARGS+= --with-gnutar-listdir=${AMANDA_VAR:Q}/gnutar-lists | 47 | CONFIGURE_ARGS+= --with-gnutar-listdir=${AMANDA_VAR:Q}/gnutar-lists | |
46 | CONFIGURE_ARGS+= --with-debugging=${VARBASE:Q}/log/amanda | 48 | CONFIGURE_ARGS+= --with-debugging=${VARBASE:Q}/log/amanda | |
47 | CONFIGURE_ARGS+= --with-user=${AMANDA_USER:Q} | 49 | CONFIGURE_ARGS+= --with-user=${AMANDA_USER:Q} | |
48 | CONFIGURE_ARGS+= --with-group=${AMANDA_GROUP:Q} | 50 | CONFIGURE_ARGS+= --with-group=${AMANDA_GROUP:Q} | |
49 | CONFIGURE_ARGS+= --with-owner=${REAL_ROOT_USER:Q} | 51 | CONFIGURE_ARGS+= --with-owner=${REAL_ROOT_USER:Q} | |
50 | CONFIGURE_ARGS+= --with-mmap | 52 | CONFIGURE_ARGS+= --with-mmap | |
51 | CONFIGURE_ARGS+= --with-index-server=localhost | 53 | CONFIGURE_ARGS+= --with-index-server=localhost | |
52 | CONFIGURE_ARGS+= --with-tape-server=localhost | 54 | CONFIGURE_ARGS+= --with-tape-server=localhost | |
53 | CONFIGURE_ARGS+= --with-assertions | 55 | CONFIGURE_ARGS+= --with-assertions | |
54 | CONFIGURE_ARGS+= --with-amandahosts | 56 | CONFIGURE_ARGS+= --with-amandahosts | |
55 | CONFIGURE_ARGS+= --with-bsd-security | 57 | CONFIGURE_ARGS+= --with-bsd-security | |
56 | CONFIGURE_ARGS+= --with-bsdtcp-security | 58 | CONFIGURE_ARGS+= --with-bsdtcp-security | |
57 | CONFIGURE_ARGS+= --with-bsdudp-security | 59 | CONFIGURE_ARGS+= --with-bsdudp-security | |
58 | CONFIGURE_ARGS+= --with-dump-honor-nodump | 60 | CONFIGURE_ARGS+= --with-dump-honor-nodump | |
61 | CONFIGURE_ARGS+= --disable-installperms | |||
62 | ||||
63 | INSTALL_MAKE_FLAGS+= SETUID_GROUP=${ROOT_GROUP} | |||
59 | 64 | |||
60 | .include "../../sysutils/amanda-common/options.mk" | 65 | .include "../../sysutils/amanda-common/options.mk" |
@@ -1,22 +1,22 @@ | @@ -1,22 +1,22 @@ | |||
1 | # $NetBSD: Makefile,v 1.28 2012/07/30 07:00:12 sbd Exp $ | 1 | # $NetBSD: Makefile,v 1.29 2012/07/30 07:04:29 sbd Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | PKGNAME= amanda-plot-${AMANDA_VERSION} | 4 | PKGNAME= amanda-plot-${AMANDA_VERSION} | |
5 | PKGREVISION= 1 | 5 | PKGREVISION= 1 | |
6 | SVR4_PKGNAME= amapl | 6 | SVR4_PKGNAME= amapl | |
7 | 7 | |||
8 | COMMENT= Visualizes the behavior of Amanda, a network backup system | 8 | COMMENT= Visualizes the behavior of Amanda, a network backup system | |
9 | 9 | |||
10 | PKG_DESTDIR_SUPPORT= destdir | 10 | PKG_DESTDIR_SUPPORT= user-destdir | |
11 | 11 | |||
12 | DEPENDS+= gnuplot>=3.7:../../graphics/gnuplot | 12 | DEPENDS+= gnuplot>=3.7:../../graphics/gnuplot | |
13 | DEPENDS+= amanda-server-${AMANDA_VERSION}{,nb[0-9]*}:../../sysutils/amanda-server | 13 | DEPENDS+= amanda-server-${AMANDA_VERSION}{,nb[0-9]*}:../../sysutils/amanda-server | |
14 | 14 | |||
15 | .include "../../sysutils/amanda-common/Makefile.common" | 15 | .include "../../sysutils/amanda-common/Makefile.common" | |
16 | 16 | |||
17 | CONFIGURE_ARGS+= --without-client | 17 | CONFIGURE_ARGS+= --without-client | |
18 | CONFIGURE_ARGS+= --without-restore | 18 | CONFIGURE_ARGS+= --without-restore | |
19 | CONFIGURE_ARGS+= --without-amrecover | 19 | CONFIGURE_ARGS+= --without-amrecover | |
20 | CONFIGURE_ENV+= GNUPLOT="${LOCALBASE}/bin/gnuplot" | 20 | CONFIGURE_ENV+= GNUPLOT="${LOCALBASE}/bin/gnuplot" | |
21 | 21 | |||
22 | .include "../../mk/bsd.pkg.mk" | 22 | .include "../../mk/bsd.pkg.mk" |
@@ -1,34 +1,38 @@ | @@ -1,34 +1,38 @@ | |||
1 | # $NetBSD: Makefile,v 1.51 2012/07/30 07:00:50 sbd Exp $ | 1 | # $NetBSD: Makefile,v 1.52 2012/07/30 07:04:29 sbd Exp $ | |
2 | 2 | |||
3 | PKGNAME= amanda-server-${AMANDA_VERSION} | 3 | PKGNAME= amanda-server-${AMANDA_VERSION} | |
4 | PKGREVISION= 2 | 4 | PKGREVISION= 2 | |
5 | SVR4_PKGNAME= amase | 5 | SVR4_PKGNAME= amase | |
6 | 6 | |||
7 | COMMENT= Server part of Amanda, a network backup system | 7 | COMMENT= Server part of Amanda, a network backup system | |
8 | 8 | |||
9 | PKG_DESTDIR_SUPPORT= destdir | 9 | PKG_DESTDIR_SUPPORT= user-destdir | |
10 | 10 | |||
11 | .include "../../sysutils/amanda-common/Makefile.common" | 11 | .include "../../sysutils/amanda-common/Makefile.common" | |
12 | 12 | |||
13 | USE_TOOLS+= awk:run perl:run mail:run | 13 | USE_TOOLS+= awk:run perl:run mail:run | |
14 | 14 | |||
15 | DEPENDS+= p5-Perl4-CoreLibs-[0-9]*:../../devel/p5-Perl4-CoreLibs | 15 | DEPENDS+= p5-Perl4-CoreLibs-[0-9]*:../../devel/p5-Perl4-CoreLibs | |
16 | 16 | |||
17 | # Prevent configure script from finding unnecessary libraries. | 17 | # Prevent configure script from finding unnecessary libraries. | |
18 | # | 18 | # | |
19 | CONFIGURE_ENV+= ac_cv_lib_intl_main=no | 19 | CONFIGURE_ENV+= ac_cv_lib_intl_main=no | |
20 | CONFIGURE_ENV+= ac_cv_lib_termcap_tgetent=no | 20 | CONFIGURE_ENV+= ac_cv_lib_termcap_tgetent=no | |
21 | CONFIGURE_ENV+= ac_cv_lib_curses_tgetent=no | 21 | CONFIGURE_ENV+= ac_cv_lib_curses_tgetent=no | |
22 | CONFIGURE_ENV+= ac_cv_lib_ncurses_tgetent=no | 22 | CONFIGURE_ENV+= ac_cv_lib_ncurses_tgetent=no | |
23 | CONFIGURE_ENV+= ac_cv_lib_readline_readline=no | 23 | CONFIGURE_ENV+= ac_cv_lib_readline_readline=no | |
24 | 24 | |||
25 | CONFIGURE_ENV+= MAILER=${TOOLS_PATH.mail} | 25 | CONFIGURE_ENV+= MAILER=${TOOLS_PATH.mail} | |
26 | CONFIGURE_ARGS+= --without-client --without-gnuplot | 26 | CONFIGURE_ARGS+= --without-client --without-gnuplot | |
27 | 27 | |||
28 | PLIST_VARS+= scsi | 28 | PLIST_VARS+= scsi | |
29 | .if ${OPSYS} != "SunOS" | 29 | .if ${OPSYS} != "SunOS" | |
30 | PLIST.scsi= yes | 30 | PLIST.scsi= yes | |
31 | .endif | 31 | .endif | |
32 | 32 | |||
33 | SPECIAL_PERMS+= sbin/amcheck ${AM_PROG_PERMS} | |||
34 | SPECIAL_PERMS+= libexec/planner ${AM_PROG_PERMS} | |||
35 | SPECIAL_PERMS+= libexec/dumper ${AM_PROG_PERMS} | |||
36 | ||||
33 | .include "../../sysutils/amanda-common/buildlink3.mk" | 37 | .include "../../sysutils/amanda-common/buildlink3.mk" | |
34 | .include "../../mk/bsd.pkg.mk" | 38 | .include "../../mk/bsd.pkg.mk" |