New package: rinse-3.0.2.
This commit is contained in:
parent
b026ae7b43
commit
d34ad7264e
|
@ -0,0 +1,67 @@
|
|||
This fixes the notab tests by converting them to spaces
|
||||
|
||||
--- scripts/opensuse-11.1/post-install.sh
|
||||
+++ scripts/opensuse-11.1/post-install.sh
|
||||
@@ -42,8 +42,8 @@ gpgcheck=1
|
||||
EOF
|
||||
|
||||
if [ $ARCH = "i386" ] ; then
|
||||
- echo " Setting architecture to i686"
|
||||
- sed -i 's/\(# \)\?arch = .*/arch = i686/' ${prefix}/etc/zypp/zypp.conf
|
||||
+ echo " Setting architecture to i686"
|
||||
+ sed -i 's/\(# \)\?arch = .*/arch = i686/' ${prefix}/etc/zypp/zypp.conf
|
||||
fi
|
||||
|
||||
|
||||
--- scripts/opensuse-11.2/post-install.sh
|
||||
+++ scripts/opensuse-11.2/post-install.sh
|
||||
@@ -60,8 +60,8 @@ gpgcheck=1
|
||||
EOF
|
||||
|
||||
if [ $ARCH = "i386" ] ; then
|
||||
- echo " Setting architecture to i686"
|
||||
- sed -i 's/\(# \)\?arch = .*/arch = i686/' ${prefix}/etc/zypp/zypp.conf
|
||||
+ echo " Setting architecture to i686"
|
||||
+ sed -i 's/\(# \)\?arch = .*/arch = i686/' ${prefix}/etc/zypp/zypp.conf
|
||||
fi
|
||||
|
||||
|
||||
--- scripts/opensuse-11.3/post-install.sh
|
||||
+++ scripts/opensuse-11.3/post-install.sh
|
||||
@@ -39,8 +39,8 @@ gpgcheck=1
|
||||
EOF
|
||||
|
||||
if [ $ARCH = "i386" ] ; then
|
||||
- echo " Setting architecture to i686"
|
||||
- sed -i 's/\(# \)\?arch = .*/arch = i686/' ${prefix}/etc/zypp/zypp.conf
|
||||
+ echo " Setting architecture to i686"
|
||||
+ sed -i 's/\(# \)\?arch = .*/arch = i686/' ${prefix}/etc/zypp/zypp.conf
|
||||
fi
|
||||
|
||||
|
||||
--- scripts/opensuse-12.3/post-install.sh
|
||||
+++ scripts/opensuse-12.3/post-install.sh
|
||||
@@ -38,8 +38,8 @@ gpgcheck=1
|
||||
EOF
|
||||
|
||||
if [ $ARCH = "i386" ] ; then
|
||||
- echo " Setting architecture to i686"
|
||||
- sed -i 's/\(# \)\?arch = .*/arch = i686/' ${prefix}/etc/zypp/zypp.conf
|
||||
+ echo " Setting architecture to i686"
|
||||
+ sed -i 's/\(# \)\?arch = .*/arch = i686/' ${prefix}/etc/zypp/zypp.conf
|
||||
fi
|
||||
|
||||
|
||||
--- scripts/opensuse-13.1/post-install.sh
|
||||
+++ scripts/opensuse-13.1/post-install.sh
|
||||
@@ -38,8 +38,8 @@ gpgcheck=1
|
||||
EOF
|
||||
|
||||
if [ $ARCH = "i386" ] ; then
|
||||
- echo " Setting architecture to i686"
|
||||
- sed -i 's/\(# \)\?arch = .*/arch = i686/' ${prefix}/etc/zypp/zypp.conf
|
||||
+ echo " Setting architecture to i686"
|
||||
+ sed -i 's/\(# \)\?arch = .*/arch = i686/' ${prefix}/etc/zypp/zypp.conf
|
||||
fi
|
||||
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
--- Makefile 2014-06-17 21:16:29.000000000 +0700
|
||||
+++ 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
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
# Template file for 'rinse'
|
||||
pkgname=rinse
|
||||
version=3.0.2
|
||||
revision=1
|
||||
wrksrc="$pkgname"
|
||||
hostmakedepends="perl dpkg"
|
||||
makedepends="perl"
|
||||
depends="rpm wget perl-LWP"
|
||||
checkdepends="${depends} perl-Test-Pod"
|
||||
short_desc="Bootstrap a rpm based distribution like debootstrap"
|
||||
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
|
||||
license="GPL-3"
|
||||
conf_files="/etc/rinse/rinse.conf"
|
||||
homepage="http://collab-maint.alioth.debian.org/rinse/"
|
||||
distfiles="http://collab-maint.alioth.debian.org/rinse/download/rinse_${version}.tar.gz"
|
||||
checksum=42f7cc074e84b8c99c290a2284c9de285998c100e8a77481bf14b6cd76608710
|
||||
|
||||
pre_install() {
|
||||
sed -i 's|pod2man.*$|pod2man --release=3.0.2 --official --section=8 ./bin/rinse ./bin/rinse.8|' Makefile
|
||||
}
|
||||
|
||||
do_check() {
|
||||
make test
|
||||
}
|
||||
|
||||
do_install() {
|
||||
make PREFIX="${DESTDIR}" sbindir="${DESTDIR}"/bin install
|
||||
}
|
Loading…
Reference in New Issue