# HG changeset patch # User Robert McIntyre # Date 1357830754 0 # Node ID d956ace7380ef711069c5b3d16bc23caece8ea14 # Parent eab9ad213a69412156bc9811441e8fd8a890ebda creating pkg-examine. diff -r eab9ad213a69 -r d956ace7380e src/pkg-examine.pl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pkg-examine.pl Thu Jan 10 15:12:34 2013 +0000 @@ -0,0 +1,28 @@ +#!/usr/bin/perl + + +if ($ARGV[0] eq "--help"){ + print <<"HERE"; + +pkg-examine -- print package contents. + +Written by Robert McIntyre. This software is free +software and is released to the public domain. + +HERE +exit 0; +} + + + +$" = " "; +$pkg_name = $ARGV[0]; + +`id -g $pkg_name 2>/dev/null`; +if ($?){ + print "No group named $pkg_name."; + exit 0;} + +@files = split(/\0/, `find /usr /opt /etc -group $pkg_name -print0`); + +print "@files\n"; diff -r eab9ad213a69 -r d956ace7380e src/pkg.pl --- a/src/pkg.pl Thu Jan 10 12:49:52 2013 +0000 +++ b/src/pkg.pl Thu Jan 10 15:12:34 2013 +0000 @@ -84,7 +84,7 @@ "/pkg/hg-committer/.profile", "$pkg_home/.profile"); @pkg_copy_hg_wrapper_cmd = - ("install", "-g", "hg-wheel", "-o", "hg-committer", + ("install", "-g", "root", "-o", "root", "-m", "6111", "/pkg/hg-committer/hg-wrapper", "$pkg_home/.hg-wrapper"); @pkg_copy_save_acls_cmd = diff -r eab9ad213a69 -r d956ace7380e src/system-init.pl --- a/src/system-init.pl Thu Jan 10 12:49:52 2013 +0000 +++ b/src/system-init.pl Thu Jan 10 15:12:34 2013 +0000 @@ -121,18 +121,19 @@ execute("useradd -c hg-committer -d /pkg/hg-committer -g hg-committer -s /bin/bash hg-committer"); } -execute("chown -Rv hg-committer:hg-wheel /.hg"); +execute("chown -Rv root:root /.hg"); $pwd = getcwd; execute("gpasswd --add hg-committer hg-wheel"); execute("gpasswd --add hg-committer users"); +execute("gpasswd --add hg-committer install"); execute("ln -sf $pwd/profile /pkg/hg-committer/.profile"); execute("ln -sf $pwd/hg-wrapper /pkg/hg-committer/"); execute("ln -sf $pwd/save-acls /pkg/hg-committer/"); execute("ln -sf `which hg` /pkg/hg-committer/"); -execute("install -o hg-committer -g hg-wheel -m 660 $pwd/hgignore /.hgignore"); -execute("install -o hg-committer -g hg-wheel -m 660 $pwd/hgrc /.hg/"); +execute("install -o root -g root -m 660 $pwd/hgignore /.hgignore"); +execute("install -o root -g root -m 660 $pwd/hgrc /.hg/");