Use @dir to do the same job as @postexec.

Suggested by:	adamw@
This commit is contained in:
Cy Schubert 2016-08-19 01:49:58 +00:00
parent edb2f5266c
commit a66d632098
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=420437
14 changed files with 49 additions and 59 deletions

View file

@ -3,7 +3,7 @@
PORTNAME= cfengine
PORTVERSION= 3.3.8
PORTREVISION= 11
PORTREVISION= 12
CATEGORIES= sysutils
MASTER_SITES= https://s3.amazonaws.com/cfengine.package-repos/tarballs/
PKGNAMESUFFIX= 33

View file

@ -264,11 +264,9 @@ share/cfengine/CoreBase/promises.cf
%%DOCSDIR%%/examples/win_emergency.cf
%%DOCSDIR%%/examples/win_registry.cf
%%DOCSDIR%%/examples/win_schedule.cf
@postexec chown root:wheel "/var/cfengine/ppkeys" >/dev/null 2>&1 || :
@postexec chmod 700 "/var/cfengine/ppkeys" >/dev/null 2>&1 || :
@postunexec rmdir "/var/cfengine/inputs" >/dev/null 2>&1 || :
@postunexec rmdir "/var/cfengine/masterfiles" >/dev/null 2>&1 || :
@postunexec rmdir "/var/cfengine/modules" >/dev/null 2>&1 || :
@postunexec rmdir "/var/cfengine/outputs" >/dev/null 2>&1 || :
@postunexec rmdir "/var/cfengine/ppkeys" >/dev/null 2>&1 || :
@postunexec rmdir "/var/cfengine" >/dev/null 2>&1 || :
@dir /var/cfengine/inputs
@dir /var/cfengine/masterfiles
@dir /var/cfengine/modules
@dir /var/cfengine/outputs
@dir(root,wheel,700) /var/cfengine/ppkeys
@dir /var/cfengine

View file

@ -3,7 +3,7 @@
PORTNAME= cfengine
PORTVERSION= 3.4.5
PORTREVISION= 8
PORTREVISION= 9
CATEGORIES= sysutils
MASTER_SITES= https://s3.amazonaws.com/cfengine.package-repos/tarballs/

View file

@ -296,11 +296,9 @@ share/cfengine/CoreBase/update.cf
%%DOCSDIR%%/examples/win_emergency.cf
%%DOCSDIR%%/examples/win_registry.cf
%%DOCSDIR%%/examples/win_schedule.cf
@postexec chown root:wheel "/var/cfengine/ppkeys" >/dev/null 2>&1 || :
@postexec chmod 700 "/var/cfengine/ppkeys" >/dev/null 2>&1 || :
@postunexec rmdir "/var/cfengine/inputs" >/dev/null 2>&1 || :
@postunexec rmdir "/var/cfengine/masterfiles" >/dev/null 2>&1 || :
@postunexec rmdir "/var/cfengine/modules" >/dev/null 2>&1 || :
@postunexec rmdir "/var/cfengine/outputs" >/dev/null 2>&1 || :
@postunexec rmdir "/var/cfengine/ppkeys" >/dev/null 2>&1 || :
@postunexec rmdir "/var/cfengine" >/dev/null 2>&1 || :
@dir /var/cfengine/inputs
@dir /var/cfengine/masterfiles
@dir /var/cfengine/modules
@dir /var/cfengine/outputs
@dir(root,wheel,700) /var/cfengine/ppkeys
@dir /var/cfengine

View file

@ -3,7 +3,7 @@
PORTNAME= cfengine
PORTVERSION= 3.5.3
PORTREVISION= 12
PORTREVISION= 13
CATEGORIES= sysutils
MASTER_SITES= https://s3.amazonaws.com/cfengine.package-repos/tarballs/

View file

@ -313,11 +313,9 @@ share/cfengine/CoreBase/update.cf
%%DOCSDIR%%/examples/win_emergency.cf
%%DOCSDIR%%/examples/win_registry.cf
%%DOCSDIR%%/examples/win_schedule.cf
@postexec chown root:wheel "/var/cfengine/ppkeys" >/dev/null 2>&1 || :
@postexec chmod 700 "/var/cfengine/ppkeys" >/dev/null 2>&1 || :
@postunexec rmdir "/var/cfengine/masterfiles" >/dev/null 2>&1 || :
@postunexec rmdir "/var/cfengine/inputs" >/dev/null 2>&1 || :
@postunexec rmdir "/var/cfengine/modules" >/dev/null 2>&1 || :
@postunexec rmdir "/var/cfengine/outputs" >/dev/null 2>&1 || :
@postunexec rmdir "/var/cfengine/ppkeys" >/dev/null 2>&1 || :
@postunexec rmdir "/var/cfengine" >/dev/null 2>&1 || :
@dir /var/cfengine/inputs
@dir /var/cfengine/masterfiles
@dir /var/cfengine/modules
@dir /var/cfengine/outputs
@dir(root,wheel,700) /var/cfengine/ppkeys
@dir /var/cfengine

View file

@ -3,7 +3,7 @@
PORTNAME= cfengine
PORTVERSION= 3.6.6
PORTREVISION= 2
PORTREVISION= 3
.if !defined(MASTERDIR)
PKGNAMESUFFIX= 36
PORTEPOCH?= 2

View file

