I'm forwarding this excerpt from a thread on the slapt-get development
mailing list, mainly because we want to make sure that in any packages
we build for VL 6 and going forward, 0.0 or root.root is the owner of
all the files put into a package.
FWIW,
John
---------- Forwarded message ----------
From: Jason Woodward <woo...@ja...>
Date: Aug 26, 2006 12:36 AM
Subject: Re: [Slapt-get-devel] slapt-get and the bin group
To: rg3...@ar...
Cc: sla...@ja...
> I've detected slapt-get for -current still features the
> now-being-deprecated bin group in the executable files. I think it
> would be a good idea to start changing ownerships to 0:0, that will be
> the "right way" to do it for Slackware 11.0.
Makefile now uses the same Group ID of /usr/sbin on the system for
Slack 11 compatibility
(Thanks Ricardo Garcia).
--- slapt-get/Makefile 2006/07/31 15:11:27 1.162
+++ slapt-get/Makefile 2006/08/26 04:30:25 1.163
@@ -55,7 +55,7 @@ doinstall: libsinstall
strip --strip-unneeded $(PACKAGE)
if [ ! -d $(DESTDIR)$(SBINDIR) ]; then mkdir -p $(DESTDIR)$(SBINDIR);fi
install $(PACKAGE) $(DESTDIR)$(SBINDIR)
- -chown root:bin $(DESTDIR)$(SBINDIR)$(PACKAGE)
+ -chown $$(stat --format "%u:%g" /usr/sbin)
$(DESTDIR)$(SBINDIR)$(PACKAGE)
if [ ! -d $(DESTDIR)/etc/slapt-get ]; then mkdir -p
$(DESTDIR)/etc/slapt-get;fi
if [ -f $(DESTDIR)/etc/slapt-getrc ]; then mv
$(DESTDIR)/etc/slapt-getrc $(DESTDIR)$(RCDEST);fi
if [ ! -f $(DESTDIR)$(RCDEST) ]; then install --mode=0644 -b
$(RCSOURCE) $(DESTDIR)$(RCDEST);
else install --mode=0644 -b $(RCSOURCE) $(DESTDIR)$(RCDEST).new;fi
@@ -121,8 +121,8 @@ dopkg:
mkdir -p pkg/usr/man/uk/man8
for i in `ls po/ --ignore=slapt-get.pot --ignore=CVS |sed
's/.po//'` ;do mkdir -p
pkg$(PACKAGE_LOCALE_DIR)/$$i/LC_MESSAGES; msgfmt -o
pkg$(PACKAGE_LOCALE_DIR)/$$i/LC_MESSAGES/slapt-get.mo po/$$i.po; done
cp $(PACKAGE) ./pkg/$(SBINDIR)
- -chown root:bin ./pkg/$(SBINDIR)
- -chown root:bin ./pkg/$(SBINDIR)/$(PACKAGE)
+ -chown $$(stat --format "%u:%g" /usr/sbin) ./pkg/$(SBINDIR)
+ -chown $$(stat --format "%u:%g" /usr/sbin) ./pkg/$(SBINDIR)/$(PACKAGE)
strip ./pkg/$(SBINDIR)/$(PACKAGE)
echo "# See /usr/doc/$(PACKAGE)-$(VERSION)/example.slapt-getrc " >
./pkg/etc/slapt-get/slapt-getrc.new
echo "# for example source entries and configuration hints." >>
./pkg/etc/slapt-get/slapt-getrc.new
--
Jason Woodward
woo...@ja...
_______________________________________________
Slapt-get-devel mailing list
Sla...@so...
http://software.jaos.org/cgi-bin/mailman/listinfo/slapt-get-devel
|