From 2a7eb15f1ef7302f3b7085abde49234a68834d58 Mon Sep 17 00:00:00 2001 From: Alexander Zhirov Date: Sun, 24 Mar 2024 22:11:52 +0300 Subject: [PATCH] new prt-get port --- ports/p/prt-get/Pkgfile | 24 +++++++++++++++ ports/p/prt-get/prt-get.aliases | 4 +++ ports/p/prt-get/prt-get.conf | 52 +++++++++++++++++++++++++++++++++ 3 files changed, 80 insertions(+) create mode 100644 ports/p/prt-get/Pkgfile create mode 100644 ports/p/prt-get/prt-get.aliases create mode 100644 ports/p/prt-get/prt-get.conf diff --git a/ports/p/prt-get/Pkgfile b/ports/p/prt-get/Pkgfile new file mode 100644 index 0000000..43923cb --- /dev/null +++ b/ports/p/prt-get/Pkgfile @@ -0,0 +1,24 @@ +# Description: A utility to simplify ports searching/installing +# URL: https://crux.nu/gitweb/?p=tools/prt-get.git;a=summary +# Maintainer: Alexander Zhirov + +name=prt-get +version=5.19.6 +release=1 +source=( + http://crux.nu/files/prt-get-$version.tar.xz + prt-get.conf + prt-get.aliases +) + +build() { + cd ${name}-${version} + + ./configure --prefix=/usr + make + make DESTDIR=$PKG install + + install -m 644 $SRC/prt-get.{conf,aliases} $PKG/etc/ + install -d $PKG/var/lib/pkg + touch $PKG/var/lib/pkg/prt-get.locker +} diff --git a/ports/p/prt-get/prt-get.aliases b/ports/p/prt-get/prt-get.aliases new file mode 100644 index 0000000..3a30449 --- /dev/null +++ b/ports/p/prt-get/prt-get.aliases @@ -0,0 +1,4 @@ +jdk8-bin: openjdk8 +librsvg-compat: librsvg +mariadb: mysql +rust-bin: rust diff --git a/ports/p/prt-get/prt-get.conf b/ports/p/prt-get/prt-get.conf new file mode 100644 index 0000000..e75a8b6 --- /dev/null +++ b/ports/p/prt-get/prt-get.conf @@ -0,0 +1,52 @@ +### +### /etc/prt-get.conf: prt-get(8) configuration +### + +## configure directories prt-get will source ports from +## 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 multilib compat-32 collection +#prtdir /usr/ports/compat-32 + +## the following line enables the user maintained contrib collection +#prtdir /usr/ports/contrib + +## use mypackage from local directory +#prtdir /home/packages/build:mypackage + +## log options +## logfile variables: %p=path to port dir, +## %n=port name, %v=version, %r=release +#writelog enabled # (enabled|disabled) +#logmode overwrite # (append|overwrite) +#rmlog_on_success yes # (no|yes) +logfile /var/log/pkgbuild/%n.log + +## 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 yes # (no|yes) + +### EXPERT SECTION ### + +## alternative commands +#makecommand pkgmk +#addcommand pkgadd +#removecommand pkgrm +#runscriptcommand sh + +# End of file