summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
Diffstat (limited to 'pcr')
-rw-r--r--pcr/openrc-devel/PKGBUILD43
-rw-r--r--pcr/openrc-devel/distcc.install16
2 files changed, 46 insertions, 13 deletions
diff --git a/pcr/openrc-devel/PKGBUILD b/pcr/openrc-devel/PKGBUILD
index 3fb8e10b6..25700a919 100644
--- a/pcr/openrc-devel/PKGBUILD
+++ b/pcr/openrc-devel/PKGBUILD
@@ -1,15 +1,16 @@
# Maintainer (Arch): artoo <artoo@manjaro.org>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
-_gentoo_uri="https://raw.githubusercontent.com/gentoo/gentoo/master"
+_url="https://raw.githubusercontent.com/gentoo/gentoo/master"
pkgbase=openrc-devel
pkgname=('git-openrc'
'mysql-openrc'
'postgresql-openrc'
- 'subversion-openrc')
+ 'subversion-openrc'
+ 'distcc-openrc')
# 'php-fpm-openrc')
-pkgver=20151228
+pkgver=20160222
pkgrel=1
pkgdesc="OpenRC init scripts"
arch=('any')
@@ -17,15 +18,17 @@ url="https://github.com/manjaro/packages-openrc"
license=('GPL2')
groups=('openrc-devel')
conflicts=('systemd-sysvcompat')
-source=("git-daemon.confd::${_gentoo_uri}/dev-vcs/git/files/git-daemon.confd"
- "git-daemon.initd::${_gentoo_uri}/dev-vcs/git/files/git-daemon-r1.initd"
- "mysql.confd::${_gentoo_uri}/dev-db/mysql-init-scripts/files/conf.d-2.0"
- "mysql.initd::${_gentoo_uri}/dev-db/mysql-init-scripts/files/init.d-2.0"
- "svn.confd::${_gentoo_uri}/dev-vcs/subversion/files/svnserve.confd"
- "svn.initd::${_gentoo_uri}/dev-vcs/subversion/files/svnserve.initd3"
- "postgresql.confd::${_gentoo_uri}/dev-db/postgresql/files/postgresql.confd"
- "postgresql.initd::${_gentoo_uri}/dev-db/postgresql/files/postgresql.init-9.3")
- # "php-fpm.initd::${_gentoo_uri}/dev-lang/php/files/php-fpm-r4.init")
+source=("git-daemon.confd::${_url}/dev-vcs/git/files/git-daemon.confd"
+ "git-daemon.initd::${_url}/dev-vcs/git/files/git-daemon-r1.initd"
+ "mysql.confd::${_url}/dev-db/mysql-init-scripts/files/conf.d-2.0"
+ "mysql.initd::${_url}/dev-db/mysql-init-scripts/files/init.d-2.0"
+ "svn.confd::${_url}/dev-vcs/subversion/files/svnserve.confd"
+ "svn.initd::${_url}/dev-vcs/subversion/files/svnserve.initd3"
+ "postgresql.confd::${_url}/dev-db/postgresql/files/postgresql.confd"
+ "postgresql.initd::${_url}/dev-db/postgresql/files/postgresql.init-9.3"
+ "distccd.confd::${_url}/sys-devel/distcc/files/3.2/conf"
+ "distccd.initd::${_url}/sys-devel/distcc/files/3.2/init")
+ # "php-fpm.initd::${_url}/dev-lang/php/files/php-fpm-r4.init")
sha256sums=('4703ba2372c661fb674a29fea7f64983f8b1b3136d971663509249655bca6e21'
'069878aba8d7c7f229b6049f679d1f93873bdada1107b77fc9a9b2bd8be94516'
'6f8720ccbb241b08e5f9abb4be0899f55c857f6308ac82c7f12417ee2c02c1a5'
@@ -33,7 +36,9 @@ sha256sums=('4703ba2372c661fb674a29fea7f64983f8b1b3136d971663509249655bca6e21'
'45f2dc1a718aed885559e71d98112e670c92bd6b4f19c5cf593eced6cd2bbd97'
'9e0eabfd8f07e0c77c4addf21b963b254c84432dd1983083b7da79216f4df80f'
'57c1ad0b14e8458024c713dd8cc2390023b95c27ba4cbd637333b1020f11f398'
- 'fd3d3cd1913969edf51a98189cdb9b166eef52c9ea984ae467c6036194c0aef1')
+ 'fd3d3cd1913969edf51a98189cdb9b166eef52c9ea984ae467c6036194c0aef1'
+ '253cfaa5b53fe4943a9db83e76ff6d6e8855665f69c2f7beca124af3ec63c88a'
+ '9751beb31cc41b04414b654ae7d5e0da3a766b24744d206c33a4d594cb340db2')
# '37e34461babfb5881169f9729fbdde7d4aba533f123e2c480fe25ac3b863d3e7')
pkgver() {
@@ -132,3 +137,15 @@ package_subversion-openrc() {
-e 's/--make-pidfile//' \
-i "${pkgdir}/etc/init.d/svn"
}
+
+package_distcc-openrc() {
+ pkgdesc="OpenRC distcc init script"
+ depends=('distcc' 'openrc')
+ backup=('etc/conf.d/distccd')
+ install=distcc.install
+
+ _inst_confd 'distccd'
+ _inst_initd 'distccd'
+
+ sed -e 's|/var/run|/run|' -i ${pkgdir}/etc/conf.d/distccd
+}
diff --git a/pcr/openrc-devel/distcc.install b/pcr/openrc-devel/distcc.install
new file mode 100644
index 000000000..24a142e9e
--- /dev/null
+++ b/pcr/openrc-devel/distcc.install
@@ -0,0 +1,16 @@
+_svc="distccd"
+_rlvl="default"
+
+post_install() {
+ _cmd="rc-update add ${_svc} ${_rlvl}"
+ echo " ==> run '${_cmd}'"
+}
+
+post_upgrade() {
+ post_install "$1"
+}
+
+post_remove() {
+ _cmd="rc-update del ${_svc} ${_rlvl}"
+ echo " ==> run '${_cmd}'"
+}