On Fri, Aug 19, 2016 at 02:27:54PM +0100, Raf Czlonka wrote:
> Hi all,
> 
> Not sure which of the packages is "at fault" here but running
> 'sysclean -s' (the default), reports '/var/puppetlabs' as an obsolete
> directory.

sysclean reports the directory because the PLIST of
sysutils/ruby-puppet/4 doesn't mention it (but only files inside it).

Annotating /var/puppetlabs/ with @sample or @extra should be enough for
sysclean. I inlined a diff (untested).

As bonus, having proper annotated PLIST will make uninstall of
sysutils/ruby-puppet/4 more "clean" as /var/puppetlabs/ will be removed
if empty.

I hope I correctly explained the behaviour.
-- 
Sebastien Marie


Index: Makefile
===================================================================
RCS file: /cvs/ports/sysutils/ruby-puppet/4/Makefile,v
retrieving revision 1.10
diff -u -p -r1.10 Makefile
--- Makefile    11 Aug 2016 11:41:42 -0000      1.10
+++ Makefile    19 Aug 2016 17:45:44 -0000
@@ -3,6 +3,7 @@
 PORTROACH=             limit:^4
 
 VERSION=               4.5.3
+REVISION=              0
 
 RUN_DEPENDS+=          databases/ruby-hiera3,${MODRUBY_FLAVOR} \
                        devel/ruby-rgen,${MODRUBY_FLAVOR} \
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/sysutils/ruby-puppet/4/pkg/PLIST,v
retrieving revision 1.8
diff -u -p -r1.8 PLIST
--- pkg/PLIST   29 Jun 2016 16:14:44 -0000      1.8
+++ pkg/PLIST   19 Aug 2016 17:45:44 -0000
@@ -1449,6 +1449,7 @@ share/examples/ruby${MODRUBY_BINREV}-pup
 @sample /var/log/puppetlabs/puppet/
 @sample /var/run/puppetlabs/
 @mode 0755
+@sample /var/puppetlabs/
 @sample /var/puppetlabs/puppet/cache/lib/
 @sample /var/puppetlabs/puppet/modules/
 @sample /var/puppetlabs/puppet/cache/facts.d/

Reply via email to