summaryrefslogtreecommitdiff
path: root/pcr/openrc
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2015-10-22 22:06:16 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2015-10-22 22:06:16 -0500
commit5cf792932c03423e8806f16b097cb021d19278cb (patch)
treed4218ccb49cd70c4f0592620560d5592e61e03ec /pcr/openrc
parent077d6e888d40ce391185b3d6b64d670aa534ecdc (diff)
netifrc-0.3.1-6: updating version
Diffstat (limited to 'pcr/openrc')
-rw-r--r--pcr/openrc/LICENSE23
-rw-r--r--pcr/openrc/PKGBUILD73
-rw-r--r--pcr/openrc/openrc.install16
-rw-r--r--pcr/openrc/openrc.logrotate7
4 files changed, 119 insertions, 0 deletions
diff --git a/pcr/openrc/LICENSE b/pcr/openrc/LICENSE
new file mode 100644
index 000000000..a995d5485
--- /dev/null
+++ b/pcr/openrc/LICENSE
@@ -0,0 +1,23 @@
+Copyright (c) <YEAR>, <OWNER>
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
diff --git a/pcr/openrc/PKGBUILD b/pcr/openrc/PKGBUILD
new file mode 100644
index 000000000..6550e0557
--- /dev/null
+++ b/pcr/openrc/PKGBUILD
@@ -0,0 +1,73 @@
+# Maintainer (Manjaro): artoo <artoo@manjaro.org>
+# Contributor (Manjaro): williamh <williamh@gentoo.org>
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
+
+_rc_uri="https://github.com/OpenRC/openrc/archive"
+
+pkgname=openrc
+pkgver=0.18.3
+pkgrel=1
+pkgdesc="Gentoo's universal init system"
+arch=('i686' 'x86_64' 'armv7h')
+url="http://www.gentoo.org/proj/en/base/openrc/"
+license=('BSD2')
+depends=('inetutils' 'psmisc' 'sysvinit')
+optdepends=('netifrc: Network Interface Management Scripts'
+ 'networkmanager-openrc: NetworkManager'
+ 'connman-openrc: connman')
+conflicts=('systemd-sysvcompat' 'openrc-core')
+replaces=('openrc-core')
+install=${pkgname}.install
+backup=('etc/rc.conf'
+ 'etc/conf.d/consolefont'
+ 'etc/conf.d/keymaps'
+ 'etc/conf.d/hostname'
+ 'etc/conf.d/modules'
+ 'etc/conf.d/hwclock'
+ 'etc/inittab')
+source=("openrc-${pkgver}.tar.gz::${_rc_uri}/${pkgver}.tar.gz"
+ "openrc.logrotate"
+ 'LICENSE')
+sha256sums=('e8e0bbefd8b40284a167af5c5071bd2eff6304988b3fd935bd6834c62cfa2339'
+ '0b44210db9770588bd491cd6c0ac9412d99124c6be4c9d3f7d31ec8746072f5c'
+ '28875cc6cb52e93657b96cf1bf0cc3b91891cdcbbc3196007c8cd93c6e22078f')
+
+_rc_args=(SYSCONFDIR=/etc)
+_rc_args+=(BRANDING="Parabola")
+_id="parabola"
+_rc_args+=(PREFIX=/usr)
+_rc_args+=(SBINDIR=/usr/bin)
+_rc_args+=(LIBEXECDIR=/usr/lib/rc)
+_rc_args+=(MKSELINUX=no)
+_rc_args+=(MKPAM=pam)
+_rc_args+=(MKTERMCAP=ncurses)
+_rc_args+=(MKNET=no)
+
+
+prepare(){
+ cd "${srcdir}/openrc-${pkgver}"
+ sed -e "s|/sbin|/usr/bin|g" -i support/sysvinit/inittab
+}
+
+build(){
+ # make openrc
+ cd "${srcdir}/openrc-${pkgver}"
+ make "${_rc_args[@]}"
+}
+
+package() {
+
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" "${_rc_args[@]}" install
+
+ install -m644 "${srcdir}/${pkgname}-${pkgver}/support/sysvinit/inittab" "${pkgdir}/etc/inittab"
+ install -Dm644 "${srcdir}/${pkgname}.logrotate" "${pkgdir}/etc/logrotate.d/${pkgname}"
+
+ sed -e 's/#unicode="NO"/unicode="YES"/' \
+ -e 's/#rc_logger="YES"/rc_logger="YES"/' \
+ -i "${pkgdir}/etc/rc.conf"
+
+ install -d ${pkgdir}/usr/lib/rc/cache
+
+ install -Dm644 ${srcdir}/LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
+}
diff --git a/pcr/openrc/openrc.install b/pcr/openrc/openrc.install
new file mode 100644
index 000000000..c45dcce43
--- /dev/null
+++ b/pcr/openrc/openrc.install
@@ -0,0 +1,16 @@
+pre_install() {
+ echo " ==> You can boot up systemd any time if systemd is used for udev."
+ echo " ==> Add 'init=/usr/lib/systemd/systemd' to kernel command line."
+}
+
+post_install() {
+ echo " ==> Install one of the optional depends for network support!"
+}
+
+post_upgrade() {
+ post_install "$1"
+}
+
+post_remove() {
+ echo " ==> Make sure you install systemd-sysvcompat before you reboot!"
+}
diff --git a/pcr/openrc/openrc.logrotate b/pcr/openrc/openrc.logrotate
new file mode 100644
index 000000000..a168f2361
--- /dev/null
+++ b/pcr/openrc/openrc.logrotate
@@ -0,0 +1,7 @@
+/var/log/rc.log {
+ compress
+ rotate 4
+ weekly
+ missingok
+ notifempty
+}