summaryrefslogtreecommitdiffstats
path: root/prt-get
diff options
context:
space:
mode:
authorLukc <lukc@upyum.com>2010-12-11 19:15:23 +0100
committerLukc <lukc@upyum.com>2010-12-11 19:15:35 +0100
commit6d908a38e05b9d4135c65d23114a5874215b5bb8 (patch)
treeb5e6da6d95b9a1235d82032b509b80483a886ff5 /prt-get
downloadbase-6d908a38e05b9d4135c65d23114a5874215b5bb8.tar.gz
base-6d908a38e05b9d4135c65d23114a5874215b5bb8.tar.bz2
base-6d908a38e05b9d4135c65d23114a5874215b5bb8.tar.xz
base-6d908a38e05b9d4135c65d23114a5874215b5bb8.zip
Engagement initial.
Diffstat (limited to 'prt-get')
-rw-r--r--prt-get/.footprint16
-rw-r--r--prt-get/.md5sum4
-rw-r--r--prt-get/Pkgfile20
-rw-r--r--prt-get/Pkgfile.old23
-rw-r--r--prt-get/README9
-rw-r--r--prt-get/prt-get.aliases9
-rw-r--r--prt-get/prt-get.conf48
-rw-r--r--prt-get/prt-get.diff13
8 files changed, 142 insertions, 0 deletions
diff --git a/prt-get/.footprint b/prt-get/.footprint
new file mode 100644
index 0000000..2c505fe
--- /dev/null
+++ b/prt-get/.footprint
@@ -0,0 +1,16 @@
+drwxr-xr-x root/root etc/
+-rw-r--r-- root/root etc/prt-get.conf
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+lrwxrwxrwx root/root usr/bin/prt-cache -> prt-get
+-rwxr-xr-x root/root usr/bin/prt-get
+drwxr-xr-x root/root usr/man/
+drwxr-xr-x root/root usr/man/man5/
+-rw-r--r-- root/root usr/man/man5/prt-get.conf.5.gz
+drwxr-xr-x root/root usr/man/man8/
+-rw-r--r-- root/root usr/man/man8/prt-cache.8.gz
+-rw-r--r-- root/root usr/man/man8/prt-get.8.gz
+drwxr-xr-x root/root var/
+drwxr-xr-x root/root var/lib/
+drwxr-xr-x root/root var/lib/pkg/
+-rw-r--r-- root/root var/lib/pkg/prt-get.aliases
diff --git a/prt-get/.md5sum b/prt-get/.md5sum
new file mode 100644
index 0000000..74cc9e0
--- /dev/null
+++ b/prt-get/.md5sum
@@ -0,0 +1,4 @@
+d0abf2a28823f9527c36832d5cbb8257 prt-get-5.18.tar.gz
+4f6b710e4d2b18c70cfe5e4a593938b7 prt-get.aliases
+d3aa7a53c12af8ef2bca5c85e0e4f928 prt-get.conf
+b4eeea27244550754219801bcf29c5e3 prt-get.diff
diff --git a/prt-get/Pkgfile b/prt-get/Pkgfile
new file mode 100644
index 0000000..5a1e95e
--- /dev/null
+++ b/prt-get/Pkgfile
@@ -0,0 +1,20 @@
+description="A utility to simplify ports searching/installing"
+packager=""
+maintainer="CRUX System Team, core-ports at crux dot nu"
+url="http://jw.smts.ch/files/crux/prt-get_quickstart.html"
+depends=()
+
+name=prt-get
+version=5.18
+release=2
+source=(http://jw.smts.ch/files/crux/prt-get-5.18.tar.gz prt-get.conf prt-get.aliases prt-get.diff)
+build ()
+{
+ cd ${name}-${version};
+ patch -p1 -i $SRC/$name.diff;
+ ./configure --prefix=/usr --mandir=/usr/man;
+ make;
+ make DESTDIR=$PKG install;
+ install -m 644 $SRC/prt-get.conf $PKG/etc/;
+ install -D -m 644 $SRC/prt-get.aliases $PKG/var/lib/pkg/prt-get.aliases
+}
diff --git a/prt-get/Pkgfile.old b/prt-get/Pkgfile.old
new file mode 100644
index 0000000..4ab1601
--- /dev/null
+++ b/prt-get/Pkgfile.old
@@ -0,0 +1,23 @@
+# Description: A utility to simplify ports searching/installing
+# URL: http://jw.smts.ch/files/crux/prt-get_quickstart.html
+# Maintainer: CRUX System Team, core-ports at crux dot nu
+
+name=prt-get
+version=5.18
+release=2
+source=(http://jw.smts.ch/files/crux/prt-get-$version.tar.gz
+ prt-get.conf prt-get.aliases prt-get.diff)
+
+build() {
+ cd ${name}-${version}
+
+ patch -p1 -i $SRC/$name.diff
+
+ ./configure --prefix=/usr \
+ --mandir=/usr/man
+ make
+ make DESTDIR=$PKG install
+
+ install -m 644 $SRC/prt-get.conf $PKG/etc/
+ install -D -m 644 $SRC/prt-get.aliases $PKG/var/lib/pkg/prt-get.aliases
+}
diff --git a/prt-get/README b/prt-get/README
new file mode 100644
index 0000000..04d81d0
--- /dev/null
+++ b/prt-get/README
@@ -0,0 +1,9 @@
+NOTE:
+
+Some people have reported problems when using optimizations larger than
+-O2; typical symptoms are "prt-get install X" saying that a package is
+installed while "prt-get update X" saying it's not, or "prt-get listinst"
+printing just nothing.
+
+If you experience strange effects, please try recompiling with
+ CXXFLAGS="-O2 -march=i686 -pipe"
diff --git a/prt-get/prt-get.aliases b/prt-get/prt-get.aliases
new file mode 100644
index 0000000..2e7af63
--- /dev/null
+++ b/prt-get/prt-get.aliases
@@ -0,0 +1,9 @@
+j2sdk: j2re
+j2sdk: jre
+jdk: jre
+openmotif: lesstif
+postfix: sendmail
+exim: sendmail
+qmail: sendmail
+masqmail: sendmail
+xorg: x11
diff --git a/prt-get/prt-get.conf b/prt-get/prt-get.conf
new file mode 100644
index 0000000..c18ecb4
--- /dev/null
+++ b/prt-get/prt-get.conf
@@ -0,0 +1,48 @@
+###
+### prt-get conf
+###
+
+# note: the order matters: the package found first is used
+prtdir /usr/ports/core
+prtdir /usr/ports/opt
+prtdir /usr/ports/xorg
+
+# the following line enables the user maintained contrib collection
+#prtdir /usr/ports/contrib
+
+### use mypackage form local directory
+# prtdir /home/packages/build:mypackage
+
+### log options:
+# writelog enabled # (enabled|disabled)
+# logmode overwrite # (append|overwrite)
+# rmlog_on_success yes # (no|yes)
+logfile /var/log/pkgbuild/%n.log
+ # path, %p=path to port dir, %n=port name
+ # %v=version, %r=release
+
+### use alternate cache file (default: /var/lib/pkg/prt-get.cache
+# cachefile /mnt/nfs/cache
+
+### print README information:
+# readme verbose # (verbose|compact|disabled)
+
+### prefer higher versions in sysup / diff
+# preferhigher no # (yes|no)
+
+### use regexp search
+# useregex no # (yes|no)
+
+### run pre- and post-installs scripts; yes is equivalent to the
+### --install-scripts option
+# runscripts no # (no|yes)
+
+
+### EXPERT SECTION ###
+
+### alternative commands
+# makecommand pkgmk
+# addcommand pkgadd
+# removecommand pkgrm
+# runscriptcommand sh
+
diff --git a/prt-get/prt-get.diff b/prt-get/prt-get.diff
new file mode 100644
index 0000000..f5412df
--- /dev/null
+++ b/prt-get/prt-get.diff
@@ -0,0 +1,13 @@
+diff --git a/src/installtransaction.cpp b/src/installtransaction.cpp
+index 849931a..70e5e37 100644
+--- a/src/installtransaction.cpp
++++ b/src/installtransaction.cpp
+@@ -658,5 +658,7 @@ string InstallTransaction::getPkgmkPackageDir()
+
+ string InstallTransaction::getPkgmkCompressionMode()
+ {
+- return getPkgmkSetting("PKGMK_COMPRESSION_MODE");
++ string value = getPkgmkSetting("PKGMK_COMPRESSION_MODE");
++
++ return value.size() ? value : "gz";
+ }