void-packages/srcpkgs/rinse/patches/sbin.patch

33 lines
1.2 KiB
Diff

--- a/Makefile 2014-06-17 21:16:29.000000000 +0700
+++ b/Makefile 2015-10-19 11:45:52.398805700 +0600
@@ -52,15 +52,15 @@
install: fixupperms
mkdir -p ${PREFIX}/etc/bash_completion.d
mkdir -p ${PREFIX}/etc/rinse
- mkdir -p ${PREFIX}/usr/sbin
+ mkdir -p ${PREFIX}/usr/bin
mkdir -p ${PREFIX}/usr/lib/rinse
mkdir -p ${PREFIX}/usr/lib/rinse/common
cp -p ./scripts.common/* ${PREFIX}/usr/lib/rinse/common
chmod 755 ${PREFIX}/usr/lib/rinse/common/*.sh
mkdir -p ${PREFIX}/var/cache/rinse
- cp -p bin/rinse ${PREFIX}/usr/sbin/
- perl -pi -e "s/XXUNRELEASEDXX/$(VERSION)/" $(PREFIX)/usr/sbin/rinse*
- chmod 755 ${PREFIX}/usr/sbin/rinse*
+ cp -p bin/rinse ${PREFIX}/usr/bin/
+ perl -pi -e "s/XXUNRELEASEDXX/$(VERSION)/" $(PREFIX)/usr/bin/rinse*
+ chmod 755 ${PREFIX}/usr/bin/rinse*
cp -p etc/*.packages ${PREFIX}/etc/rinse
cp -p etc/*.conf ${PREFIX}/etc/rinse
for i in scripts/*/; do name=`basename $$i`; mkdir -p ${PREFIX}/usr/lib/rinse/$$name ; cp $$i/*.sh ${PREFIX}/usr/lib/rinse/$$name ; done
@@ -106,7 +106,7 @@
# Remove the software.
#
uninstall:
- rm -f ${PREFIX}/usr/sbin/rinse
+ rm -f ${PREFIX}/usr/bin/rinse
rm -f ${PREFIX}/etc/rinse/*.conf
rm -f ${PREFIX}/etc/rinse/*.packages
rm -rf ${PREFIX}/var/cache/rinse