summaryrefslogtreecommitdiff
path: root/prt-utils
diff options
context:
space:
mode:
authorSimone Rota <sip@crux.nu>2007-05-15 18:15:10 +0200
committerSimone Rota <sip@crux.nu>2007-05-15 18:53:07 +0200
commit3dc48b248cec38e1ec24d5d1be8050ae3be8e6f4 (patch)
tree70c5ae7476bc8d74e602dd35307c008926ec90b6 /prt-utils
parent4c05c0d9ad469a7cc2b771a350ed57ddabc06f53 (diff)
downloadopt-3dc48b248cec38e1ec24d5d1be8050ae3be8e6f4.tar.gz
opt-3dc48b248cec38e1ec24d5d1be8050ae3be8e6f4.tar.xz
prt-utils: added a couple of patches from git repo
Diffstat (limited to 'prt-utils')
-rw-r--r--prt-utils/.md5sum1
-rw-r--r--prt-utils/Pkgfile6
-rw-r--r--prt-utils/prt-utils.patch36
3 files changed, 41 insertions, 2 deletions
diff --git a/prt-utils/.md5sum b/prt-utils/.md5sum
index e8cac2ddf..6e6dd91ff 100644
--- a/prt-utils/.md5sum
+++ b/prt-utils/.md5sum
@@ -1 +1,2 @@
cea640356422381ddbd37fb8f931ed7c prt-utils-0.9.1.tar.gz
+959f1f3f1bb5bb7cfaf03f40d7b02ec3 prt-utils.patch
diff --git a/prt-utils/Pkgfile b/prt-utils/Pkgfile
index 64588564a..d1f2aba90 100644
--- a/prt-utils/Pkgfile
+++ b/prt-utils/Pkgfile
@@ -6,11 +6,13 @@
name=prt-utils
version=0.9.1
-release=1
-source=(http://crux.nu/files/tools/prt-utils/$name-$version.tar.gz)
+release=2
+source=(http://crux.nu/files/tools/prt-utils/$name-$version.tar.gz \
+ $name.patch)
build() {
cd $name-$version
+ patch < ../$name.patch
mkdir -p $PKG/usr/{man/man1,bin}
make DESTDIR=$PKG install
}
diff --git a/prt-utils/prt-utils.patch b/prt-utils/prt-utils.patch
new file mode 100644
index 000000000..3b41abd3c
--- /dev/null
+++ b/prt-utils/prt-utils.patch
@@ -0,0 +1,36 @@
+--- pkgfoster 2006-12-19 17:52:33.000000000 +0100
++++ /home/simone/crux/tools/prt-utils/pkgfoster 2007-05-15 18:05:12.464471239 +0200
+@@ -12,9 +12,22 @@
+ #
+
+ PRT_GET=prt-cache
+-PKGRM="sudo pkgrm"
+-BASE="autoconf automake bash bc bin86 bindutils binutils bison bzip2 coreutils cpio curl db dcron dhcpcd diffutils e2fsprogs ed expat file filesystem findutils flex gawk gcc gdbm gettext glibc grep groff grub gzip hdparm hotplug httpup iptables jfsutils kbd less libstdc++-compat libtool libusb lilo m4 make man man-pages mktemp module-init-tools nasm ncurses netkit-base netkit-ftp netkit-telnet net-tools nfs-utils openssh openssl patch pciutils perl pkg-config pkgutils portmap ports ppp procps prt-get psmisc rc rdate readline reiserfsprogs rpm2targz rsync sed sendmail shadow slocate strace sysfsutils sysklogd sysvinit tar tcp_wrappers tcsh time traceroute udev unzip usbutils util-linux vim wget which xfsprogs zip zlib"
+
++function PKGRM
++{
++ if [ $UID -ne 0 ]; then
++ SUDO="`which sudo 2>/dev/null`"
++ if [ -z "$SUDO" ]; then
++ su -c "pkgrm $1"
++ else
++ sudo pkgrm $1
++ fi
++ else
++ pkgrm $1
++ fi
++}
++
++BASE=$(ls $(awk '/^[[:space:]]*prtdir.*\/core/ {print $2}' /etc/prt-get.conf))
+ touch ~/.keepers
+
+ echo "Checking packages for orphans..."
+@@ -37,7 +50,7 @@
+ read ANSWER
+
+ if [ "$ANSWER" == "y" ] ; then
+- $PKGRM $PACKAGE
++ PKGRM $PACKAGE
+ RECHECK=1
+ else
+ echo $PACKAGE >> ~/.keepers

Generated by cgit