summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-05-12 20:19:30 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-05-12 20:19:30 -0400
commit9061cbd4eedbcef1cf33f4fbf49b1033d40aa4ac (patch)
tree318afd7503e06b1811f6875c16afeca4159cc2f3 /pcr
parentded3ff17a6b9867b2938b3393309f2c07a8c9725 (diff)
parent12c5c1055815eca712cb6dc36e258dce2599b72f (diff)
downloadabslibre-9061cbd4eedbcef1cf33f4fbf49b1033d40aa4ac.tar.gz
abslibre-9061cbd4eedbcef1cf33f4fbf49b1033d40aa4ac.tar.bz2
abslibre-9061cbd4eedbcef1cf33f4fbf49b1033d40aa4ac.zip
Merge branch 'master' of git://projects.parabola.nu/abslibre/abslibre
Diffstat (limited to 'pcr')
-rw-r--r--pcr/cpptest/PKGBUILD4
-rw-r--r--pcr/eigen3/PKGBUILD28
-rw-r--r--pcr/fpdns/PKGBUILD53
-rw-r--r--pcr/fsniper/PKGBUILD38
-rw-r--r--pcr/ganglia/PKGBUILD128
-rw-r--r--pcr/ganglia/ganglia.install35
-rw-r--r--pcr/ganglia/ganglia.sysusers1
-rw-r--r--pcr/ganglia/riemann.proto45
-rw-r--r--pcr/ganglia/runstatedir.patch7
-rw-r--r--pcr/ganglia/uid.patch33
-rw-r--r--pcr/pseint/PKGBUILD41
-rw-r--r--pcr/udisks2-openrc/PKGBUILD20
-rwxr-xr-xpcr/udisks2-openrc/udisks2.initd9
13 files changed, 297 insertions, 145 deletions
diff --git a/pcr/cpptest/PKGBUILD b/pcr/cpptest/PKGBUILD
index 9b1cc6ead..4ea8f5b27 100644
--- a/pcr/cpptest/PKGBUILD
+++ b/pcr/cpptest/PKGBUILD
@@ -7,10 +7,10 @@ pkgdesc="CppTest is a portable and powerful unit testing framework for handling
url="http://cpptest.sourceforge.net/"
depends=(gcc-libs)
makedepends=(pkgconfig)
-source=(http://downloads.sourceforge.net/sourceforge/cpptest/$pkgname-$pkgver.tar.gz)
+source=("http://downloads.sourceforge.net/sourceforge/cpptest/$pkgname-$pkgver.tar.gz")
md5sums=('79b9bff371d182f11a3235969f84ccb6')
arch=('i686' 'x86_64' 'mips64el')
-license="LGPL"
+license=('LGPL')
build() {
cd ${srcdir}/$pkgname-$pkgver
diff --git a/pcr/eigen3/PKGBUILD b/pcr/eigen3/PKGBUILD
deleted file mode 100644
index 8709d1edf..000000000
--- a/pcr/eigen3/PKGBUILD
+++ /dev/null
@@ -1,28 +0,0 @@
-# Contributor (Arch): Chirantan Ekbote <chirantan.ekbote at gmail.com>
-# Contributor (Arch): Kringel
-# This PKGBUILD is a modified version of eigen 2.x in extra/eigen
-# Maintainer: Parabola GNU / Linux-libre Aurélien Desbrières <aurelien@cwb.IO>
-
-pkgname=eigen3
-pkgver=3.2.0
-pkgrel=1
-pkgdesc="Eigen is a lightweight C++ template library for vector and matrix math, a.k.a. linear algebra."
-arch=('any')
-url='http://eigen.tuxfamily.org'
-license=('MPL2')
-makedepends=('cmake' 'pkgconfig')
-source=("${pkgname}-${pkgver}.tar.bz2::http://bitbucket.org/eigen/eigen/get/${pkgver}.tar.bz2")
-sha512sums=ab30077c845b09aa3f652e4695f1e256c7c7ff1c0f850e38cf9867ab9659ec6008fa646c2796796ca718b996764e7e3d2811a2c6a24abacbe50a2513fc670ca5
-
-build() {
- mkdir -p "$srcdir"/build
- cd "$srcdir"/build
- cmake ../eigen-eigen-* \
- -DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_INSTALL_PREFIX=/usr
-}
-
-package() {
- cd "$srcdir"/build
- make DESTDIR="$pkgdir" install
-}
diff --git a/pcr/fpdns/PKGBUILD b/pcr/fpdns/PKGBUILD
index aa965362e..b143e8ce6 100644
--- a/pcr/fpdns/PKGBUILD
+++ b/pcr/fpdns/PKGBUILD
@@ -1,27 +1,40 @@
+# Maintainer: David P. <megver83@parabola.nu>
# Contributor (Arch): Ermak <ermak@email.it>
-# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
-pkgname=fpdns
-pkgver=0.9.3
-pkgrel=1.1
-pkgdesc="Program that remotely determines DNS server versions"
-url="http://code.google.com/p/fpdns/"
-depends=('')
-license=('BSD')
+# Contributor: Omar Vega Ramos <ovruni@gnu.org.pe>
+
+pkgname='fpdns'
+pkgver='20130404'
+pkgrel=8
+epoch=1
+pkgdesc='Program that remotely determines DNS server versions.'
+groups=('blackarch' 'blackarch-fingerprint')
+url='https://github.com/kirei/fpdns'
+depends=('perl')
+license=('BSD3')
options=('!emptydirs')
-arch=('i686' 'x86_64')
-source=('http://fpdns.googlecode.com/files/Net-DNS-Fingerprint-0.9.3.tar.gz')
-md5sums=('16f1fbc9e5c8b935a0a48a509dc58899')
+arch=('any')
+source=("https://github.com/kirei/fpdns/archive/${pkgver}.tar.gz")
+sha1sums=('3c3b33df1861a1a9901601d6c2252b2427ba8763')
build() {
- cd ${srcdir}/Net-DNS-Fingerprint-0.9.3
- eval `perl -V:archname`
+ cd "$srcdir/fpdns-$pkgver"
+
+ eval $(perl -V:archname)
+
/usr/bin/perl Makefile.PL \
- INSTALLARCHLIB=/usr/lib/perl5/current/${archname} \
- INSTALLSITELIB=/usr/lib/perl5/site_perl/current \
- INSTALLSITEARCH=/usr/lib/perl5/site_perl/current/${archname}
- /usr/bin/make || return 1
- /usr/bin/make DESTDIR=${pkgdir} install
- /usr/bin/find ${pkgdir} -name '.packlist' -delete
- /usr/bin/find ${pkgdir} -name '*.pod' -delete
+
+ INSTALLARCHLIB=/usr/lib/perl5/current/$archname \
+ INSTALLSITELIB=/usr/lib/perl5/site_perl/current \
+ INSTALLSITEARCH=/usr/lib/perl5/site_perl/current/$archname
+
+ /usr/bin/make
}
+package() {
+ cd "$srcdir/fpdns-$pkgver"
+
+ install -Dm755 apps/fpdns "$pkgdir/usr/bin/fpdns"
+ install -Dm444 blib/lib/Net/DNS/Fingerprint.pm \
+ "$pkgdir/usr/lib/perl5/site_perl/Net/DNS/Fingerprint.pm"
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/LICENSE"
+}
diff --git a/pcr/fsniper/PKGBUILD b/pcr/fsniper/PKGBUILD
index 32ba4d2a7..49d04f200 100644
--- a/pcr/fsniper/PKGBUILD
+++ b/pcr/fsniper/PKGBUILD
@@ -1,32 +1,40 @@
-# Initial Contributor (Arch): andrewy
-# Actual Contributor (Arch): Luca Cesari <luca.cesari@bewq.org>
+# Maintainer: David P. <megver83@parabola.nu>
+# Contributor: Javier Tiá <javier dot tia at gmail dot com>
+# Contributor: András Wacha <wacha dot andras at ttk dot mta dot hu>
-arch=(i686 x86_64)
pkgname=fsniper
pkgver=1.3.1
-pkgrel=2
-pkgdesc="Daemon to run scripts based on changes in files monitored by inotify"
-url="http://projects.l3ib.org/fsniper/"
-license="GPL3"
+pkgrel=3
+pkgdesc='Daemon to run scripts based on changes in files monitored by inotify'
+url='http://projects.l3ib.org/fsniper/'
+license=('GPL3')
depends=('pcre' 'file')
-source=(http://projects.l3ib.org/fsniper/files/$pkgname-$pkgver.tar.gz)
-md5sums=('62f30bb4b00f9499499d83a30281f10f')
+makedepends=('autoconf' 'automake' 'libtool' 'gcc')
+source=("http://projects.l3ib.org/fsniper/files/${pkgname}-${pkgver}.tar.gz"
+ "wait3_argument.patch")
+sha256sums=('e65a34221fc05eb7ececcd2fb783e3418de032f89082e09be3a8f75f6b056e6b'
+ '60e8390538728b463845c595cb035529fbaaa311a54b6a12eaee2c53688de55d')
+arch=('armv7h' 'i686' 'x86_64')
+
+prepare() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ patch -p1 <${srcdir}/wait3_argument.patch
+}
build() {
- cd ${srcdir}/$pkgname-$pkgver
+ cd ${srcdir}/${pkgname}-${pkgver}
./configure --prefix=/usr
- make
+ make || return 1
}
package() {
- cd ${srcdir}/$pkgname-$pkgver
+ cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
- install -m644 -D ${srcdir}/$pkgname-$pkgver/README \
+ install -m644 -D ${srcdir}/${pkgname}-${pkgver}/README \
${pkgdir}/usr/share/${pkgname}/README
- install -m644 -D ${srcdir}/$pkgname-$pkgver/example.conf \
+ install -m644 -D ${srcdir}/${pkgname}-${pkgver}/example.conf \
${pkgdir}/usr/share/${pkgname}/example.conf
-
}
diff --git a/pcr/ganglia/PKGBUILD b/pcr/ganglia/PKGBUILD
index 94e32a211..d55265068 100644
--- a/pcr/ganglia/PKGBUILD
+++ b/pcr/ganglia/PKGBUILD
@@ -1,78 +1,78 @@
-# Maintainer: Márcio Silva <coadde@parabola.nu>
+# Maintainer: David P. <megver83@parabola.nu>
+# Contributor: Tyler Langlois <ty |at| tjll |dot| net>
pkgname=ganglia
-pkgver=3.6.0
-pkgrel=4
-pkgdesc='Scalable distributed monitoring system for high-performance computing systems such as clusters and Grids.'
-arch=(
- i686
- x86_64
- mips64el
-)
-url=http://$pkgname.sourceforge.net/
-license=BSD
-depends=(
- apr
- confuse
- #php-embed
- python2
- rrdtool
-)
-install=$pkgname.install
-options=(!libtool)
-optdepends="$pkgname-web: Web frontend"
-backup=(
- etc/ganglia/gmond.conf
- etc/ganglia/gmetad.conf
-)
-source=(
- http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
- gmetad.service.in
- gmond.service.in
-)
-sha512sums=(
- 2a05d37787f1440c0c4aa91cdf0f4f4cb39c840b3b0fdcd6fe58cfb5892a75f81d36f6191c83c17558c37154298268df74fa255d2c940a8b84a7bf3ddb102394
- a42b7dcb7dd81961cc9fef114f8c4c352375ed931dc2ae77b1139c6fde7cbd6544fcb5fe286ff6066ef37696821dc9f6fcab7c6b14d3ebaa59e895219cd89836
- c362a383cbbaf5540b5d698f664534bd0da73bcc5ee4336c468844ed17706e05450f35e4f6cf969f1d2495c462883873b30e4575b9ee8ded74ab475afda608bb
-)
+pkgver=3.7.2
+pkgrel=3
+pkgdesc="A scalable distributed monitoring system for high-performance computing systems such as clusters and Grids."
+arch=('i686' 'x86_64' 'armv7h')
+url="http://${pkgname}.sourceforge.net/"
+license=('BSD')
+depends=('apr' 'confuse' 'protobuf-c' 'python2' 'rrdtool')
+options=('!libtool')
+optdepends=('ganglia-web: Web frontend')
+install='ganglia.install'
+backup=('etc/ganglia/gmond.conf'
+ 'etc/ganglia/gmetad.conf')
+source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
+ 'riemann.proto::https://raw.githubusercontent.com/aphyr/riemann-java-client/2.5.0/src/main/proto/riemann/proto.proto'
+ 'ganglia.install'
+ 'ganglia.sysusers'
+ 'uid.patch'
+ 'runstatedir.patch')
+sha256sums=('042dbcaf580a661b55ae4d9f9b3566230b2232169a0898e91a797a4c61888409'
+ '880a28fa0ed5b485bce58109fa694eca458693d69b7c297cdd77a1340f476c00'
+ '79df856f3b0623e736ea9c1f5c36c321769d6f161c85faf31fab3d7b872d6725'
+ '34506cdaab1a6250c9a0d6d9fb9c6a0a0dfe1187bcb0a5d6ca71491007116d05'
+ 'dc2cdffaf0cbedbbac2e654843803423f93da494aaeecda8a185ad3badea8e21'
+ 'e3abe8017bf3d974e2b4ba5e285e7a91e94dbb69ec6fdf128675a8868e28c8a4')
prepare() {
- cd $srcdir/$pkgname-$pkgver
+ cd "$srcdir"
+ protoc-c --c_out="$pkgname-$pkgver/gmetad" riemann.proto
- #sed -i 's|sapi/embed/php_embed.h|php/sapi/embed/php_embed.h|' configure
-
- sed -i 's|nobody|ganglia|' gmetad/gmetad.conf.in
-
- # FIXME: Hopefully this will soon no longer be required?
- msg2 'Copying systemd units into source as workaround for bug'
- cp $srcdir/gmetad.service.in gmetad/gmetad.service.in
- cp $srcdir/gmond.service.in gmond/gmond.service.in
+ cd "$pkgname-$pkgver"
+ for patch in $srcdir/*.patch; do
+ msg2 "Applying $(basename $patch)"
+ patch -Np1 -i $patch
+ done
}
build() {
- cd $srcdir/$pkgname-$pkgver
- setarch $CARCH ./configure --prefix=/usr\
- --enable-gexec\
- --enable-perl\
- --enable-setuid=ganglia\
- --enable-status\
- --disable-static\
- --libdir=/usr/lib\
- --with-gmetad\
- --with-python=/usr/bin/python2\
- --sbindir=/usr/bin\
- --sysconfdir=/etc/ganglia
-# --enable-php\
-# --enable-setgid=ganglia\
- setarch $CARCH make
+ cd "$srcdir/$pkgname-$pkgver"
+
+ ./configure --prefix=/usr \
+ --sbindir=/usr/bin \
+ --libdir=/usr/lib \
+ --sysconfdir=/etc/ganglia \
+ --enable-gexec \
+ --enable-status \
+ --with-gmetad \
+ --with-riemann \
+ --with-python=/usr/bin/python2 \
+ --with-systemdsystemunitdir=/usr/lib/systemd/system
+
+ make
}
package() {
- cd $srcdir/$pkgname-$pkgver
- setarch $CARCH make DESTDIR=$pkgdir install
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir" install
+
+ # Install Python modules
+ mkdir -p "$pkgdir/usr/lib/$pkgname/python_modules"
+ find "gmond/python_modules" -name *.py \
+ -exec cp \{\} "$pkgdir/usr/lib/$pkgname/python_modules/" \;
+ cp -R "gmond/python_modules/conf.d" "$pkgdir/etc/$pkgname/"
+
+ msg2 "Generating default gmond.conf"
+ ./gmond/gmond --default_config > "$pkgdir/etc/$pkgname/gmond.conf"
- mkdir $pkgdir/usr/lib/$pkgname/python_modules
+ install -Dm755 -d "$pkgdir/var/lib/ganglia/rrds"
+ install -Dm644 COPYING "$pkgdir/usr/share/licenses/${pkgname}/COPYING"
- msg2 'Generating default gmond.conf'
- ./gmond/gmond --default_config > $pkgdir/etc/ganglia/gmond.conf
+ # See man page for sysusers.d(5)
+ install -Dm644 "$srcdir"/ganglia.sysusers \
+ "$pkgdir"/usr/lib/sysusers.d/ganglia.conf
}
diff --git a/pcr/ganglia/ganglia.install b/pcr/ganglia/ganglia.install
index 6a196af1f..20620db24 100644
--- a/pcr/ganglia/ganglia.install
+++ b/pcr/ganglia/ganglia.install
@@ -1,24 +1,27 @@
+# Arg 1: the new package version
post_install() {
- if [ "`vercmp $2 3.4.0`" -lt 0 ]; then
- echo 'WARNING: The ganglia package has been split. If you use the' \
- "web frontend, you'll need to install the ganglia-web package as well."
- fi
- id ganglia >& /dev/null
- if [ $? -ne 0 ]; then
- echo 'Adding ganglia system group and user...'
- groupadd -r ganglia && useradd -r -d /var/lib/ganglia -g ganglia -s /bin/false ganglia
- # Lock the account to prevent logging in
- passwd -l ganglia &> /dev/null
- fi
- install -d -o ganglia -g ganglia /var/lib/ganglia && install -d -o ganglia -g ganglia /var/lib/ganglia/rrds
+
+ # Create user and group
+ systemd-sysusers ganglia.conf
+
+ # Required at this stage to ensure ganglia user & group are available
+ install -d -o ganglia -g ganglia /var/lib/ganglia{,/rrds}
}
+# Arg 1: the new package version
+# Arg 2: the old package version
post_upgrade() {
- post_install
+ if [ "`vercmp $2 3.4.0`" -lt 0 ]; then
+ echo "WARNING: The ganglia package has been split. If you use the" \
+ "web frontend, you'll need to install the ganglia-web package as well."
+ fi
}
+# Arg 1: the old package version
post_remove() {
- echo 'Removing ganglia system group and user...'
- userdel ganglia
- echo 'NOTE: Please remove /var/lib/ganglia manually if it is no longer required.'
+ echo "This package does not automatically remove the ganglia data "
+ echo "directory (default /var/lib/ganglia) or ganglia user. Please do so "
+ echo "manually if they are no longer required."
}
+
+# vim:set ts=2 sw=2 et:
diff --git a/pcr/ganglia/ganglia.sysusers b/pcr/ganglia/ganglia.sysusers
new file mode 100644
index 000000000..1041974e6
--- /dev/null
+++ b/pcr/ganglia/ganglia.sysusers
@@ -0,0 +1 @@
+u ganglia - - /var/lib/ganglia
diff --git a/pcr/ganglia/riemann.proto b/pcr/ganglia/riemann.proto
new file mode 100644
index 000000000..3e946a3a0
--- /dev/null
+++ b/pcr/ganglia/riemann.proto
@@ -0,0 +1,45 @@
+option java_package = "com.aphyr.riemann";
+option java_outer_classname = "Proto";
+
+message State {
+ optional int64 time = 1;
+ optional string state = 2;
+ optional string service = 3;
+ optional string host = 4;
+ optional string description = 5;
+ optional bool once = 6;
+ repeated string tags = 7;
+ optional float ttl = 8;
+}
+
+message Event {
+ optional int64 time = 1;
+ optional string state = 2;
+ optional string service = 3;
+ optional string host = 4;
+ optional string description = 5;
+ repeated string tags = 7;
+ optional float ttl = 8;
+ repeated Attribute attributes = 9;
+
+ optional sint64 metric_sint64 = 13;
+ optional double metric_d = 14;
+ optional float metric_f = 15;
+}
+
+message Query {
+ optional string string = 1;
+}
+
+message Msg {
+ optional bool ok = 2;
+ optional string error = 3;
+ repeated State states = 4;
+ optional Query query = 5;
+ repeated Event events = 6;
+}
+
+message Attribute {
+ required string key = 1;
+ optional string value = 2;
+}
diff --git a/pcr/ganglia/runstatedir.patch b/pcr/ganglia/runstatedir.patch
new file mode 100644
index 000000000..f823e3788
--- /dev/null
+++ b/pcr/ganglia/runstatedir.patch
@@ -0,0 +1,7 @@
+--- a/scripts/fixconfig.in
++++ b/scripts/fixconfig.in
+@@ -27,3 +27,3 @@ sysconfdir="@sysconfdir@"
+ includedir="@includedir@"
+-runstatedir="@localstatedir@/run" # @runstatedir@ if autoconf >= 2.70
++runstatedir="/run" # @runstatedir@ if autoconf >= 2.70
+ if [ -d "@sysconfdir@/sysconfig" ]
diff --git a/pcr/ganglia/uid.patch b/pcr/ganglia/uid.patch
new file mode 100644
index 000000000..165549033
--- /dev/null
+++ b/pcr/ganglia/uid.patch
@@ -0,0 +1,33 @@
+--- a/configure
++++ b/configure
+@@ -1588,7 +1588,7 @@ Optional Features:
+
+ --enable-debug turn on debugging output and compile options
+ --enable-gexec turn on gexec support (platform-specific)
+- --enable-setuid=USER turn on setuid support (default setuid=nobody)
++ --enable-setuid=USER turn on setuid support (default setuid=ganglia)
+ --enable-setgid=GROUP turn on setgid support (default setgid=no)
+ --enable-pedantic turn on pedantic mode during compile
+ --enable-memcheck turn on memory checking during compile
+@@ -11152,7 +11152,7 @@ $as_echo "#define SUPPORT_GEXEC 0" >>confdefs.h
+ fi
+
+
+-setuid_user=nobody
++setuid_user=ganglia
+ # Check whether --enable-setuid was given.
+ if test "${enable_setuid+set}" = set; then :
+ enableval=$enable_setuid; if test x"$enableval" != xno; then no_setuid=0; setuid_user=$enableval ; fi
+--- a/gmetad/gmetad.conf.in
++++ b/gmetad/gmetad.conf.in
+@@ -99,8 +99,8 @@ data_source "my cluster" localhost
+ #-------------------------------------------------------------------------------
+ # User gmetad will setuid to (defaults to "nobody")
+ # default: "nobody"
+-# setuid_username "nobody"
+-#
++setuid_username "ganglia"
++
+ #-------------------------------------------------------------------------------
+ # Umask to apply to created rrd files and grid directory structure
+ # default: 0 (files are public)
diff --git a/pcr/pseint/PKGBUILD b/pcr/pseint/PKGBUILD
new file mode 100644
index 000000000..159a9c934
--- /dev/null
+++ b/pcr/pseint/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: David P. <megver83@parabola.nu>
+# Autor: Pablo Novara - Zaskar
+# Contributor: mncarbone <mncarbone@gmail.com>
+
+pkgname=pseint
+pkgver=20170313
+pkgrel=1
+pkgdesc="A tool for learning programming basis with a simple spanish pseudocode"
+arch=('i686' 'x86_64')
+url="http://pseint.sourceforge.net"
+license=('GPL')
+depends=('libpng12')
+url='http://ufpr.dl.sourceforge.net/project'
+source_x86_64=(http://prdownloads.sourceforge.net/pseint/pseint-l64-${pkgver}.tgz)
+source_i686=(http://prdownloads.sourceforge.net/pseint/pseint-l32-${pkgver}.tgz)
+md5sums_i686=('599fffec2bee56dd456ac2dbbf7241c6')
+md5sums_x86_64=('fd7725ea18034261aa2df2dc15dd8b7c')
+
+package() {
+ mkdir -p "${pkgdir}/opt/${pkgname}"
+ cp -rv "${srcdir}/${pkgname}/"* "${pkgdir}/opt/${pkgname}"
+ mkdir -p "${pkgdir}/usr/share/applications/"
+ desktopfile="${pkgdir}/opt/${pkgname}/${pkgname}.desktop"
+ touch $desktopfile
+ echo "[Desktop Entry]" >> $desktopfile
+ echo "Type=Application" >> $desktopfile
+ echo "Name=PSeInt" >> $desktopfile
+ echo "Comment=${pkgdesc}" >> $desktopfile
+ echo "Comment[es]=Una herramienta para aprender las bases de la programación mediante pseudocodigo en español" >> $desktopfile
+ echo "Exec=${pkgname}" >> $desktopfile
+ echo "Icon=/opt/${pkgname}/imgs/icon.svg" >> $desktopfile
+ echo "Terminal=false" >> $desktopfile
+ echo "Categories=Development;IDE;" >> $desktopfile
+ mkdir -p "${pkgdir}/usr/share/applications/"
+ cp $desktopfile "${pkgdir}/usr/share/applications/"
+ mkdir -p "${pkgdir}/usr/bin/"
+ touch "${pkgdir}/usr/bin/${pkgname}"
+ echo "#!/usr/bin/env sh" >> "${pkgdir}/usr/bin/${pkgname}"
+ echo "/opt/${pkgname}/wxPSeInt" >> "${pkgdir}/usr/bin/${pkgname}"
+ chmod +x "${pkgdir}/usr/bin/${pkgname}"
+}
diff --git a/pcr/udisks2-openrc/PKGBUILD b/pcr/udisks2-openrc/PKGBUILD
new file mode 100644
index 000000000..d9861b178
--- /dev/null
+++ b/pcr/udisks2-openrc/PKGBUILD
@@ -0,0 +1,20 @@
+# Maintainer: David P. <megver83@parabola.nu>
+
+pkgname=udisks2-openrc
+pkgver=20170511
+pkgrel=1
+pkgdesc="OpenRC udisks2 init script"
+arch=(any)
+url="https://www.parabola.nu"
+license=('GPL2')
+depends=('udisks2' 'openrc')
+source=("udisks2.initd")
+md5sums=('9add7dad78d93cbe2fcf4582cc7ce069')
+
+pkgver() {
+ date +%Y%m%d
+}
+
+package() {
+ install -Dm755 udisks2.initd $pkgdir/etc/init.d/udisks2
+}
diff --git a/pcr/udisks2-openrc/udisks2.initd b/pcr/udisks2-openrc/udisks2.initd
new file mode 100755
index 000000000..e597d2bc2
--- /dev/null
+++ b/pcr/udisks2-openrc/udisks2.initd
@@ -0,0 +1,9 @@
+#!/sbin/openrc-run
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+#
+# This is an unofficial udisks2 OpenRC init script made by Megver83
+
+description="Disk Manager"
+command=/usr/lib/udisks2/udisksd
+pidfile=/run/udisks2.pid