[Slapt-get-devel] slapt-get and the bin group

Jason Woodward woodwardj at jaos.org
Sat Aug 26 00:36:55 EDT 2006


> 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
woodwardj at jaos.org




More information about the Slapt-get-devel mailing list