@ -340,10 +340,9 @@ sbin/rpmvercmp
%%DOCSDIR%%/examples/win_registry.cf
%%DOCSDIR%%/examples/win_schedule.cf
%%DOCSDIR%%/examples/zenoss.cf
@postexec chown root:wheel "/var/cfengine/ppkeys" >/dev/null 2>&1 || :
@postexec chmod 700 "/var/cfengine/ppkeys" >/dev/null 2>&1 || :
@postunexec rmdir "/var/cfengine/inputs" >/dev/null 2>&1 || :
@postunexec rmdir "/var/cfengine/modules" >/dev/null 2>&1 || :
@postunexec rmdir "/var/cfengine/outputs" >/dev/null 2>&1 || :
@postunexec rmdir "/var/cfengine/ppkeys" >/dev/null 2>&1 || :
@postunexec rmdir "/var/cfengine" >/dev/null 2>&1 || :
@dir /var/cfengine/inputs
@dir /var/cfengine/masterfiles
@dir /var/cfengine/modules
@dir /var/cfengine/outputs
@dir(root,wheel,700) /var/cfengine/ppkeys
@dir /var/cfengine

View file

@ -3,7 +3,7 @@
PORTNAME= cfengine
PORTVERSION= 3.7.3
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= sysutils
MASTER_SITES= https://s3.amazonaws.com/cfengine-package-repos/tarballs/

View file

@ -350,10 +350,9 @@ sbin/rpmvercmp
%%DOCSDIR%%/examples/win_registry.cf
%%DOCSDIR%%/examples/win_schedule.cf
%%DOCSDIR%%/examples/zenoss.cf
@postexec chown root:wheel "/var/cfengine/ppkeys" >/dev/null 2>&1 || :
@postexec chmod 700 "/var/cfengine/ppkeys" >/dev/null 2>&1 || :
@postunexec rmdir "/var/cfengine/inputs" >/dev/null 2>&1 || :
@postunexec rmdir "/var/cfengine/modules" >/dev/null 2>&1 || :
@postunexec rmdir "/var/cfengine/outputs" >/dev/null 2>&1 || :
@postunexec rmdir "/var/cfengine/ppkeys" >/dev/null 2>&1 || :
@postunexec rmdir "/var/cfengine" >/dev/null 2>&1 || :
@dir /var/cfengine/inputs
@dir /var/cfengine/masterfiles
@dir /var/cfengine/modules
@dir /var/cfengine/outputs
@dir(root,wheel,700) /var/cfengine/ppkeys
@dir /var/cfengine

View file

@ -3,7 +3,7 @@
PORTNAME= cfengine
PORTVERSION= 3.8.2
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= sysutils
MASTER_SITES= https://s3.amazonaws.com/cfengine-package-repos/tarballs/

View file

@ -353,10 +353,9 @@ sbin/rpmvercmp
%%DOCSDIR%%/examples/win_registry.cf
%%DOCSDIR%%/examples/win_schedule.cf
%%DOCSDIR%%/examples/zenoss.cf
@postexec chown root:wheel "/var/cfengine/ppkeys" >/dev/null 2>&1 || :
@postexec chmod 700 "/var/cfengine/ppkeys" >/dev/null 2>&1 || :
@postunexec rmdir "/var/cfengine/inputs" >/dev/null 2>&1 || :
@postunexec rmdir "/var/cfengine/modules" >/dev/null 2>&1 || :
@postunexec rmdir "/var/cfengine/outputs" >/dev/null 2>&1 || :
@postunexec rmdir "/var/cfengine/ppkeys" >/dev/null 2>&1 || :
@postunexec rmdir "/var/cfengine" >/dev/null 2>&1 || :
@dir /var/cfengine/inputs
@dir /var/cfengine/masterfiles
@dir /var/cfengine/modules
@dir /var/cfengine/outputs
@dir(root,wheel,700) /var/cfengine/ppkeys
@dir /var/cfengine

View file

@ -3,7 +3,7 @@
PORTNAME= cfengine
PORTVERSION= 3.9.1
PORTREVISION= 2
PORTREVISION= 3
# XXX Remember to update files/patch-configure.am with any new version number.
CATEGORIES= sysutils
MASTER_SITES= https://s3.amazonaws.com/cfengine-package-repos/tarballs/

View file

@ -364,10 +364,9 @@ sbin/rpmvercmp
%%DOCSDIR%%/examples/win_registry.cf
%%DOCSDIR%%/examples/win_schedule.cf
%%DOCSDIR%%/examples/zenoss.cf
@postexec chown root:wheel "/var/cfengine/ppkeys" >/dev/null 2>&1 || :
@postexec chmod 700 "/var/cfengine/ppkeys" >/dev/null 2>&1 || :
@postunexec rmdir "/var/cfengine/inputs" >/dev/null 2>&1 || :
@postunexec rmdir "/var/cfengine/modules" >/dev/null 2>&1 || :
@postunexec rmdir "/var/cfengine/outputs" >/dev/null 2>&1 || :
@postunexec rmdir "/var/cfengine/ppkeys" >/dev/null 2>&1 || :
@postunexec rmdir "/var/cfengine" >/dev/null 2>&1 || :
@dir /var/cfengine/inputs
@dir /var/cfengine/masterfiles
@dir /var/cfengine/modules
@dir /var/cfengine/outputs
@dir(root,wheel,700) /var/cfengine/ppkeys
@dir /var/cfengine