summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libre/cups-filters/PKGBUILD10
-rw-r--r--libre/iceweasel-l10n/PKGBUILD180
-rw-r--r--libre/iceweasel/PKGBUILD8
-rw-r--r--libre/smplayer/PKGBUILD13
-rw-r--r--libre/smplayer/add-missing-QDataStream-include.patch11
-rw-r--r--libre/spacefm/PKGBUILD8
-rw-r--r--nonprism/kdepim/PKGBUILD14
-rw-r--r--pcr/consolekit/01-org.freedesktop.ModemManager1.rules6
-rw-r--r--pcr/consolekit/01-org.freedesktop.NetworkManager.settings.modify.system.rules6
-rw-r--r--pcr/consolekit/25-consolekit.rules (renamed from pcr/consolekit/75-consolekit.rules)0
-rw-r--r--pcr/consolekit/PKGBUILD55
-rw-r--r--pcr/consolekit/consolekit.logrotate5
-rw-r--r--pcr/consolekit/consolekit.pamd11
-rw-r--r--pcr/dolphin-emu-git/PKGBUILD2
-rw-r--r--pcr/laptop-mode-tools/PKGBUILD4
-rw-r--r--pcr/networkmanager-consolekit/NetworkManager.conf3
-rw-r--r--pcr/networkmanager-consolekit/PKGBUILD62
-rw-r--r--pcr/networkmanager-consolekit/dnsmasq-path.patch30
-rw-r--r--pcr/networkmanager-consolekit/git-fixes.patch265
-rw-r--r--pcr/networkmanager-consolekit/networkmanager.install2
-rw-r--r--pcr/networkmanager-consolekit/networkmanager.rc60
-rw-r--r--pcr/openrc-desktop/PKGBUILD297
-rw-r--r--pcr/openrc-desktop/acpid-2.0.16-conf.d6
-rw-r--r--pcr/openrc-desktop/acpid-2.0.16-init.d21
-rw-r--r--pcr/openrc-desktop/alsasound.confd-r415
-rw-r--r--pcr/openrc-desktop/alsasound.initd-r688
-rw-r--r--pcr/openrc-desktop/avahi-daemon.initd (renamed from pcr/openrc-desktop/avahi-daemon)0
-rw-r--r--pcr/openrc-desktop/avahi-dnsconfd.initd (renamed from pcr/openrc-desktop/avahi-dnsconfd)0
-rw-r--r--pcr/openrc-desktop/bluetooth-init.d-r321
-rw-r--r--pcr/openrc-desktop/consolekit-0.2.rc26
-rw-r--r--pcr/openrc-desktop/gpm.conf.d23
-rw-r--r--pcr/openrc-desktop/gpm.rc6-229
-rw-r--r--pcr/openrc-desktop/rfcomm-conf.d5
-rw-r--r--pcr/openrc-desktop/rfcomm-init.d-r235
-rw-r--r--pcr/openrc-desktop/startDM.sh31
-rw-r--r--pcr/openrc-desktop/wpa_cli.sh47
-rw-r--r--pcr/openrc-desktop/wpa_supplicant-conf.d6
-rw-r--r--pcr/openrc-desktop/wpa_supplicant-init.d70
-rw-r--r--pcr/openrc-desktop/xdm-setup.initd-114
-rw-r--r--pcr/openrc-desktop/xdm.confd-410
-rw-r--r--pcr/openrc-desktop/xdm.initd-11231
-rw-r--r--pcr/openrc-misc/10-openrc-status-r435
-rw-r--r--pcr/openrc-misc/PKGBUILD762
-rw-r--r--pcr/openrc-misc/at.install16
-rw-r--r--pcr/openrc-misc/bitlbee.confd2
-rw-r--r--pcr/openrc-misc/bitlbee.initd28
-rw-r--r--pcr/openrc-misc/clamd.conf-r17
-rw-r--r--pcr/openrc-misc/clamd.initd-r6129
-rw-r--r--pcr/openrc-misc/conf.d-r236
-rw-r--r--pcr/openrc-misc/conf.d.NetworkManager4
-rw-r--r--pcr/openrc-misc/connman.confd15
-rw-r--r--pcr/openrc-misc/connman.initd223
-rw-r--r--pcr/openrc-misc/cupsd.init.d-r126
-rw-r--r--pcr/openrc-misc/fancontrol-init.d-223
-rw-r--r--pcr/openrc-misc/fcron.init.358
-rw-r--r--pcr/openrc-misc/fuse.init35
-rw-r--r--pcr/openrc-misc/haveged-conf.d10
-rw-r--r--pcr/openrc-misc/haveged-init.d.317
-rw-r--r--pcr/openrc-misc/hdparm-conf.d.326
-rw-r--r--pcr/openrc-misc/hdparm-init-861
-rw-r--r--pcr/openrc-misc/init.d-r442
-rw-r--r--pcr/openrc-misc/init.d.NetworkManager57
-rw-r--r--pcr/openrc-misc/irexec-confd9
-rw-r--r--pcr/openrc-misc/irexec-initd-0.8.6-r228
-rw-r--r--pcr/openrc-misc/libvirt.install16
-rw-r--r--pcr/openrc-misc/lircd-0.8.6-r252
-rw-r--r--pcr/openrc-misc/lircd.conf.422
-rw-r--r--pcr/openrc-misc/lircmd20
-rw-r--r--pcr/openrc-misc/lm_sensors-3-init.d105
-rw-r--r--pcr/openrc-misc/master-confd-15
-rw-r--r--pcr/openrc-misc/master-initd-314
-rw-r--r--pcr/openrc-misc/metalog.confd19
-rw-r--r--pcr/openrc-misc/metalog.initd42
-rw-r--r--pcr/openrc-misc/minion-confd-15
-rw-r--r--pcr/openrc-misc/minion-initd-315
-rw-r--r--pcr/openrc-misc/mpd2.init37
-rw-r--r--pcr/openrc-misc/networkmanager.install3
-rw-r--r--pcr/openrc-misc/ntp-client.confd21
-rw-r--r--pcr/openrc-misc/ntp-client.rc32
-rw-r--r--pcr/openrc-misc/ntpd.confd6
-rw-r--r--pcr/openrc-misc/ntpd.rc-r123
-rw-r--r--pcr/openrc-misc/rsyslog.confd30
-rw-r--r--pcr/openrc-misc/rsyslog.initd69
-rw-r--r--pcr/openrc-misc/saned.confd2
-rw-r--r--pcr/openrc-misc/saned.initd12
-rw-r--r--pcr/openrc-misc/sensord-4-init.d22
-rw-r--r--pcr/openrc-misc/sntp.confd4
-rw-r--r--pcr/openrc-misc/sntp.rc27
-rw-r--r--pcr/openrc-misc/syndic-confd-15
-rw-r--r--pcr/openrc-misc/syndic-initd-314
-rw-r--r--pcr/openrc-misc/syslog-ng.confd42
-rw-r--r--pcr/openrc-misc/syslog-ng.rc659
-rw-r--r--pcr/openrc-misc/xe-daemon.initd28
-rw-r--r--pcr/openrc-net/PKGBUILD1118
-rw-r--r--pcr/openrc-net/autofs5.initd70
-rw-r--r--pcr/openrc-net/dhcpd.conf228
-rw-r--r--pcr/openrc-net/dhcpd.init5115
-rw-r--r--pcr/openrc-net/dhcrelay.conf16
-rw-r--r--pcr/openrc-net/dhcrelay.init334
-rw-r--r--pcr/openrc-net/dhcrelay6.conf8
-rw-r--r--pcr/openrc-net/hostapd-conf.d9
-rw-r--r--pcr/openrc-net/hostapd-init.d39
-rw-r--r--pcr/openrc-net/ip6tables-1.4.13.confd19
-rw-r--r--pcr/openrc-net/iptables-1.4.13-r1.init130
-rw-r--r--pcr/openrc-net/iptables-1.4.13.confd19
-rw-r--r--pcr/openrc-net/lighttpd.confd12
-rw-r--r--pcr/openrc-net/lighttpd.initd73
-rw-r--r--pcr/openrc-net/mit-krb5kadmind.initd-r125
-rw-r--r--pcr/openrc-net/mit-krb5kdc.initd-r124
-rw-r--r--pcr/openrc-net/mit-krb5kpropd.initd-r124
-rw-r--r--pcr/openrc-net/named.confd-r748
-rw-r--r--pcr/openrc-net/named.init-r13248
-rw-r--r--pcr/openrc-net/nfs.confd38
-rw-r--r--pcr/openrc-net/nfs.initd163
-rw-r--r--pcr/openrc-net/nfsclient.confd18
-rw-r--r--pcr/openrc-net/nfsclient.initd34
-rw-r--r--pcr/openrc-net/nginx.initd-r289
-rw-r--r--pcr/openrc-net/openntpd.conf.d-20080406-r67
-rw-r--r--pcr/openrc-net/openntpd.init.d-20080406-r615
-rw-r--r--pcr/openrc-net/openvpn-2.1.conf18
-rw-r--r--pcr/openrc-net/openvpn-2.1.init133
-rw-r--r--pcr/openrc-net/polipo.initd54
-rw-r--r--pcr/openrc-net/postfix.rc6.2.786
-rw-r--r--pcr/openrc-net/privoxy.initd29
-rw-r--r--pcr/openrc-net/quota.confd20
-rw-r--r--pcr/openrc-net/quota.rc738
-rw-r--r--pcr/openrc-net/rpc.gssd.initd24
-rw-r--r--pcr/openrc-net/rpc.idmapd.initd26
-rw-r--r--pcr/openrc-net/rpc.pipefs.initd33
-rw-r--r--pcr/openrc-net/rpc.rquotad.initd26
-rw-r--r--pcr/openrc-net/rpc.statd.initd33
-rw-r--r--pcr/openrc-net/rpc.svcgssd.initd24
-rw-r--r--pcr/openrc-net/rpc.yppasswdd-r122
-rw-r--r--pcr/openrc-net/rpc.yppasswdd.confd7
-rw-r--r--pcr/openrc-net/rpc.ypxfrd-2.2322
-rw-r--r--pcr/openrc-net/rpc.ypxfrd.confd3
-rw-r--r--pcr/openrc-net/rpcbind.initd22
-rw-r--r--pcr/openrc-net/rsyncd.conf.d5
-rw-r--r--pcr/openrc-net/rsyncd.init.d-r112
-rw-r--r--pcr/openrc-net/samba4.confd38
-rw-r--r--pcr/openrc-net/samba4.initd-r156
-rw-r--r--pcr/openrc-net/saslauthd2.rc721
-rw-r--r--pcr/openrc-net/slapd-confd-2.4.28-r126
-rw-r--r--pcr/openrc-net/slapd-initd-2.4.28-r136
-rw-r--r--pcr/openrc-net/slpd-init89
-rw-r--r--pcr/openrc-net/squid.confd-r113
-rw-r--r--pcr/openrc-net/squid.initd-r4118
-rw-r--r--pcr/openrc-net/sshd.confd21
-rw-r--r--pcr/openrc-net/sshd.rc6.487
-rw-r--r--pcr/openrc-net/tor.confd3
-rw-r--r--pcr/openrc-net/tor.initd-r660
-rw-r--r--pcr/openrc-net/transmission-daemon.confd.414
-rw-r--r--pcr/openrc-net/transmission-daemon.initd.973
-rw-r--r--pcr/openrc-net/ufw-2.initd137
-rw-r--r--pcr/openrc-net/ufw.confd5
-rw-r--r--pcr/openrc-net/vsftpd-checkconfig.sh29
-rw-r--r--pcr/openrc-net/vsftpd.init51
-rw-r--r--pcr/openrc-net/xinetd.confd3
-rw-r--r--pcr/openrc-net/xinetd.rc633
-rw-r--r--pcr/openrc-net/ypbind.confd-r14
-rw-r--r--pcr/openrc-net/ypbind.initd41
-rw-r--r--pcr/openrc-net/ypserv23
-rw-r--r--pcr/openrc-net/ypserv.confd4
-rw-r--r--pcr/polkit-consolekit/PKGBUILD24
-rw-r--r--pcr/spl-git/PKGBUILD68
-rw-r--r--pcr/spl-git/spl.install37
-rw-r--r--pcr/spl-utils-git/PKGBUILD49
-rw-r--r--pcr/thermald/PKGBUILD38
-rw-r--r--pcr/thermald/modules-load-thermald.conf2
-rw-r--r--pcr/xf86-video-qxl/PKGBUILD10
-rw-r--r--pcr/zfs-utils-git/PKGBUILD64
-rw-r--r--pcr/zfs-utils-git/zfs-utils.bash-completion-r1391
-rw-r--r--pcr/zfs-utils-git/zfs-utils.initcpio.hook100
-rw-r--r--pcr/zfs-utils-git/zfs-utils.initcpio.install104
174 files changed, 2508 insertions, 6354 deletions
diff --git a/libre/cups-filters/PKGBUILD b/libre/cups-filters/PKGBUILD
index dd2169f94..1496d52b3 100644
--- a/libre/cups-filters/PKGBUILD
+++ b/libre/cups-filters/PKGBUILD
@@ -1,15 +1,15 @@
-# $Id: PKGBUILD 241756 2015-07-03 17:22:16Z andyrtr $
+# $Id: PKGBUILD 244873 2015-08-26 16:21:44Z andyrtr $
# Maintainer (Arch): Andreas Radke <andyrtr@archlinux.org>
pkgname=cups-filters
-pkgver=1.0.71
+pkgver=1.0.74
pkgrel=1.parabola1
pkgdesc="OpenPrinting CUPS Filters, without foomatic-db-nonfree recommendation"
-arch=('i686' 'x86_64' 'mips64el')
+arch=('i686' 'x86_64')
url="http://www.linuxfoundation.org/collaborate/workgroups/openprinting"
license=('GPL')
depends=('lcms2' 'poppler=0.33.0' 'qpdf')
-makedepends=('ghostscript' 'ttf-dejavu') # ttf-dejavu for make check
+makedepends=('ghostscript' 'ttf-dejavu' 'python2') # ttf-dejavu for make check
optdepends=('ghostscript: for non-PostScript printers to print with CUPS to convert PostScript to raster images'
'foomatic-db: drivers use Ghostscript to convert PostScript to a printable form directly'
'foomatic-db-engine: drivers use Ghostscript to convert PostScript to a printable form directly')
@@ -19,7 +19,7 @@ source=(http://www.openprinting.org/download/cups-filters/$pkgname-$pkgver.tar.x
provides=('foomatic-filters')
replaces=('foomatic-filters' "${pkgname}-libre" "${pkgname}-parabola")
conflicts=('foomatic-filters' "${pkgname}-libre" "${pkgname}-parabola")
-md5sums=('f1e11dfe5fa52eb65aa0bdd3a7ee0117')
+md5sums=('14862048b4a9a87abfeeae07531dd020')
build() {
cd $pkgname-$pkgver
diff --git a/libre/iceweasel-l10n/PKGBUILD b/libre/iceweasel-l10n/PKGBUILD
index f3eca2389..97ddcad1b 100644
--- a/libre/iceweasel-l10n/PKGBUILD
+++ b/libre/iceweasel-l10n/PKGBUILD
@@ -4,13 +4,13 @@
# Contributor: fauno <fauno@kiwwwi.com.ar>
# Contributor: Figue <ffigue@gmail.com>
-_debver=40.0
+_debver=40.0.3
_debrel=deb1
epoch=1
_pkgbase=iceweasel
pkgbase=$_pkgbase-l10n
pkgver=$_debver.$_debrel
-pkgrel=2
+pkgrel=1
pkgdesc="Language pack for Debian ${_pkgbase^}."
arch=('any')
url="http://packages.debian.org/experimental/$_pkgbase"
@@ -163,91 +163,91 @@ _package() {
}
sha256sums=('81d1f98843f29a81c10a9a96655505c72ee34acee45225dcd307ae9a123e63d9'
- 'f8381fced418f1755c8f8c049dcb4a129d8b33f14b0210de251e678cc4f044c3'
- '39aa190dd7c0c97b48b87c63371b6eae1dc79c1e07540340cdb678d205f7361f'
- '577de0298525e340ca2d63ac1e7e642fb3dfc5961cae88dafcf601a2f5c6375c'
- 'b0f7331b86458067f901a259938cf98ca25362b7d7848b15c5a6c00f907a371d'
- '56d966303c025d9223c2e610de980b240a875b68434a38cfa753cabeadf54ff2'
- '8e276e411448966ac756993472e8218edeb22b03615d2e461b88362080bc6259'
- 'fded49ec20d531c090e95789f923a5aa0a2debd053033c38f2ed8a9fc20f949a'
- 'd870869e20005b1f04d12f1f2aa6d797219d64809a1c0bf3bd6053799972b56b'
- '636b34dd6f20ac508838376b41b5768d90d2975c6fb7fde0e1a09a7c86161982'
- '20728794c36144d86073b61cd4c35a556907167aa512d4be99c2913de1b0c879'
- '5fee9cd2e2af7275df68f3591df50259bccf3e1b8181daaf518ef86090bd453d'
- '8a98570e8b6e6c694db42ad757a4571850f4c7202ae7883ff616b3edf3da8165'
- '0a7d2cb6dae6bd183059c3004253f8ef09045c8cb65b68c7a2c1a1ddddc33164'
- '633bdc61886fc3f5e95e50cef91404dbbe16ad94a216f231cd5912b2fe90b914'
- 'b80dccf414c27a4d8ca625bd90e827ed345ea8eed69f4cfb851c4097733bb163'
- '59dd8d06fe06ce8b638bf5f4533010b2294244730da5022853b139f4a9032fbb'
- 'd2e844c0bd9bd9621dc306ff89582c27b24f0c09bbaea9e04c833c7a58ab74ca'
- '9dd98304aff221ffc4045c01803f94d554789e769cc52d52af00d222c19613db'
- 'c07c31b307785ea517244561c02f6d99d80e493e9b7bbab2667e115d797b48f6'
- '7e31501d0f4a5b7099c784f021306ace989409cbaa62fff08b82c7f5b196ca11'
- '917688a06459c07e5e3ff41393f036e57834254a7a480e2a51d11e1d3cda54ff'
- 'aeb92d075df453855d7483642f29da5ca6e8e01a94498780fe6a548ca9271095'
- 'ee8dc905a3d6f1f57e98b510b01f5ae28876b7a047976676f62b5c1e935ddf46'
- '144eaab557cbf28f98413b63ec592d4c958459c0167aee4d4e88449e8f41e291'
- '7b8a811ebc2276d13604aa54db539f1efc4074804574570b4ff721c0b0f19f77'
- 'ca630874ff59dcc93dc1e74a3512384a6b92fe3fd0eff4d40ebf7fa04fd3021f'
- 'c40ede290caabdd0e0956305e4b0daf6810311a65399c80a87fd51d35136dc2c'
- 'ce4f693b6dd775a7982b526365c5d852757bb0e104ab081a417972033a4a7bc4'
- 'd8eebfe57c2990a538e458bd174a22e3b44499e5d961c51cfa780cfafa15af7b'
- 'cd7f4f34bc9ea30c92fe663f71f223b5fa3dede00308fb26cbe4079c95a0c1ee'
- '5efc92b8ca4232c853095dcb3c29b996a976fbd6328954f80177e75f7d98a4e5'
- '83df66a3a2f8369a4c188daf3f73895777c89902cdcaaa5883f8a30da76f2d22'
- 'ea0e2b0870ecf6cdfe9485c0cd4d493e2a894c03cb1e2bf31f8405a8e44e756b'
- 'cba52593c321ba8a91afd9f49bb7c8399ca69dab25e10886f3a1a701954b3c74'
- 'e951cbc3b90a4a8a7b8643cc100f73986cae2f3ab8eaf184d2624cdee9de3aa2'
- '4c1a877827b7f50675897553687cfb88e21d78ac28f3632f3836e1ce55d9970a'
- '1bc782f56cd3c7dc3b7b85b79a15f5bc61188b1fd778b62f6ae91fe407c8bdcf'
- 'e6590c1c08f13a2993485e19b772dca0bc86ae61a03c2fb326c272cf67ee6cb6'
- '0ed202dccd6a49e839302f6174fe2403c909ed2aaee9de8e76787a2d9a84b413'
- 'ee4432ab70461aff6db7c18f02156de3b80eea840c6c839ba8fb7a8f3de74c90'
- '5496461c60f7c7bb64a55a7e9b794dd58232beec3c3e475cfad27e38ebdb6836'
- '97c3ad35e151fc0005245876ea06e30ea714a621d9f87c9b64929fe6f5bee6e8'
- '9c3f2efb642bf3609703a6d168516dfc26ff5a197a1b86f61910e15a6d55fd29'
- '4970c93c92cc2031443e74d199994ad9ce27731656e346926f3b5becf31daf6f'
- '2bd32edfeff77790744377f5da93afddfca01c47eb4ff2c55418bbe2b8648aae'
- 'e9a08699872c94119d0d70c6693d0bdc9e24936f1d0558d669921a8a033e3af1'
- '930fe92859bf9649172d26889a1c36a0dbdcfaa7a7f769a421a0a817a261a19b'
- 'd732a985f2985403f097ffffd2e2f660abe72d851c0d050f06d5db0b19ffe7e3'
- '4e8a9faeb6a4adf3a31ef79f4e3d9b051bf88ad65c046a3cd853d07362cb2e2a'
- '0bfbdc9a329f89f6568e7867ea6b46a4c3f9bf552ed8bef93142709cd18b012e'
- 'd8c62a32a65a7a69048e4c2141797c480dce3f3c895420ca3ac063b633a5949f'
- 'a604b30a9829578e4c51adbab3bd4a2145ff7581491c06b15400051fc934b2de'
- 'da9a81ac15ac060ca6c171230fb842f202e15f400111b53635df1b39d102df2a'
- '6323f25414ed131fc7ea1be76b2bb0702ab56becc0cd60bfb800d5cc02be4e44'
- '46c3df328d691ff90c27f5705512fdf425813029a06dcfee75812ca526ad4413'
- '2674d38e87ce335309143b19617e22660d872900cd6359165e52d4829a46a1da'
- 'ccf4e442dd7637697b5d3517ae33c93a4614138763ea6a157f64b06feb829f8d'
- 'd98e0fd32214148cc7840640ca9f6b4881b9ba213ebf06f1ffea45edc4dc4200'
- '0f8b0dfff4223ab8e60709fef891247bc1f96550cf35c108f02e74b5b4f2ecb1'
- '59f7e33f9480575a6fce209a6278088c8e1e0ca52f7642415d54c07764f33a10'
- 'c91498dfcc1a213a570211f0d7feda5ca16f8b223205dcb745743d6e9167d6aa'
- '0b1909b54f07a729dc12261c9ea711efd4386cea41ce8bc4ed7ea3f4b5dc70ba'
- '944369ad2da6424dc7eceec6f585d1daeff59ae700e0bbfe0106f3c1ae07b783'
- 'b442054ecd9685efe9cb2824021d989cca8790b2b6049fabcd61636fcf673ecf'
- '051ca0012d994c38cec1a16bd4055663ad891f78d140604ee00f6f34db8ec3fb'
- 'c13dcd505baebd615d4f50c5d4dae24d7dd6a96702eb3c8bd2d42486d9630213'
- '5ad7cffdefc967dc5dbe21152b3d3f66205968c9f2f412e96f782827ec0ac0db'
- '0fe74b79fb104d6e4d8f82e9fa1660ac0cc2a2a9de40096eafc86f28fbfe3826'
- '21f42362d1c91ac809f9a7b51170e69f803e93b55b415dbd092a748edeb2c503'
- 'd12be8c849b10e9f809744ea7cdaeffd4a3862872edb0b375cae875a59aa3291'
- '87da8d519a477f95067eb62e6ba2bb22479e5971bba3cfbdfffdb6bff4d8290e'
- '9e4fc0295200cb59b271036f71ada0c6af77ae077e7b1563dc999acc41bb9b01'
- 'fe666b83f218dc7481736eeef480f53e5cd426edd07341b9f67797eafb38f480'
- '2bc77f76ab00f9fcd41107217fd831ae18e8f3660cc5de6d83f09c1748e271ea'
- 'c788db7f1ddf91b33e17a7537877351e3becf4ff1ed0e45514d87dada39e13ee'
- 'c8e8ed847900a0c988a4d44f7c07a03e72317a8b7fa98a641d1f2343d98c5eda'
- '5d35c326f54330811eb6b952da1c92792c6cb4050b64c3d75de5d39e28cd54ef'
- '1be17a4d0d59e1b235178ee5a79598eb0081d861391a8e20ac104395455ba54e'
- '4662e78e23e657eba8f2f61ffec4fc67b58d0f3dadf0b562c0b70089bbba58b2'
- '4dbdac371ec585d1bebf22a2378ace9ff686d85064230a179e6f0d28e278f7e9'
- '3567baac551365dec8d622bc6687291c560713a783cf30a71beee984215f1e3c'
- '9cb527750e461629ca89e3091c998a097f45abcdecf2fd4bd88158bfa7430aca'
- 'bdf9a49acb6a9f673601d8d1138bc271dc1e26e612030d3ce22b2eb2e7e40d48'
- '9f3a7717d5eab14ebf869376536c3935392cd42ec941688c2df389dbb4375298'
- '707ac6eb97a6474f8b733f43880b5a0bfd86471886d761e1518956e96b6813ce'
- 'bf723a9ecdcf13ed416b6c34185ef92c16a1d3b0e680e56844f220a82a18e5ea'
- 'edcf58bdc34e1359e12aa7aa62b33ef0fa143ceca590e0f65ccce09b26c500e0'
- '25593666fdbdeae13e66496486cb48fda04e73b3f2c5fb1fc6f5a5db22756635')
+ '86b47b16b829c20b98c55c86920f840e24ed7285fd12721e215d32284e0a37a0'
+ 'd6b588e9d0052aaa301c13d0f36424c7ed451078327432a6ca6f7ab1fe722c47'
+ '443e6895401b421d2198ed56eb6d1da656ca0f23fb4b37146944b34963bc5ff8'
+ '6ddcac571a55ced9275b58acae1a32e6575b64127c1221099c59fb83a2f2dcc6'
+ '350edd0664f8d169851c6f44962f5b48f779015098ec0473cbdc9e0012fcd88b'
+ '8e03ea10fae11112e51d9d7f05ba96305330a52b15857157c3344ccf9aab9626'
+ '8fc266421931939a03dc502a5ddc833240efee7077855e099c853a301d9f44d2'
+ '2d112a487986eba88c9702c4a760d630dec268d8f743ab728dbbdbaa97504983'
+ '68b9525ef3f69ee08c16b5c508d9badbfc22e6a42d025e037ba0472d1524a10e'
+ '466ae762ad899598f29368cd47efb01f461036dcf163a0598cab758530c70605'
+ 'fa813184f2953a5262be1bfcb4b507556de2a3c3ad27264a012397c41105a3ca'
+ '82f916f52fa37bbfef4d72c78a4b22e2a6f0fc0e534281250352b7b2d2f1964d'
+ '47e93986d1c1ba0e7ce84489f89ee1f3238faba9c3f5d3bd751372d021140197'
+ 'e1a9ae8114ea3eea4f5fd88fe311334cacd7041352f819e734d3b1bba41070b9'
+ 'e30f0180b578884c52288b97d85de8bbc9b167c14520dc010a0aba90b354955b'
+ '3da406f9a61f07182ce333b5f4e918c37c96e9631ea9eed0a358488c56bb8fce'
+ 'd633709e95775a051e9e400e04b97d1e95b5fe43ba4376c06ff6c40eb4149709'
+ '9954fab2a0ff5fbedfb4e9d0c01a9cd5551cf5b442310be67fd1617bf28fc60c'
+ '08dd910b3ca98baaf1bd2a8a5aae266244662477ca62725552c2d2e34a3b8b3c'
+ 'a24255006962e4119804191d45324d2bd92c3dc76c4b9a3b8c1bdaba2d869403'
+ '9d25c813f63ad35ec37341a4296d40759f04f42e4713327b081a2c74687c62ed'
+ 'c9c8de0212840831d616482c4cb10ca0c8bb7e9bdb22ca6e4bfc503c7f54c4c0'
+ 'c374ddf82403ccbe7255c450b74cd3beb4f27389e41c49df71df45d3451bd683'
+ 'c6287bb90609a5dd8ada1276c588e9c167812bdc35b2a33c41993a1fca26a63f'
+ '0a653d6b8ccea3d300084a1e9e381d012dd5bfab23e3dc18b0f58c31b8106e8b'
+ 'b325cea20c0de649029dbae5b86881bf94eff31107cb1a8d03b755e5712e91a8'
+ 'aea869be9d259982b666c0f8eac229b210429ee416f83de018a61c46300b0ecb'
+ '92ef61880643f35368ace2858b506ed4ccce9a353259ddf67cae9eef1a96586b'
+ '978ff6e3073c733d824e189bf6b0d607fe2b6c90acaf0439625f3af03bff103d'
+ '78d0d43ef9c50a1abf64e76406163611abcf81b76e625b0db2dfbfe1ecae6f7c'
+ '693205a11f6e889692b29e2f2e2daca934910289e4a3bac5478cf329c223834d'
+ '074d3d2e2650e5a1530502b4347c6a1559f8c8fd1b4ec81091b4464dff1115ed'
+ '98410ccd6e117704e12ca662c3f726379e618f8f891f7de6f32b33c0f33c233c'
+ 'a641c447c80175a312fa6a97f20603119232837e09e5e30cfab408ef05371587'
+ '71508ecafe9fd1c2a5e293eda2735e366f80c6f117cfc76ce84caa51e864729b'
+ 'b6ffc5e8f06f7d732b47463dd23f6a82fce73baefbd61ef268c2003a42dde26d'
+ '7f78d1f9abb554cac2b849c322279cde29ff317869ee1d64e7c53b2dcf35f20a'
+ '856484815c1919037fcba7281d122c5064f6c723629b108e7b271cce95452b8e'
+ 'bebbf39945828681158c920a3a67205919c93d39947761cab97a3cd8f95806f4'
+ '95948df90a11d45492f78127a12f7c85441ee6be99331f8697acf44f90c8eddb'
+ '54c5fe05d8f0222f3849fbd9349a0287475f7f5cfadde53bda268a8be4e2e73c'
+ '47b8023434a6386dc9553991ea3c47ee30aeef96d1510c30fa4b636518fb45f9'
+ 'd049504e419bfc5ad9d5a3a157f6c930a0a15c346c666a60412111b9623eb290'
+ '4857976f2a17fc1b785e99aa0f4c6b599a8495db2d5d8c3fe2e8bf8e1c695f12'
+ 'ec9619e8757495ce77500d9cfa0888d527b2ed9d7417a2302ee7487da7c8a484'
+ 'fd3d223fda20f22ebea5426caf29fc2358b170bb50b5f2e32eb88d9619eafd53'
+ '98e7e6741a7d791156f7eb9edd4e25acd54142d658928f4434ff0447a0b1fe08'
+ '7e11cd3b6c14c59f9a475a93a28d65cb5cae10b26fe936f81ed9069f7b903153'
+ '9e26dd8d34146ced2ed73e1abe629468de213c410a8efe5feb160056451feb05'
+ 'a8f0d23577569b5550aacdce1120a13bd7365e932343cc13a0409bc7d5fac2f0'
+ 'ad9d32ac29ece7c874316eb7712ef50e2e455e3d63ddacf439762a2aa0aef29d'
+ '7b493a0f8cbc9da57caef1363f5e518dad3966b157dfc0e1d6d457df0107d08f'
+ '095e9a301738d29e82ec14774f6197db9653a264ca17d00109eaac0a2bfaf7d0'
+ '236a1ae41013db11e58235d639860c44a2c274d61ce135390cf844e2dac285e2'
+ '3a0c47498128a84af7fa03f07a219e2f1986ed49afa9b0e9cc92805e97cb1ba1'
+ 'b6d578b014c9a283790007af286627c3ae414079c5d75cf015f5b973299904b3'
+ '431690723f492677e265d0663f49d60db789763189600a803b7921bec2ee9740'
+ '122ca76121d03f55d0be579261d29d4f53728b0bf5f50d30d50f96e6ad9038b2'
+ 'f60431ac3d478cfa5bd950d6dc0151598f6ef00d645eb7db3a2c90996629dc1b'
+ '122209392c40c9850bb1be008ad5788be26a654e26bea319f62a8bf78fccd7e0'
+ '907e3c213b40b0f1e4c734a2cad82d6866b89dc57f5bc5a5141baa937bffa084'
+ 'e66071671084c16ff7d3cd6bf5ca126b64ab9e1488db27bfed32de35d7dc88d9'
+ '79e0f363c9f26a59a6a56777ae8e04baa413ca37a61de6f56ce5683e4e1d37dd'
+ 'a27aa417ff7054c61bb83c84f5208bc510b13caea5507f38b4915a763defa88a'
+ '060612b92d791e246a37d86c240daf36f4cf8e46506eb71701339c127e193cfc'
+ '7a6da2d0b7db4c18e30037c395c3d0086ab81ae70bf228a1f439b86d87e6f77d'
+ '988efbd35f6e31f1870dc7630bd993ff24092074f85119e54f375cc79407c251'
+ '49fd82563ebbbaed7b57031ca16558660e32ca9eb452cf1f51374dc49cc945cf'
+ '8c1496efbdf6a65a45e999a617e404dca1553e8c22251b1ea7c0ef2e88cb0790'
+ '2cfed7210f1f8a20781d78b79d6574eb3fa07c2987dd60a60179881c7f3bda3b'
+ '8749a70412102617394d38f052531f5ad6b6f6f3955955d54c772bb18eedc13c'
+ 'f86b302b861f23a545be94c5419828942e9704813961f8920363de9e49082de8'
+ 'ad451ab2d1b8e70f3c36f507bd17737527c55e89300d1b0fb5bc1f8383277dce'
+ '0f63e7f77a1d9fe18c127bde579f118acd1ee6d181ecaa5cfac9068589ec6c86'
+ 'b5cae9e12ff2927f141f2e9fcff999b48d174df0487883300c7f7e739cf744da'
+ '9c1373adcd05c518147009ba7c39c0fc89f150aa1824b66e995d134aa79f971a'
+ '24bd221634e1e5b97e08557c6c77423792741db655d4bf9b3fc251a96801e598'
+ 'c330fa0c305d1f07f9a5887628c71e5dd5b8e603253eafc3a2f19f9b3ca41073'
+ '084dfa2356cdaf50bbbdec3132d7bea43003439cfe5b3a1afaadc7cc4604609f'
+ '3134e9f9d3d9d38457da0dcf8ad2fb25a4ad23867d3ed432ecc54193b8f47f2f'
+ '24b2e2f9c5ed64df69bdc4b397f286bd3213146d5d8e4fd534305439be414264'
+ '1bfdfb22a278001da030037b1da0820cdfa4c60f22b73d426f3ddf06ed8b5d2f'
+ 'f3439c09edd6c9528913a51dfe5bad6e8c2d1bdb7ac8c94f4959a788f030e34b'
+ '39feea871a31cee240b500c4a129d6a465cc60992cbb696a2107a093166cf520'
+ 'aeb5fa756166cd699cff21571a37214b63004e18845ff21df506f5c6799195c8'
+ '1fe91255bdb93fede031a70c981ef25898082eb15f98adcbbf04e8898ea91473'
+ '60c017d50b421ffc2901e667afda08d8e2fabb2792782696a9dbf7fc1ecf8fc6'
+ '618957dc579c831f5fac0c0bce5252d9494f9e42405819208cbcd57e159c515e')
diff --git a/libre/iceweasel/PKGBUILD b/libre/iceweasel/PKGBUILD
index bacb66435..8d19d4ae6 100644
--- a/libre/iceweasel/PKGBUILD
+++ b/libre/iceweasel/PKGBUILD
@@ -16,7 +16,7 @@ _pgo=true
# We're getting this from Debian Experimental
_debname=iceweasel
-_debver=40.0
+_debver=40.0.3
_debrel=deb1
_debrepo=http://ftp.debian.org/debian/pool/main/
debfile() { echo $@|sed -r 's@(.).*@\1/&/&@'; }
@@ -24,7 +24,7 @@ debfile() { echo $@|sed -r 's@(.).*@\1/&/&@'; }
pkgname=iceweasel
epoch=1
pkgver=$_debver.$_debrel
-pkgrel=5
+pkgrel=1
pkgdesc="A libre version of Debian Iceweasel, the standalone web browser based on Mozilla Firefox."
arch=(i686 x86_64)
@@ -53,8 +53,8 @@ source=("$_debrepo/`debfile $_debname`_$_debver.orig.tar.bz2"
$pkgname-install-dir.patch
vendor.js
$pkgname-fixed-loading-icon.png)
-sha256sums=('ddebb9f43f653b096367fb6851299edae31973d88e8c91c1ec9c9926022ee4d3'
- '2b0c360fef190df4a41d7f2a7976d8b9e711266df97dc84683ce9948ae8848d7'
+sha256sums=('2a2ded339bf491c4072fdcdc79cdc906733deffb8bcfa1d4fd9243e7f4ff9ee9'
+ 'ffab34628fdf8cdf5bf9167d2be2e244aaf3fa2802b7cf5165e18ced498cffab'
'8e0b2aa899f9c71dfabf61e8e3427bda9a6ef76330bda4428d1badddcfc331a5'
'1811eec7a02411295affc6ee66e3e4b9fd636b0bfbd313ce2a132beb124612d8'
'93e3001ce152e1d142619e215a9ef07dd429943b99d21726c25da9ceb31e31cd'
diff --git a/libre/smplayer/PKGBUILD b/libre/smplayer/PKGBUILD
index 430eb40a3..0191b5bbd 100644
--- a/libre/smplayer/PKGBUILD
+++ b/libre/smplayer/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id$
+# $Id: PKGBUILD 244955 2015-08-28 08:42:55Z foutrelis $
# Maintainer (Arch): Ionut Biru <ibiru@archlinux.org>
# Contributor (Arch): Allan McRae <allan@archlinux.org>
# Contributor (Arch): Alessio 'mOLOk' Bolognino <themolok@gmail.com>
@@ -7,8 +7,8 @@
# Maintainer: André Silva <emulatorman@parabola.nu>
pkgname=smplayer
-pkgver=14.9.0.6690
-pkgrel=1.parabola2
+pkgver=14.9.0.6994
+pkgrel=1.parabola1
pkgdesc="A complete front-end for MPlayer, without nonfree smtube recommendation"
arch=('i686' 'x86_64')
url="http://smplayer.sourceforge.net/"
@@ -19,11 +19,14 @@ optdepends=('smplayer-themes: icon themes collection'
'smplayer-skins: skin themes collection'
'mpv: for using mpv instead of mplayer')
install=smplayer.install
-source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2)
-md5sums=('75d8947682de96f7bf29c6f1a2f21391')
+source=(https://downloads.sourceforge.net/project/$pkgname/Unstable/releases/$pkgname-$pkgver.tar.bz2
+ add-missing-QDataStream-include.patch)
+md5sums=('666a589b1fc3480a29e87f0ee7efd511'
+ '418ab45eb94448fc8a2f44500c9742c2')
prepare() {
cd "$pkgname-$pkgver"
+ patch -Np1 -i ../add-missing-QDataStream-include.patch
sed -i 's|DEFINES [+][=] YOUTUBE_SUPPORT|#DEFINES += YOUTUBE_SUPPORT|
s|DEFINES [+][=] YT_USE_SCRIPT|#DEFINES += YT_USE_SCRIPT|
' src/smplayer.pro
diff --git a/libre/smplayer/add-missing-QDataStream-include.patch b/libre/smplayer/add-missing-QDataStream-include.patch
new file mode 100644
index 000000000..5f37b0957
--- /dev/null
+++ b/libre/smplayer/add-missing-QDataStream-include.patch
@@ -0,0 +1,11 @@
+diff -upr smplayer-14.9.0.6994.orig/src/qtsingleapplication/qtlocalpeer.cpp smplayer-14.9.0.6994/src/qtsingleapplication/qtlocalpeer.cpp
+--- smplayer-14.9.0.6994.orig/src/qtsingleapplication/qtlocalpeer.cpp 2013-08-30 03:53:57.000000000 +0300
++++ smplayer-14.9.0.6994/src/qtsingleapplication/qtlocalpeer.cpp 2015-08-28 11:37:18.435899495 +0300
+@@ -41,6 +41,7 @@
+
+ #include "qtlocalpeer.h"
+ #include <QCoreApplication>
++#include <QDataStream>
+ #include <QTime>
+
+ #if defined(Q_OS_WIN)
diff --git a/libre/spacefm/PKGBUILD b/libre/spacefm/PKGBUILD
index 00d0b0e08..9f4ac3867 100644
--- a/libre/spacefm/PKGBUILD
+++ b/libre/spacefm/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 134719 2015-06-03 22:17:41Z arojas $
+# $Id: PKGBUILD 138873 2015-08-28 13:04:56Z arojas $
# Maintainer (Arch): Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
# Contributor (Arch): IgnorantGuru http://igurublog.wordpress.com/contact-ignorantguru/
# Contributor (Arch): ridikulus_rat <the.ridikulus.rat@gmail.com>
@@ -6,10 +6,10 @@
# Contributor: Edison Ibañez <arkhan.xxx@gmail.com>
pkgname=spacefm
-pkgver=1.0.2
+pkgver=1.0.3
pkgrel=1.parabola1
pkgdesc='Multi-panel tabbed file manager, with unar support'
-arch=('i686' 'x86_64' 'mips64el')
+arch=('i686' 'x86_64')
url='http://ignorantguru.github.com/spacefm/'
license=('GPL3')
install=$pkgname.install
@@ -24,7 +24,7 @@ replaces=(${pkgname}-libre)
conflicts=(${pkgname}-libre)
source=($pkgname-$pkgver.tar.gz::https://github.com/IgnorantGuru/spacefm/archive/$pkgver.tar.gz
libre.patch)
-md5sums=('cef34680fc5b76d8aefc1efa5e4b8824'
+md5sums=('000e26dc414443f934e3838610cb6174'
'66cc35023050ff6664bf14b1073700e2')
prepare() {
diff --git a/nonprism/kdepim/PKGBUILD b/nonprism/kdepim/PKGBUILD
index 5aed465a3..948ae3f6e 100644
--- a/nonprism/kdepim/PKGBUILD
+++ b/nonprism/kdepim/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 244749 2015-08-23 19:34:12Z arojas $
+# $Id: PKGBUILD 244953 2015-08-28 08:31:00Z arojas $
# Maintainer (Arch): Felix Yan <felixonmars@archlinux.org>
# Contributor (Arch): Andrea Scarpino <andrea@archlinux.org>
# Contributor (Arch): Pierre Schmitz <pierre@archlinux.de>
@@ -7,7 +7,7 @@ pkgbase=kdepim
pkgname=(akonadiconsole kaddressbook kmail knotes
korganizer libkdepim)
pkgver=15.08.0
-pkgrel=3.nonprism1
+pkgrel=4.nonprism1
arch=('i686' 'x86_64')
url='http://pim.kde.org'
license=('GPL' 'LGPL' 'FDL')
@@ -64,11 +64,11 @@ package_kmail() {
url="http://kde.org/applications/internet/kmail/"
install='kmail.install'
for _i in kmail agents/archivemailagent agents/mailfilteragent \
- storageservicemanager importwizard libksieve messagelist grantleeeditor mboximporter; do
+ storageservicemanager importwizard libksieve messagelist grantleeeditor mboximporter sieveeditor; do
cd "$srcdir"/build/$_i
make DESTDIR="$pkgdir" install
done
- for _i in akonadi_archivemail_agent kmail importwizard; do
+ for _i in akonadi_archivemail_agent kmail importwizard sieveeditor; do
cd "$srcdir"/build/doc/$_i
make DESTDIR="$pkgdir" install
done
@@ -107,18 +107,18 @@ package_korganizer() {
package_libkdepim() {
pkgdesc='Common libraries and resources for KDE PIM applications, without Google Drive support'
groups=()
- depends=('kdepim-runtime' 'gpgmepp' 'grantlee-qt5' 'akonadi-search' 'knewstuff' 'kldap' 'kdnssd')
+ depends=('kdepim-runtime' 'grantlee-qt5' 'akonadi-search' 'knewstuff' 'kldap' 'kdnssd' 'libktnef')
conflicts=('kdepim-libkdepim' 'kdepim-kjots' 'kdepim-knode' 'kdepim-kresources' 'kdepim-ktimetracker')
url='http://pim.kde.org'
install=kdepim.install
for _i in agents/sendlateragent calendarsupport grantleetheme incidenceeditor-ng kdgantt2 libkdepim \
accountwizard icons libkdepimdbusinterfaces libkleo libkpgp mailcommon mailimporter \
messagecomposer messagecore messageviewer noteshared templateparser calendarviews agents/followupreminderagent \
- plugins/messageviewer pimcommon pimsettingexporter sieveeditor kaddressbookgrantlee; do
+ plugins/messageviewer pimcommon pimsettingexporter kaddressbookgrantlee; do
cd "$srcdir"/build/$_i
make DESTDIR="$pkgdir" install
done
- for _i in akonadi_sendlater_agent akonadi_followupreminder_agent contactthemeeditor headerthemeeditor pimsettingexporter sieveeditor; do
+ for _i in akonadi_sendlater_agent akonadi_followupreminder_agent contactthemeeditor headerthemeeditor pimsettingexporter; do
cd "$srcdir"/build/doc/$_i
make DESTDIR="$pkgdir" install
done
diff --git a/pcr/consolekit/01-org.freedesktop.ModemManager1.rules b/pcr/consolekit/01-org.freedesktop.ModemManager1.rules
deleted file mode 100644
index 38af2c8de..000000000
--- a/pcr/consolekit/01-org.freedesktop.ModemManager1.rules
+++ /dev/null
@@ -1,6 +0,0 @@
-polkit.addRule(function(action, subject) {
- if (/^org\.freedesktop\.ModemManager1\.(Device\.Control|Contacts|Messaging|Location)$/.test(action.id) &&
- subject.isInGroup("network") && subject.active) {
- return "yes";
- }
-});
diff --git a/pcr/consolekit/01-org.freedesktop.NetworkManager.settings.modify.system.rules b/pcr/consolekit/01-org.freedesktop.NetworkManager.settings.modify.system.rules
deleted file mode 100644
index ef002c904..000000000
--- a/pcr/consolekit/01-org.freedesktop.NetworkManager.settings.modify.system.rules
+++ /dev/null
@@ -1,6 +0,0 @@
-polkit.addRule(function(action, subject) {
- if (action.id == "org.freedesktop.NetworkManager.settings.modify.system" &&
- subject.isInGroup("network") && subject.active) {
- return "yes";
- }
-});
diff --git a/pcr/consolekit/75-consolekit.rules b/pcr/consolekit/25-consolekit.rules
index adddfb1bd..adddfb1bd 100644
--- a/pcr/consolekit/75-consolekit.rules
+++ b/pcr/consolekit/25-consolekit.rules
diff --git a/pcr/consolekit/PKGBUILD b/pcr/consolekit/PKGBUILD
index 42a4a0707..1cd602a03 100644
--- a/pcr/consolekit/PKGBUILD
+++ b/pcr/consolekit/PKGBUILD
@@ -1,39 +1,41 @@
-# Maintainer : freaj <freaj@riseup.net>
-# Maintainer (Manjaro): artoo <artoo@manjaro.org>
+# Maintainer (Arch): artoo <artoo@manjaro.org>
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
_pkgname=ConsoleKit2
pkgname=consolekit
-pkgver=0.9.2
-pkgrel=4
+pkgver=0.9.4
+pkgrel=1
pkgdesc="A framework for defining and tracking users, login sessions, and seats"
arch=('i686' 'x86_64')
url="https://github.com/ConsoleKit2/ConsoleKit2"
license=('GPL')
-provides=('logind')
-depends=('dbus' 'dbus-glib' 'libx11' 'polkit' 'udev' 'zlib')
+#provides=('logind')
+depends=('dbus' 'glib2' 'libx11' 'polkit-consolekit' 'udev' 'zlib')
optdepends=('consolekit-openrc: consolekit openrc initscript')
makedepends=('xmlto' 'docbook-xsl')
-options=(libtool)
+options=('libtool')
source=("$url/releases/download/$pkgver/$_pkgname-$pkgver.tar.bz2"
'consolekit.tmpfiles.conf'
- '75-consolekit.rules'
- 'consolekit.logrotate'
- '01-org.freedesktop.ModemManager1.rules'
- '01-org.freedesktop.NetworkManager.settings.modify.system.rules')
-sha256sums=('102aa07e0960e56740e235bba06a546c8e0e88f47546ef252ecda917935af41f'
+ '25-consolekit.rules'
+ 'consolekit.pamd')
+sha256sums=('b3e9554472f1a431576c317536d93ba1ef292916ea8447667deee0b555980e2e'
'778552dc12b3c235bde200e476d4262da0c135f3f6f8b3e975a87881d1f154d1'
'c5159d9fe8fdd52ad0d6a84af7ba00bac09edaae965896ab0d099a4df1c5ea6b'
- '79735ddd37b8ce6216c78542c2a4e32692dce757c86ecd5771ea8a895a1e8e4d'
- 'b8c47eb6de2ffbcd533514ecbc660842e072d8ba2bbe601608038ef6bc18dd17'
- '3d0b6f30de1c91a95429af4fed99e41c8e8db55b45b2f3a17974c5be36c16475')
+ 'f7b88e87f447e2d37c12886f57d932c385f19a8fef238e0f1de7a1746d8be69e')
+
+prepare(){
+ cd $srcdir/$_pkgname-$pkgver
+}
build(){
- cd "$srcdir/$_pkgname-$pkgver"
+ cd $srcdir/$_pkgname-$pkgver
+
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--sbindir=/usr/bin \
+ --with-rundir=/run \
--libexecdir=/usr/lib/ConsoleKit \
--localstatedir=/var \
--enable-polkit \
@@ -41,7 +43,6 @@ build(){
--enable-udev-acl \
--enable-docbook-docs \
--with-dbus-services=/usr/share/dbus-1/services \
- --with-logrotate-dir=/etc/logrotate.d \
--with-xinitrc-dir=/etc/X11/xinit/xinitrc.d \
--with-pam-module-dir=/usr/lib/security \
--without-systemdsystemunitdir
@@ -50,22 +51,16 @@ build(){
}
package() {
- cd "$srcdir/$_pkgname-$pkgver"
+ cd $srcdir/$_pkgname-$pkgver
make DESTDIR="$pkgdir" install
- #install -D -m644 data/consolekit.logrotate "$pkgdir"/etc/logrotate.d/consolekit
- install -D -m644 "$srcdir"/consolekit.logrotate "$pkgdir"/etc/logrotate.d/consolekit
- install -D -m644 data/90-consolekit "$pkgdir"/etc/X11/xinit/xinitrc.d/90-consolekit.sh
- chmod +x "$pkgdir"/etc/X11/xinit/xinitrc.d/90-consolekit.sh
-
- install -D -m644 "$srcdir"/consolekit.tmpfiles.conf "$pkgdir"/usr/lib/tmpfiles.d/consolekit.conf
+ install -Dm644 "$srcdir"/consolekit.tmpfiles.conf "$pkgdir"/usr/lib/tmpfiles.d/consolekit.conf
- rm -rf "${pkgdir}"/var/run
+ rm -rf "${pkgdir}"/run
- install -d -m700 $pkgdir/etc/polkit-1/rules.d/
- install -D -m644 ${srcdir}/75-consolekit.rules $pkgdir/etc/polkit-1/rules.d/25-consolekit.rules
- install -D -m644 ${srcdir}/01-org.freedesktop.ModemManager1.rules $pkgdir/etc/polkit-1/rules.d/
- install -D -m644 ${srcdir}/01-org.freedesktop.NetworkManager.settings.modify.system.rules $pkgdir/etc/polkit-1/rules.d/
+ install -dm 700 -o polkitd "${pkgdir}"/usr/share/polkit-1/rules.d
+ install -m 644 ${srcdir}/25-consolekit.rules $pkgdir/usr/share/polkit-1/rules.d/75-consolekit.rules
- chown 102 $pkgdir/etc/polkit-1/rules.d
+ install -dm755 $pkgdir/etc/pam.d/
+ install -Dm755 ${srcdir}/consolekit.pamd $pkgdir/etc/pam.d/consolekit
}
diff --git a/pcr/consolekit/consolekit.logrotate b/pcr/consolekit/consolekit.logrotate
deleted file mode 100644
index 7c5346ef8..000000000
--- a/pcr/consolekit/consolekit.logrotate
+++ /dev/null
@@ -1,5 +0,0 @@
-/var/log/ConsoleKit/history {
- missingok
- notifempty
- delaycompress
-}
diff --git a/pcr/consolekit/consolekit.pamd b/pcr/consolekit/consolekit.pamd
new file mode 100644
index 000000000..7d8f614c4
--- /dev/null
+++ b/pcr/consolekit/consolekit.pamd
@@ -0,0 +1,11 @@
+#%PAM-1.0
+
+auth include system-login
+
+account include system-login
+
+session include system-login
+
+password include system-login
+
+session optional pam_ck_connector.so nox11
diff --git a/pcr/dolphin-emu-git/PKGBUILD b/pcr/dolphin-emu-git/PKGBUILD
index 94880d368..6357cbc2c 100644
--- a/pcr/dolphin-emu-git/PKGBUILD
+++ b/pcr/dolphin-emu-git/PKGBUILD
@@ -3,7 +3,7 @@
pkgbase=dolphin-emu-git
pkgname=('dolphin-emu-git' 'dolphin-emu-cli-git' 'dolphin-emu-qt-git')
-pkgver=4.0.2.r7202.d2413cd
+pkgver=4.0.2.r7463.d373dd3
pkgrel=1
pkgdesc='A GameCube / Wii / Triforce emulator'
arch=('x86_64')
diff --git a/pcr/laptop-mode-tools/PKGBUILD b/pcr/laptop-mode-tools/PKGBUILD
index 39522fcd4..ab6567d6c 100644
--- a/pcr/laptop-mode-tools/PKGBUILD
+++ b/pcr/laptop-mode-tools/PKGBUILD
@@ -5,14 +5,14 @@
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
pkgname=laptop-mode-tools
-pkgver=1.67
+pkgver=1.68
pkgrel=1
_pkgrel=1
pkgdesc='Power Savings tool for Linux'
arch=('any')
url='https://github.com/rickysarraf/laptop-mode-tools'
source=(${pkgname}-${pkgver}-${_pkgrel}.tar.gz::https://github.com/rickysarraf/laptop-mode-tools/archive/debian/${pkgver}-${_pkgrel}.tar.gz)
-sha256sums=('9481c741ef0027479f218752230c2bb9b12edd54d6f43fafa10b72d37df17ebd')
+sha256sums=('c21b43fb9cd3d6c4d7f75fe3b720f25369bceb938ebd9073f4dbcd43ef93738a')
license=('GPL2')
depends=('bash')
optdepends=('acpid: ACPI support'
diff --git a/pcr/networkmanager-consolekit/NetworkManager.conf b/pcr/networkmanager-consolekit/NetworkManager.conf
index e01e3c52f..668229628 100644
--- a/pcr/networkmanager-consolekit/NetworkManager.conf
+++ b/pcr/networkmanager-consolekit/NetworkManager.conf
@@ -1,5 +1,7 @@
[main]
plugins=keyfile
+dhcp=dhclient
+dns=default
## Set static hostname
#[keyfile]
@@ -8,3 +10,4 @@ plugins=keyfile
## HTTP-based connectivity check
#[connectivity]
#uri=http://nmcheck.gnome.org/check_network_status.txt
+#interval=100
diff --git a/pcr/networkmanager-consolekit/PKGBUILD b/pcr/networkmanager-consolekit/PKGBUILD
index 423bc1b87..6033cee6a 100644
--- a/pcr/networkmanager-consolekit/PKGBUILD
+++ b/pcr/networkmanager-consolekit/PKGBUILD
@@ -1,28 +1,27 @@
-# Maintainer : freaj <freaj@riseup.net>
-# Maintainer (Manjaro): artoo <artoo@manjaro.org>
-# Contributor (Manjaro): Alexey D. <lq07829icatm@rambler.ru>
-# Contributor (Manjaro): DaZ <daz.root+arch@gmail.coM>
-# Contributor (Manjaro): Lukas Jirkovsky <l.jirkovsky@gmail.com>
-# Contributor (Manjaro): Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
-# Contributor (Manjaro): Jan de Groot <jgc@archlinxu.org>
-# Contributor (Manjaro): Wael Nasreddine <gandalf@siemens-mobiles.org>
-# Contributor (Manjaro): Tor Krill <tor@krill.nu>
-# Contributor (Manjaro): Will Rea <sillywilly@gmail.com>
-# Contributor (Manjaro): Valentine Sinitsyn <e_val@inbox.ru>
+# Maintainer (Arch): Alexey D. <lq07829icatm@rambler.ru>
+# Contributor (Arch): DaZ <daz.root+arch@gmail.coM>
+# Contributor (Arch): Lukas Jirkovsky <l.jirkovsky@gmail.com>
+# Contributor (Arch): Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
+# Contributor (Arch): Jan de Groot <jgc@archlinxu.org>
+# Contributor (Arch): Wael Nasreddine <gandalf@siemens-mobiles.org>
+# Contributor (Arch): Tor Krill <tor@krill.nu>
+# Contributor (Arch): Will Rea <sillywilly@gmail.com>
+# Contributor (Arch): Valentine Sinitsyn <e_val@inbox.ru>
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
pkgname=networkmanager-consolekit
_pkgname=NetworkManager
-pkgver=1.0.0
-pkgrel=3
+pkgver=1.0.6
+pkgrel=1
_pppver=2.4.7
pkgdesc="NetworkManager with ConsoleKit support for non-systemd systems"
arch=('i686' 'x86_64')
license=('GPL' 'LGPL2.1')
url="http://www.gnome.org/projects/$_pkgname/"
depends=("libnm-glib>=${pkgver}" 'iproute2' 'libnl' 'polkit-consolekit' 'consolekit'
- 'wpa_supplicant' 'dhcp-client' 'libsoup' 'libmm-glib' 'libnewt' 'libndp'
- 'libteam')
-makedepends=('intltool' 'dhcpcd' 'iptables' 'gobject-introspection' 'gtk-doc' 'git'
+ 'wpa_supplicant' 'dhclient' 'libsoup' 'libmm-glib' 'libnewt' 'libndp'
+ 'libteam' 'libgudev')
+makedepends=('intltool' 'iptables' 'gobject-introspection' 'gtk-doc'
"ppp=$_pppver" 'modemmanager' 'rp-pppoe' 'vala')
optdepends=('modemmanager: for modem management service'
'dhcpcd: alternative DHCP client; does not support DHCPv6'
@@ -32,14 +31,19 @@ optdepends=('modemmanager: for modem management service'
'openresolv: resolvconf support'
'ppp: dialup connection support')
provides=("networkmanager=$pkgver")
-# replaces=('networkmanager')
+replaces=('networkmanager')
conflicts=('networkmanager')
backup=('etc/NetworkManager/NetworkManager.conf')
install=networkmanager.install
-source=("http://ftp.gnome.org/pub/gnome/sources/$_pkgname/${pkgver:0:3}/$_pkgname-$pkgver.tar.xz"
- 'disable_set_hostname.patch'
- 'NetworkManager.conf')
-
+source=(http://ftp.gnome.org/pub/gnome/sources/$_pkgname/${pkgver:0:3}/$_pkgname-$pkgver.tar.xz
+ NetworkManager.conf
+ disable_set_hostname.patch
+ networkmanager.rc
+ )
+sha256sums=('38ea002403e3b884ffa9aae25aea431d2a8420f81f4919761c83fb92648254bd'
+ '2c6a647b5aec9f3c356d5d95251976a21297c6e64bd8d2a59339f8450a86cb3b'
+ '25056837ea92e559f09563ed817e3e0cd9333be861b8914e45f62ceaae2e0460'
+ 'e39a2a0401518abd1d1d060200e2ca0f0854cdc49a5cb286919be177a7cd90fc')
prepare() {
cd $_pkgname-$pkgver
@@ -52,14 +56,15 @@ build() {
cd $_pkgname-$pkgver
AUTOPOINT="intltoolize -f -c --automake" autoreconf -fi
- ./configure --prefix=/usr \
+ ./configure \
+ --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--sbindir=/usr/bin \
--libexecdir=/usr/lib/networkmanager \
--with-crypto=nss \
--with-dhclient=/usr/bin/dhclient \
- --with-dhcpcd=/usr/bin/dhcpcd \
+ --without-dhcpcd \
--with-dnsmasq=/usr/bin/dnsmasq \
--with-iptables=/usr/bin/iptables \
--with-systemdsystemunitdir=/usr/lib/systemd/system \
@@ -67,10 +72,8 @@ build() {
--with-resolvconf=/usr/bin/resolvconf \
--with-pppd=/usr/bin/pppd \
--with-pppd-plugin-dir=/usr/lib/pppd/$_pppver \
- --with-pppoe=/usr/bin/pppoe \
--with-kernel-firmware-dir=/usr/lib/firmware \
--with-session-tracking=ck \
- --with-modem-manager-1 \
--disable-static \
--enable-more-warnings=no \
--disable-wimax \
@@ -83,18 +86,17 @@ build() {
package() {
cd $_pkgname-$pkgver
make DESTDIR="${pkgdir}" install
+
make DESTDIR="$pkgdir" -C libnm uninstall
make DESTDIR="$pkgdir" -C libnm-glib uninstall
make DESTDIR="$pkgdir" -C libnm-util uninstall
make DESTDIR="$pkgdir" -C vapi uninstall
- install -m644 $srcdir/NetworkManager.conf "$pkgdir/etc/NetworkManager/"
-
rm -rf "$pkgdir/usr/include"
rm -rf "$pkgdir/usr/lib/pkgconfig"
+ install -D -m644 "${srcdir}/NetworkManager.conf" "${pkgdir}/etc/NetworkManager/NetworkManager.conf"
+ install -D -m755 "${srcdir}/networkmanager.rc" "${pkgdir}/etc/rc.d/networkmanager"
+
rm -r "${pkgdir}/var/run"
}
-sha256sums=('3a66afec670c975edd9832e620b725a5f16ed267a1b9e1b2d51ef27250d85947'
- '25056837ea92e559f09563ed817e3e0cd9333be861b8914e45f62ceaae2e0460'
- '759db295ddae7a6dc6b29211fc0ec08695f875584d456dd146d3679e2c33e2e3')
diff --git a/pcr/networkmanager-consolekit/dnsmasq-path.patch b/pcr/networkmanager-consolekit/dnsmasq-path.patch
new file mode 100644
index 000000000..c0e713266
--- /dev/null
+++ b/pcr/networkmanager-consolekit/dnsmasq-path.patch
@@ -0,0 +1,30 @@
+diff -u -r NetworkManager-0.9.2.0/src/dns-manager/nm-dns-dnsmasq.c NetworkManager-0.9.2.0-dnsmasq/src/dns-manager/nm-dns-dnsmasq.c
+--- NetworkManager-0.9.2.0/src/dns-manager/nm-dns-dnsmasq.c 2011-10-10 23:38:20.000000000 +0200
++++ NetworkManager-0.9.2.0-dnsmasq/src/dns-manager/nm-dns-dnsmasq.c 2012-03-06 09:07:24.137460927 +0100
+@@ -52,8 +52,11 @@
+ find_dnsmasq (void)
+ {
+ static const char *paths[] = {
++ "/usr/local/bin/dnsmasq",
+ "/usr/local/sbin/dnsmasq",
++ "/usr/bin/dnsmasq",
+ "/usr/sbin/dnsmasq",
++ "/bin/dnsmasq",
+ "/sbin/dnsmasq",
+ NULL
+ };
+diff -u -r NetworkManager-0.9.2.0/src/dnsmasq-manager/nm-dnsmasq-manager.c NetworkManager-0.9.2.0-dnsmasq/src/dnsmasq-manager/nm-dnsmasq-manager.c
+--- NetworkManager-0.9.2.0/src/dnsmasq-manager/nm-dnsmasq-manager.c 2011-04-19 07:06:22.000000000 +0200
++++ NetworkManager-0.9.2.0-dnsmasq/src/dnsmasq-manager/nm-dnsmasq-manager.c 2012-03-06 09:07:58.603851818 +0100
+@@ -170,8 +170,11 @@
+ nm_find_dnsmasq (void)
+ {
+ static const char *dnsmasq_binary_paths[] = {
++ "/usr/local/bin/dnsmasq",
+ "/usr/local/sbin/dnsmasq",
++ "/usr/bin/dnsmasq",
+ "/usr/sbin/dnsmasq",
++ "/bin/dnsmasq",
+ "/sbin/dnsmasq",
+ NULL
+ };
diff --git a/pcr/networkmanager-consolekit/git-fixes.patch b/pcr/networkmanager-consolekit/git-fixes.patch
new file mode 100644
index 000000000..939d0b1e0
--- /dev/null
+++ b/pcr/networkmanager-consolekit/git-fixes.patch
@@ -0,0 +1,265 @@
+diff --git a/configure.ac b/configure.ac
+index 94b0758..e61657d 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -4,7 +4,7 @@ dnl The NM version number
+ m4_define([nm_major_version], [0])
+ m4_define([nm_minor_version], [9])
+ m4_define([nm_micro_version], [10])
+-m4_define([nm_nano_version], [0])
++m4_define([nm_nano_version], [1])
+ m4_define([nm_version],
+ [nm_major_version.nm_minor_version.nm_micro_version.nm_nano_version])
+ m4_define([nm_git_sha], [m4_esyscmd([ ( [ -d ./.git/ ] && [ "$(readlink -f ./.git/)" = "$(readlink -f "$(git rev-parse --git-dir 2>/dev/null)" 2>/dev/null)" ] && git rev-parse --verify -q HEAD 2>/dev/null ) || true ])])
+diff --git a/src/devices/nm-device-team.c b/src/devices/nm-device-team.c
+index f3b25e3..51778c1 100644
+--- a/src/devices/nm-device-team.c
++++ b/src/devices/nm-device-team.c
+@@ -51,7 +51,7 @@ G_DEFINE_TYPE (NMDeviceTeam, nm_device_team, NM_TYPE_DEVICE)
+
+ #define NM_DEVICE_TEAM_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), NM_TYPE_DEVICE_TEAM, NMDeviceTeamPrivate))
+
+-#define NM_TEAM_ERROR (nm_team_error_quark ())
++#define NM_DEVICE_TEAM_ERROR (nm_device_team_error_quark ())
+
+ static gboolean teamd_start (NMDevice *dev, NMSettingTeam *s_team);
+
+@@ -75,7 +75,7 @@ enum {
+ /******************************************************************/
+
+ static GQuark
+-nm_team_error_quark (void)
++nm_device_team_error_quark (void)
+ {
+ static GQuark quark = 0;
+ if (!quark)
+@@ -890,5 +890,5 @@ nm_device_team_class_init (NMDeviceTeamClass *klass)
+ G_TYPE_FROM_CLASS (klass),
+ &dbus_glib_nm_device_team_object_info);
+
+- dbus_g_error_domain_register (NM_TEAM_ERROR, NULL, NM_TYPE_TEAM_ERROR);
++ dbus_g_error_domain_register (NM_DEVICE_TEAM_ERROR, NULL, NM_TYPE_TEAM_ERROR);
+ }
+diff --git a/src/devices/nm-device-team.h b/src/devices/nm-device-team.h
+index fe1275c..32bc5fd 100644
+--- a/src/devices/nm-device-team.h
++++ b/src/devices/nm-device-team.h
+@@ -35,9 +35,9 @@ G_BEGIN_DECLS
+ #define NM_DEVICE_TEAM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_DEVICE_TEAM, NMDeviceTeamClass))
+
+ typedef enum {
+- NM_TEAM_ERROR_CONNECTION_NOT_TEAM = 0, /*< nick=ConnectionNotTeam >*/
+- NM_TEAM_ERROR_CONNECTION_INVALID, /*< nick=ConnectionInvalid >*/
+- NM_TEAM_ERROR_CONNECTION_INCOMPATIBLE, /*< nick=ConnectionIncompatible >*/
++ NM_DEVICE_TEAM_ERROR_CONNECTION_NOT_TEAM = 0, /*< nick=ConnectionNotTeam >*/
++ NM_DEVICE_TEAM_ERROR_CONNECTION_INVALID, /*< nick=ConnectionInvalid >*/
++ NM_DEVICE_TEAM_ERROR_CONNECTION_INCOMPATIBLE, /*< nick=ConnectionIncompatible >*/
+ } NMTeamError;
+
+ #define NM_DEVICE_TEAM_SLAVES "slaves"
+diff --git a/src/dhcp-manager/nm-dhcp-dhclient-utils.c b/src/dhcp-manager/nm-dhcp-dhclient-utils.c
+index 8527e6c..bc9de12 100644
+--- a/src/dhcp-manager/nm-dhcp-dhclient-utils.c
++++ b/src/dhcp-manager/nm-dhcp-dhclient-utils.c
+@@ -225,7 +225,6 @@ nm_dhcp_dhclient_create_config (const char *interface,
+ add_also_request (alsoreq, "dhcp6.name-servers");
+ add_also_request (alsoreq, "dhcp6.domain-search");
+ add_also_request (alsoreq, "dhcp6.client-id");
+- add_also_request (alsoreq, "dhcp6.server-id");
+ } else {
+ add_ip4_config (new_contents, dhcp_client_id, hostname);
+ add_also_request (alsoreq, "rfc3442-classless-static-routes");
+diff --git a/src/nm-manager.c b/src/nm-manager.c
+index 09a1985..0cf78e3 100644
+--- a/src/nm-manager.c
++++ b/src/nm-manager.c
+@@ -1879,42 +1879,116 @@ factory_component_added_cb (NMDeviceFactory *factory,
+ #define PLUGIN_PATH_TAG "NMManager-plugin-path"
+ #define PLUGIN_TYPEFUNC_TAG "typefunc"
+
+-static void
+-load_device_factories (NMManager *self)
++struct read_device_factory_paths_data {
++ char *path;
++ struct stat st;
++};
++
++static gint
++read_device_factory_paths_sort_fcn (gconstpointer a, gconstpointer b)
++{
++ const struct read_device_factory_paths_data *da = a;
++ const struct read_device_factory_paths_data *db = b;
++ time_t ta, tb;
++
++ ta = MAX (da->st.st_mtime, da->st.st_ctime);
++ tb = MAX (db->st.st_mtime, db->st.st_ctime);
++
++ if (ta < tb)
++ return 1;
++ if (ta > tb)
++ return -1;
++ return 0;
++}
++
++static char**
++read_device_factory_paths ()
+ {
+- NMManagerPrivate *priv = NM_MANAGER_GET_PRIVATE (self);
+ GDir *dir;
+ GError *error = NULL;
+ const char *item;
+- char *path;
+- GSList *iter;
++ GArray *paths;
++ char **result;
++ guint i;
+
+ dir = g_dir_open (NMPLUGINDIR, 0, &error);
+ if (!dir) {
+- nm_log_warn (LOGD_HW, "Failed to open plugin directory %s: %s",
++ nm_log_warn (LOGD_HW, "device plugin: failed to open directory %s: %s",
+ NMPLUGINDIR,
+ (error && error->message) ? error->message : "(unknown)");
+ g_clear_error (&error);
+- return;
++ return NULL;
+ }
+
++ paths = g_array_new (FALSE, FALSE, sizeof (struct read_device_factory_paths_data));
++
+ while ((item = g_dir_read_name (dir))) {
+- GModule *plugin;
+- NMDeviceFactory *factory;
+- NMDeviceFactoryCreateFunc create_func;
+- NMDeviceFactoryDeviceTypeFunc type_func;
+- NMDeviceType dev_type;
+- const char *found = NULL;
++ struct read_device_factory_paths_data data;
+
+ if (!g_str_has_prefix (item, PLUGIN_PREFIX))
+ continue;
+ if (g_str_has_suffix (item, ".la"))
+ continue;
+
+- path = g_module_build_path (NMPLUGINDIR, item);
+- g_assert (path);
+- plugin = g_module_open (path, G_MODULE_BIND_LOCAL);
+- g_free (path);
++ data.path = g_build_filename (NMPLUGINDIR, item, NULL);
++
++ if (stat (data.path, &data.st) != 0)
++ goto continue_with_error;
++ if (!S_ISREG (data.st.st_mode))
++ goto continue_silently;
++ if (data.st.st_uid != 0)
++ goto continue_with_error;
++ if (data.st.st_mode & (S_IWGRP | S_IWOTH | S_ISUID))
++ goto continue_with_error;
++
++ g_array_append_val (paths, data);
++ continue;
++
++continue_with_error:
++ nm_log_dbg (LOGD_HW, "device plugin: skip invalid file %s", data.path);
++continue_silently:
++ g_free (data.path);
++ }
++ g_dir_close (dir);
++
++ /* sort filenames by modification time. */
++ g_array_sort (paths, read_device_factory_paths_sort_fcn);
++
++ result = g_new (char *, paths->len + 1);
++ for (i = 0; i < paths->len; i++)
++ result[i] = g_array_index (paths, struct read_device_factory_paths_data, i).path;
++ result[i] = NULL;
++
++ g_array_free (paths, TRUE);
++ return result;
++}
++
++static void
++load_device_factories (NMManager *self)
++{
++ NMManagerPrivate *priv = NM_MANAGER_GET_PRIVATE (self);
++ char **path;
++ char **paths;
++
++ paths = read_device_factory_paths ();
++ if (!paths)
++ return;
++
++ for (path = paths; *path; path++) {
++ GError *error = NULL;
++ GModule *plugin;
++ NMDeviceFactory *factory;
++ NMDeviceFactoryCreateFunc create_func;
++ NMDeviceFactoryDeviceTypeFunc type_func;
++ NMDeviceType dev_type;
++ const char *found = NULL;
++ GSList *iter;
++ const char *item;
++
++ item = strrchr (*path, '/');
++ g_assert (item);
++
++ plugin = g_module_open (*path, G_MODULE_BIND_LOCAL);
+
+ if (!plugin) {
+ nm_log_warn (LOGD_HW, "(%s): failed to load plugin: %s", item, g_module_error ());
+@@ -1939,7 +2013,7 @@ load_device_factories (NMManager *self)
+ }
+ }
+ if (found) {
+- nm_log_warn (LOGD_HW, "Found multiple device plugins for same type: %s vs %s",
++ nm_log_warn (LOGD_HW, "Found multiple device plugins for same type: use '%s' instead of '%s'",
+ found, g_module_name (plugin));
+ g_module_close (plugin);
+ continue;
+@@ -1978,7 +2052,7 @@ load_device_factories (NMManager *self)
+
+ nm_log_info (LOGD_HW, "Loaded device plugin: %s", g_module_name (plugin));
+ };
+- g_dir_close (dir);
++ g_strfreev (paths);
+
+ priv->factories = g_slist_reverse (priv->factories);
+ }
+diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c
+index f73ff32..7b11a6b 100644
+--- a/src/platform/nm-linux-platform.c
++++ b/src/platform/nm-linux-platform.c
+@@ -1584,7 +1584,9 @@ announce_object (NMPlatform *platform, const struct nl_object *object, NMPlatfor
+ */
+ switch (change_type) {
+ case NM_PLATFORM_SIGNAL_REMOVED:
+- check_cache_items (platform, priv->route_cache, address.ifindex);
++ check_cache_items (platform,
++ priv->route_cache,
++ rtnl_addr_get_ifindex ((struct rtnl_addr *) object));
+ break;
+ default:
+ break;
+@@ -3500,7 +3502,8 @@ _route_match (struct rtnl_route *rtnlroute, int family, int ifindex)
+ rtnl_route_get_table (rtnlroute) != RT_TABLE_MAIN ||
+ rtnl_route_get_protocol (rtnlroute) == RTPROT_KERNEL ||
+ rtnl_route_get_family (rtnlroute) != family ||
+- rtnl_route_get_nnexthops (rtnlroute) != 1)
++ rtnl_route_get_nnexthops (rtnlroute) != 1 ||
++ rtnl_route_get_flags (rtnlroute) & RTM_F_CLONED)
+ return FALSE;
+
+ nexthop = rtnl_route_nexthop_n (rtnlroute, 0);
+diff --git a/vapi/NMClient-1.0.metadata b/vapi/NMClient-1.0.metadata
+index 12f1469..2d894d8 100644
+--- a/vapi/NMClient-1.0.metadata
++++ b/vapi/NMClient-1.0.metadata
+@@ -1,6 +1,6 @@
+-RemoteSettings.new_async skip
++RemoteSettings.new_finish symbol_type="function"
+ RemoteConnection.updated#virtual_method skip
+-Client.new_async skip
++Client.new_finish symbol_type="function"
+
+ ACTIVE_CONNECTION_* cheader_filename="nm-active-connection.h" name="ACTIVE_CONNECTION_(.+)" parent="NM.ActiveConnection"
+ CLIENT_* cheader_filename="nm-client.h" name="CLIENT_(.+)" parent="NM.Client"
diff --git a/pcr/networkmanager-consolekit/networkmanager.install b/pcr/networkmanager-consolekit/networkmanager.install
index de40c17ed..f9da4feb1 100644
--- a/pcr/networkmanager-consolekit/networkmanager.install
+++ b/pcr/networkmanager-consolekit/networkmanager.install
@@ -1,5 +1,5 @@
post_upgrade() {
- (( $(vercmp 0.8.3 $2) > 0 )) && cat <<MSG
+ (( $(vercmp $2 0.8.3) < 0 )) && cat <<MSG
ATTENTION:
/etc/NetworkManager/nm-system-settings.conf has been replaced
by /etc/NetworkManager/NetworkManager.conf. Make sure you move
diff --git a/pcr/networkmanager-consolekit/networkmanager.rc b/pcr/networkmanager-consolekit/networkmanager.rc
new file mode 100644
index 000000000..1e803e87b
--- /dev/null
+++ b/pcr/networkmanager-consolekit/networkmanager.rc
@@ -0,0 +1,60 @@
+#!/bin/bash
+
+NETWORKMANAGER_BIN=/usr/bin/NetworkManager
+
+# general config
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+PID=`pidof -o %PPID $NETWORKMANAGER_BIN`
+case "$1" in
+ start)
+ ck_daemon dbus && /etc/rc.d/dbus start
+
+ stat_busy "Starting NetworkManager"
+ [ ! -d /var/run/NetworkManager ] && install -d /var/run/NetworkManager
+ if [ -z "$PID" ]; then
+ $NETWORKMANAGER_BIN
+ fi
+ if [ ! -z "$PID" -o $? -gt 0 ]; then
+ stat_fail
+ else
+ add_daemon networkmanager
+ stat_done
+ fi
+ ;;
+ stop)
+ stat_busy "Stopping NetworkManager"
+ [ ! -z "$PID" ] && kill $PID &> /dev/null
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ rm_daemon networkmanager
+ stat_done
+ fi
+ ;;
+ restart)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+ sleep)
+ /usr/bin/dbus-send --system \
+ --dest=org.freedesktop.NetworkManager \
+ --type=method_call \
+ /org/freedesktop/NetworkManager \
+ org.freedesktop.NetworkManager.sleep
+ ;;
+ wake)
+ /usr/bin/dbus-send --system \
+ --dest=org.freedesktop.NetworkManager \
+ --type=method_call \
+ /org/freedesktop/NetworkManager \
+ org.freedesktop.NetworkManager.wake
+ ;;
+ *)
+ echo "usage: $0 {start|stop|restart|sleep|wake}"
+ ;;
+esac
+exit 0
+
diff --git a/pcr/openrc-desktop/PKGBUILD b/pcr/openrc-desktop/PKGBUILD
index f7189414e..672f9300e 100644
--- a/pcr/openrc-desktop/PKGBUILD
+++ b/pcr/openrc-desktop/PKGBUILD
@@ -1,202 +1,183 @@
-# Maintainer : freaj <freaj@riseup.net>
-# Maintainer (Manjaro): artoo <artoo@manjaro.org>
-
-# file vars for easy update
-_Cacpi=acpid-2.0.16-conf.d
-_Iacpi=acpid-2.0.16-init.d
-_Calsa=alsasound.confd-r4
-_Ialsa=alsasound.initd-r6
-_Ick=consolekit-0.2.rc
-_Cxdm=xdm.confd-4
-_Ixdm1=xdm.initd-11
-_Ixdm2=xdm-setup.initd-1
-_Sxdm=startDM.sh
-_Cgpm=gpm.conf.d
-_Igpm=gpm.rc6-2
-_Cblue=rfcomm-conf.d
-_Iblue1=rfcomm-init.d-r2
-_Iblue2=bluetooth-init.d-r3
-_Cwpa=wpa_supplicant-conf.d
-_Iwpa=wpa_supplicant-init.d
-_Swpa=wpa_cli.sh
+# Maintainer (Arch): artoo <artoo@manjaro.org>
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
_gentoo_uri="http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86"
pkgbase=openrc-desktop
pkgname=('acpid-openrc'
- 'alsa-utils-openrc'
- 'avahi-openrc'
- 'consolekit-openrc'
- 'displaymanager-openrc'
- 'gpm-openrc'
- 'bluez-openrc'
- 'wpa_supplicant-openrc')
-pkgver=20150325
+ 'alsa-utils-openrc'
+ 'avahi-openrc'
+ 'consolekit-openrc'
+ 'displaymanager-openrc'
+ 'gpm-openrc'
+ 'bluez-openrc'
+ 'wpa_supplicant-openrc')
+pkgver=20150828
pkgrel=1
pkgdesc="OpenRC init scripts"
arch=('any')
url="https://github.com/manjaro/packages-openrc"
license=('GPL2')
-groups=('openrc' 'openrc-desktop')
+groups=('openrc-desktop')
conflicts=('openrc'
- 'openrc-git'
- 'openrc-arch-services-git'
- 'initscripts'
- 'systemd-sysvcompat')
-source=("${_gentoo_uri}/sys-power/acpid/files/${_Cacpi}"
- "${_gentoo_uri}/sys-power/acpid/files/${_Iacpi}"
- "${_gentoo_uri}/media-sound/alsa-utils/files/${_Calsa}"
- "${_gentoo_uri}/media-sound/alsa-utils/files/${_Ialsa}"
- "${_gentoo_uri}/sys-auth/consolekit/files/${_Ick}"
- "${_gentoo_uri}/x11-base/xorg-server/files/${_Cxdm}"
- "${_gentoo_uri}/x11-base/xorg-server/files/${_Ixdm1}"
- "${_gentoo_uri}/x11-base/xorg-server/files/${_Ixdm2}"
- "${_gentoo_uri}/x11-apps/xinit/files/${_Sxdm}"
- "${_gentoo_uri}/sys-libs/gpm/files/${_Cgpm}"
- "${_gentoo_uri}/sys-libs/gpm/files/${_Igpm}"
- 'avahi-daemon'
- 'avahi-dnsconfd'
- "${_gentoo_uri}/net-wireless/bluez/files/${_Cblue}"
- "${_gentoo_uri}/net-wireless/bluez/files/${_Iblue1}"
- "${_gentoo_uri}/net-wireless/bluez/files/${_Iblue2}"
- "${_gentoo_uri}/net-wireless/wpa_supplicant/files/${_Cwpa}"
- "${_gentoo_uri}/net-wireless/wpa_supplicant/files/${_Iwpa}"
- "${_gentoo_uri}/net-wireless/wpa_supplicant/files/${_Swpa}")
+ 'openrc-git'
+ 'openrc-arch-services-git'
+ 'initscripts'
+ 'systemd-sysvcompat')
+source=("acpid.confd::${_gentoo_uri}/sys-power/acpid/files/acpid-2.0.16-conf.d"
+ "acpid.initd::${_gentoo_uri}/sys-power/acpid/files/acpid-2.0.16-init.d"
+ "alsasound.confd::${_gentoo_uri}/media-sound/alsa-utils/files/alsasound.confd-r4"
+ "alsasound.initd::${_gentoo_uri}/media-sound/alsa-utils/files/alsasound.initd-r6"
+ "consolekit.initd::${_gentoo_uri}/sys-auth/consolekit/files/consolekit-0.2.rc"
+ "xdm.confd::${_gentoo_uri}/x11-base/xorg-server/files/xdm.confd-4"
+ "xdm.initd::${_gentoo_uri}/x11-base/xorg-server/files/xdm.initd-11"
+ "xdm-setup.initd::${_gentoo_uri}/x11-base/xorg-server/files/xdm-setup.initd-1"
+ "${_gentoo_uri}/x11-apps/xinit/files/startDM.sh"
+ "gpm.confd::${_gentoo_uri}/sys-libs/gpm/files/gpm.conf.d"
+ "gpm.initd::${_gentoo_uri}/sys-libs/gpm/files/gpm.rc6-2"
+ "rfcomm.confd::${_gentoo_uri}/net-wireless/bluez/files/rfcomm-conf.d"
+ "rfcomm.initd::${_gentoo_uri}/net-wireless/bluez/files/rfcomm-init.d-r2"
+ "bluetooth.initd::${_gentoo_uri}/net-wireless/bluez/files/bluetooth-init.d-r3"
+ "wpa_supplicant.confd::${_gentoo_uri}/net-wireless/wpa_supplicant/files/wpa_supplicant-conf.d"
+ "wpa_supplicant.initd::${_gentoo_uri}/net-wireless/wpa_supplicant/files/wpa_supplicant-init.d"
+ "${_gentoo_uri}/net-wireless/wpa_supplicant/files/wpa_cli.sh"
+ 'avahi-daemon.initd'
+ 'avahi-dnsconfd.initd')
+sha256sums=('3755d4eb8bb64a1304e5defedb949305ac550565da36fe4f94d5f31beee821ba'
+ '980468e6bf96c7677898330cadbcff165b4d15f1197cd544548bd0f8c376983d'
+ 'd1c55400b701a72dcb8bb85e016b5013fa3eb6a2766ffc20dae278d0ee4c1a43'
+ '5fdcb0212bf8a4be74f410534534fdda6dd8d57df0d2a6c4a158464f705fed18'
+ 'da849bae527a7a5c257301a99ac3fb5ec2ded48103ec114552ca7d2a24b12e49'
+ '9d26b72bb28611a60a6b9f942b8d8cfe47b59f926be89af9709b5912668344d8'
+ '86a17c9ba172481318d5fd51c3aadfdcad9e5d52ed7478379723ce1784061930'
+ '942ce5e8d1a0770543b683dcc388bae7619a24eb9741c1cd678ed3df97c01406'
+ 'e7f2d95b3b4b6b5d711f926f8a3b7b0163b4d9e40b40489bcbd1316806e47499'
+ '73e7483fdc4b12ab4225a4cb13bbe7da71b07b9e69b17e3a6a4c63cb5e2287c8'
+ 'e692e7b97efdd79f6e92fbdaed60f7a71bfd23a82c5561b160b88a7aa50c8461'
+ '672498957049fd301f9c9c1dc9fa49430e5e6d3c3f1f3cdce80df3af7d425d08'
+ 'e633ab4690db7d89d8a325bbdff73253cb4e3994c4cc5daa0c81205576bc1d09'
+ 'de7f4a890cf994e1c283251ac5ac6b0aedb29104d708e5e7a77702ac2055dec7'
+ '61ec59007f66ac5bacc0aa095d1f2ccbc977a687038e161a463d1727223d5a90'
+ '62a3655ea88b3dfff5243666a4e90d3f0eef6370a7889affb849e178ba4a82b0'
+ 'a60d145a8874b57a944c6775fdf500d03dd1ce73c24357b00d3de37b14620179'
+ '876788303553fe773e64917f76f0208f5e8adf7b91d4af24aa9d6a68a147d646'
+ 'e128576d72981e402ff106bb481108ab6d5ba941ab1b0f5f53e96a7831fc1d15')
pkgver() {
- date +%Y%m%d
+ date +%Y%m%d
}
-_shebang='s|#!/sbin/runscript|#!/usr/bin/openrc-run|'
-_runpath='s|/var/run|/run|g'
-_binpath='s|/usr/sbin|/usr/bin|g'
+_inst_initd(){
+ install -Dm755 ${srcdir}/$1.initd ${pkgdir}/etc/init.d/$1
-package_acpid-openrc() {
- pkgdesc="OpenRC acpid init script"
- depends=('openrc-core' 'acpid')
- backup=('etc/conf.d/acpid')
- install=acpid.install
+ sed -e 's|#!/sbin/runscript|#!/usr/bin/openrc-run|' \
+ -e 's|/var/run|/run|g' \
+ -e 's|/usr/sbin|/usr/bin|g' \
+ -i ${pkgdir}/etc/init.d/$1
+}
- install -Dm755 "${srcdir}/${_Cacpi}" "${pkgdir}/etc/conf.d/acpid"
- install -Dm755 "${srcdir}/${_Iacpi}" "${pkgdir}/etc/init.d/acpid"
+_inst_confd(){
+ install -Dm755 ${srcdir}/$1.confd ${pkgdir}/etc/conf.d/$1
+}
+
+package_acpid-openrc() {
+ pkgdesc="OpenRC acpid init script"
+ depends=('openrc-core' 'acpid')
+ backup=('etc/conf.d/acpid')
+ install=acpid.install
- sed -e "${_shebang}" -e "${_binpath}" -i "${pkgdir}/etc/init.d/acpid"
+ _inst_confd 'acpid'
+ _inst_initd 'acpid'
}
package_alsa-utils-openrc() {
- pkgdesc="OpenRC alsa-utils init script"
- depends=('openrc-core' 'alsa-utils')
- backup=('etc/conf.d/alsasound')
- install=alsa-utils.install
+ pkgdesc="OpenRC alsa-utils init script"
+ depends=('openrc-core' 'alsa-utils')
+ backup=('etc/conf.d/alsasound')
+ install=alsa-utils.install
- install -Dm755 "${srcdir}/${_Calsa}" "${pkgdir}/etc/conf.d/alsasound"
- install -Dm755 "${srcdir}/${_Ialsa}" "${pkgdir}/etc/init.d/alsasound"
-
- sed -e "${_shebang}" -i "${pkgdir}/etc/init.d/alsasound"
+ _inst_confd 'alsasound'
+ _inst_initd 'alsasound'
}
package_avahi-openrc() {
- pkgdesc="OpenRC avahi init script"
- depends=('avahi' 'dbus-openrc')
- install=avahi.install
+ pkgdesc="OpenRC avahi init script"
+ depends=('avahi' 'dbus-openrc')
+ install=avahi.install
- install -Dm755 "${srcdir}/avahi-daemon" "${pkgdir}/etc/init.d/avahi-daemon"
- install -Dm755 "${srcdir}/avahi-dnsconfd" "${pkgdir}/etc/init.d/avahi-dnsconfd"
+ _inst_initd 'avahi-daemon'
+ _inst_initd 'avahi-dnsconfd'
}
package_consolekit-openrc() {
- pkgdesc="OpenRC consolekit init script"
- depends=('consolekit' 'dbus-openrc')
- install=consolekit.install
-
- install -Dm755 "$srcdir/${_Ick}" "$pkgdir/etc/init.d/consolekit"
+ pkgdesc="OpenRC consolekit init script"
+ depends=('consolekit' 'dbus-openrc')
+ install=consolekit.install
- sed -e "${_shebang}" -e "${_runpath}" -e "${_binpath}" -i "${pkgdir}/etc/init.d/consolekit"
+ _inst_initd 'consolekit'
}
package_displaymanager-openrc() {
- pkgdesc="OpenRC dm init script"
- depends=('openrc-core' 'xorg-server' 'xorg-xinit')
- optdepends=('consolekit-openrc: consolekit initscript'
- 'dbus-openrc: dbus initscript')
- backup=('etc/conf.d/xdm')
- install=displaymanager.install
-
- install -Dm755 "${srcdir}/${_Cxdm}" "${pkgdir}/etc/conf.d/xdm"
- install -Dm755 "${srcdir}/${_Ixdm1}" "${pkgdir}/etc/init.d/xdm"
- install -Dm755 "${srcdir}/${_Ixdm2}" "${pkgdir}/etc/init.d/xdm-setup"
- install -Dm755 "${srcdir}/${_Sxdm}" "${pkgdir}/etc/X11/startDM.sh"
-
- local _p1='s|/etc/profile.env|/etc/profile|g' \
- _p2='s|{ROOTPATH}|{PATH}|g'
- sed -e "${_shebang}" -e "${_binpath}" -e "${_runpath}" -e "${_p1}" -e "${_p2}" -i "${pkgdir}/etc/init.d/xdm"
- sed -e "${_shebang}" -i "${pkgdir}/etc/init.d/xdm-setup"
+ pkgdesc="OpenRC dm init script"
+ depends=('openrc-core' 'xorg-server' 'xorg-xinit')
+ optdepends=('consolekit-openrc: consolekit initscript'
+ 'dbus-openrc: dbus initscript')
+ backup=('etc/conf.d/xdm')
+ install=displaymanager.install
+
+ _inst_confd 'xdm'
+ _inst_initd 'xdm'
+ _inst_initd 'xdm-setup'
+
+ install -Dm755 "${srcdir}/startDM.sh" "${pkgdir}/etc/X11/startDM.sh"
+
+ sed -e 's|/etc/profile.env|/etc/profile|g' \
+ -e 's|{ROOTPATH}|{PATH}|g' \
+ -i "${pkgdir}/etc/init.d/xdm"
}
package_gpm-openrc() {
- pkgdesc="OpenRC gpm init script"
- depends=('openrc-core' 'gpm')
- backup=('etc/conf.d/gpm')
- install=gpm.install
-
- install -Dm755 "${srcdir}/${_Cgpm}" "${pkgdir}/etc/conf.d/gpm"
- install -Dm755 "${srcdir}/${_Igpm}" "${pkgdir}/etc/init.d/gpm"
+ pkgdesc="OpenRC gpm init script"
+ depends=('openrc-core' 'gpm')
+ backup=('etc/conf.d/gpm')
+ install=gpm.install
- sed -e "${_shebang}" -e "${_binpath}" -e "${_runpath}" -i "${pkgdir}/etc/init.d/gpm"
+ _inst_confd 'gpm'
+ _inst_initd 'gpm'
}
package_bluez-openrc() {
- pkgdesc="OpenRC bluez init script"
- groups=('openrc' 'openrc-mobile')
- depends=('bluez' 'dbus-openrc')
- backup=('etc/conf.d/rfcomm')
- install=bluez.install
-
- install -Dm755 "${srcdir}/${_Cblue}" "${pkgdir}/etc/conf.d/rfcomm"
- install -Dm755 "${srcdir}/${_Iblue1}" "${pkgdir}/etc/init.d/rfcomm"
- install -Dm755 "${srcdir}/${_Iblue2}" "${pkgdir}/etc/init.d/bluetooth"
-
- local _p1='s|/usr/sbin|/usr/lib/bluetooth|g' _p2='s/libexec/lib/'
- sed -e "${_shebang}" -e "${_p1}" -e "${_p2}" -i "${pkgdir}/etc/init.d/bluetooth"
- sed -e "${_shebang}" -e "${_binpath}" -i "${pkgdir}/etc/init.d/rfcomm"
+ pkgdesc="OpenRC bluez init script"
+ groups=('openrc-mobile')
+ depends=('bluez' 'dbus-openrc')
+ backup=('etc/conf.d/rfcomm')
+ install=bluez.install
+
+ _inst_confd 'rfcomm'
+ _inst_initd 'rfcomm'
+ _inst_initd 'bluetooth'
+
+ sed -e 's|/usr/sbin|/usr/lib/bluetooth|g' \
+ -e 's/libexec/lib/' \
+ -i "${pkgdir}/etc/init.d/bluetooth"
}
package_wpa_supplicant-openrc() {
- pkgdesc="OpenRC wpa_supplicant init script"
- groups=('openrc' 'openrc-mobile')
- depends=('openrc-core' 'wpa_supplicant')
- backup=('etc/conf.d/wpa_supplicant')
- install=wpa_supplicant.install
-
- install -Dm755 "${srcdir}/${_Cwpa}" "${pkgdir}/etc/conf.d/wpa_supplicant"
- install -Dm755 "${srcdir}/${_Iwpa}" "${pkgdir}/etc/init.d/wpa_supplicant"
- install -Dm755 "${srcdir}/${_Swpa}" "${pkgdir}/etc/wpa_supplicant/wpa_cli.sh"
-
- sed -e "${_shebang}" -e "${_binpath}" -e "${_runpath}" -i "${pkgdir}/etc/init.d/wpa_supplicant"
- if [[ -f /etc/os-release ]];then
- . /etc/os-release
- sed -e "s|gentoo-release|${ID}-release|" -i "${pkgdir}/etc/wpa_supplicant/wpa_cli.sh"
- else
- sed -e 's|gentoo-release|arch-release|' -i "${pkgdir}/etc/wpa_supplicant/wpa_cli.sh"
- fi
+ pkgdesc="OpenRC wpa_supplicant init script"
+ groups=('openrc-mobile')
+ depends=('openrc-core' 'wpa_supplicant')
+ backup=('etc/conf.d/wpa_supplicant')
+ install=wpa_supplicant.install
+
+ _inst_confd 'wpa_supplicant'
+ _inst_initd 'wpa_supplicant'
+
+ install -Dm755 "${srcdir}/wpa_cli.sh" "${pkgdir}/etc/wpa_supplicant/wpa_cli.sh"
+
+ if [[ -f /etc/os-release ]];then
+ . /etc/os-release
+ sed -e "s|gentoo-release|${ID}-release|" -i "${pkgdir}/etc/wpa_supplicant/wpa_cli.sh"
+ else
+ sed -e 's|gentoo-release|arch-release|' -i "${pkgdir}/etc/wpa_supplicant/wpa_cli.sh"
+ fi
}
-
-sha256sums=('3755d4eb8bb64a1304e5defedb949305ac550565da36fe4f94d5f31beee821ba'
- '980468e6bf96c7677898330cadbcff165b4d15f1197cd544548bd0f8c376983d'
- 'd1c55400b701a72dcb8bb85e016b5013fa3eb6a2766ffc20dae278d0ee4c1a43'
- '5fdcb0212bf8a4be74f410534534fdda6dd8d57df0d2a6c4a158464f705fed18'
- 'da849bae527a7a5c257301a99ac3fb5ec2ded48103ec114552ca7d2a24b12e49'
- '9d26b72bb28611a60a6b9f942b8d8cfe47b59f926be89af9709b5912668344d8'
- '86a17c9ba172481318d5fd51c3aadfdcad9e5d52ed7478379723ce1784061930'
- '942ce5e8d1a0770543b683dcc388bae7619a24eb9741c1cd678ed3df97c01406'
- 'e7f2d95b3b4b6b5d711f926f8a3b7b0163b4d9e40b40489bcbd1316806e47499'
- '73e7483fdc4b12ab4225a4cb13bbe7da71b07b9e69b17e3a6a4c63cb5e2287c8'
- 'e692e7b97efdd79f6e92fbdaed60f7a71bfd23a82c5561b160b88a7aa50c8461'
- '876788303553fe773e64917f76f0208f5e8adf7b91d4af24aa9d6a68a147d646'
- 'e128576d72981e402ff106bb481108ab6d5ba941ab1b0f5f53e96a7831fc1d15'
- '672498957049fd301f9c9c1dc9fa49430e5e6d3c3f1f3cdce80df3af7d425d08'
- 'e633ab4690db7d89d8a325bbdff73253cb4e3994c4cc5daa0c81205576bc1d09'
- 'de7f4a890cf994e1c283251ac5ac6b0aedb29104d708e5e7a77702ac2055dec7'
- '61ec59007f66ac5bacc0aa095d1f2ccbc977a687038e161a463d1727223d5a90'
- '62a3655ea88b3dfff5243666a4e90d3f0eef6370a7889affb849e178ba4a82b0'
- 'a60d145a8874b57a944c6775fdf500d03dd1ce73c24357b00d3de37b14620179')
diff --git a/pcr/openrc-desktop/acpid-2.0.16-conf.d b/pcr/openrc-desktop/acpid-2.0.16-conf.d
deleted file mode 100644
index 9aadb4cd8..000000000
--- a/pcr/openrc-desktop/acpid-2.0.16-conf.d
+++ /dev/null
@@ -1,6 +0,0 @@
-# /etc/conf.d/acpid: config file for /etc/init.d/acpid
-
-# Options to pass to the acpid daemon.
-# See the acpid(8) man page for more info.
-
-ACPID_ARGS=""
diff --git a/pcr/openrc-desktop/acpid-2.0.16-init.d b/pcr/openrc-desktop/acpid-2.0.16-init.d
deleted file mode 100644
index 412a265fc..000000000
--- a/pcr/openrc-desktop/acpid-2.0.16-init.d
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/files/acpid-2.0.16-init.d,v 1.1 2012/05/19 09:53:59 ssuominen Exp $
-
-extra_started_commands="reload"
-command="/usr/sbin/acpid"
-command_args="${ACPID_ARGS}"
-start_stop_daemon_args="--quiet"
-description="Daemon for Advanced Configuration and Power Interface"
-
-depend() {
- need localmount
- use logger
-}
-
-reload() {
- ebegin "Reloading acpid configuration"
- start-stop-daemon --exec $command --signal HUP
- eend $?
-}
diff --git a/pcr/openrc-desktop/alsasound.confd-r4 b/pcr/openrc-desktop/alsasound.confd-r4
deleted file mode 100644
index 6fec8f593..000000000
--- a/pcr/openrc-desktop/alsasound.confd-r4
+++ /dev/null
@@ -1,15 +0,0 @@
-# RESTORE_ON_START:
-# Do you want to restore your mixer settings? If not, your cards will be
-# muted.
-# no - Do not restore state
-# yes - Restore state
-
-RESTORE_ON_START="yes"
-
-# SAVE_ON_STOP:
-# Do you want to save changes made to your mixer volumes when alsasound
-# stops?
-# no - Do not save state
-# yes - Save state
-
-SAVE_ON_STOP="yes"
diff --git a/pcr/openrc-desktop/alsasound.initd-r6 b/pcr/openrc-desktop/alsasound.initd-r6
deleted file mode 100644
index 2eddfd308..000000000
--- a/pcr/openrc-desktop/alsasound.initd-r6
+++ /dev/null
@@ -1,88 +0,0 @@
-#!/sbin/runscript
-# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsasound.initd-r6,v 1.1 2014/06/23 21:34:42 ssuominen Exp $
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-alsastatedir=/var/lib/alsa
-alsascrdir=/etc/alsa.d
-alsahomedir=/var/run/alsasound
-
-extra_commands="save restore"
-
-depend() {
- need localmount
- after bootmisc modules isapnp coldplug hotplug
-}
-
-restore() {
- ebegin "Restoring Mixer Levels"
-
- checkpath -q -d -m 0700 -o root:root ${alsahomedir} || return 1
-
- if [ ! -r "${alsastatedir}/asound.state" ] ; then
- ewarn "No mixer config in ${alsastatedir}/asound.state, you have to unmute your card!"
- eend 0
- return 0
- fi
-
- local cards="$(sed -n -e 's/ *\([[:digit:]]*\) .*/\1/p' /proc/asound/cards)"
- local CARDNUM
- for cardnum in ${cards}; do
- [ -e /dev/snd/controlC${cardnum} ] || sleep 2
- [ -e /dev/snd/controlC${cardnum} ] || sleep 2
- [ -e /dev/snd/controlC${cardnum} ] || sleep 2
- [ -e /dev/snd/controlC${cardnum} ] || sleep 2
- alsactl -E HOME="${alsahomedir}" -I -f "${alsastatedir}/asound.state" restore ${cardnum} \
- || ewarn "Errors while restoring defaults, ignoring"
- done
-
- for ossfile in "${alsastatedir}"/oss/card*_pcm* ; do
- [ -e "${ossfile}" ] || continue
- # We use cat because I'm not sure if cp works properly on /proc
- local procfile=${ossfile##${alsastatedir}/oss}
- procfile="$(echo "${procfile}" | sed -e 's,_,/,g')"
- if [ -e /proc/asound/"${procfile}"/oss ] ; then
- cat "${ossfile}" > /proc/asound/"${procfile}"/oss
- fi
- done
-
- eend 0
-}
-
-save() {
- ebegin "Storing ALSA Mixer Levels"
-
- checkpath -q -d -m 0700 -o root:root ${alsahomedir} || return 1
-
- mkdir -p "${alsastatedir}"
- if ! alsactl -E HOME="${alsahomedir}" -f "${alsastatedir}/asound.state" store; then
- eerror "Error saving levels."
- eend 1
- return 1
- fi
-
- for ossfile in /proc/asound/card*/pcm*/oss; do
- [ -e "${ossfile}" ] || continue
- local device=${ossfile##/proc/asound/} ; device=${device%%/oss}
- device="$(echo "${device}" | sed -e 's,/,_,g')"
- mkdir -p "${alsastatedir}/oss/"
- cp "${ossfile}" "${alsastatedir}/oss/${device}"
- done
-
- eend 0
-}
-
-start() {
- if [ "${RESTORE_ON_START}" = "yes" ]; then
- restore
- fi
-
- return 0
-}
-
-stop() {
- if [ "${SAVE_ON_STOP}" = "yes" ]; then
- save
- fi
- return 0
-}
diff --git a/pcr/openrc-desktop/avahi-daemon b/pcr/openrc-desktop/avahi-daemon.initd
index 3db552903..3db552903 100644
--- a/pcr/openrc-desktop/avahi-daemon
+++ b/pcr/openrc-desktop/avahi-daemon.initd
diff --git a/pcr/openrc-desktop/avahi-dnsconfd b/pcr/openrc-desktop/avahi-dnsconfd.initd
index 1389a2889..1389a2889 100644
--- a/pcr/openrc-desktop/avahi-dnsconfd
+++ b/pcr/openrc-desktop/avahi-dnsconfd.initd
diff --git a/pcr/openrc-desktop/bluetooth-init.d-r3 b/pcr/openrc-desktop/bluetooth-init.d-r3
deleted file mode 100644
index f97fdb2c7..000000000
--- a/pcr/openrc-desktop/bluetooth-init.d-r3
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/files/bluetooth-init.d-r3,v 1.2 2014/01/09 13:24:42 joker Exp $
-
-depend() {
- after coldplug
- need dbus localmount hostname
-}
-
-start() {
- ebegin "Starting ${SVCNAME}"
- start-stop-daemon --start --background --exec /usr/libexec/bluetooth/bluetoothd
- eend $?
-}
-
-stop() {
- ebegin "Shutting down ${SVCNAME}"
- start-stop-daemon --stop --quiet --exec /usr/libexec/bluetooth/bluetoothd
- eend $?
-}
diff --git a/pcr/openrc-desktop/consolekit-0.2.rc b/pcr/openrc-desktop/consolekit-0.2.rc
deleted file mode 100644
index b20226767..000000000
--- a/pcr/openrc-desktop/consolekit-0.2.rc
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/sys-auth/consolekit/files/consolekit-0.2.rc,v 1.1 2011/10/20 19:14:47 axs Exp $
-
-depend() {
- need dbus
- use logger
-}
-
-start() {
- ebegin "Starting ConsoleKit daemon"
-
- checkpath -q -d -m 0755 /var/run/ConsoleKit
-
- start-stop-daemon --start -q \
- --pidfile /var/run/ConsoleKit/pid \
- --exec /usr/sbin/console-kit-daemon --
- eend $?
-}
-
-stop() {
- ebegin "Stopping ConsoleKit daemon"
- start-stop-daemon --stop -q --pidfile /var/run/ConsoleKit/pid
- eend $?
-}
diff --git a/pcr/openrc-desktop/gpm.conf.d b/pcr/openrc-desktop/gpm.conf.d
deleted file mode 100644
index f21c25755..000000000
--- a/pcr/openrc-desktop/gpm.conf.d
+++ /dev/null
@@ -1,23 +0,0 @@
-# /etc/init.d/gpm
-
-# Please uncomment the type of mouse you have and the appropriate MOUSEDEV entry
-
-MOUSE=ps2
-#MOUSE=imps2
-#MOUSEDEV=/dev/psaux
-MOUSEDEV=/dev/input/mice
-
-# Extra settings
-
-#RESPONSIVENESS=
-#REPEAT_TYPE=raw
-
-# Please uncomment this line if you want gpm to understand charsets used
-# in URLs and names with ~ or : in them, etc. This is a good idea to turn on!
-
-#APPEND="-l \"a-zA-Z0-9_.:~/\300-\326\330-\366\370-\377\""
-
-# Various other options, see gpm(8) manpage for more.
-
-#APPEND="-g 1 -A60"
-#APPEND="-l \"a-zA-Z0-9_.:~/\300-\326\330-\366\370-\377\" -g 1 -A60"
diff --git a/pcr/openrc-desktop/gpm.rc6-2 b/pcr/openrc-desktop/gpm.rc6-2
deleted file mode 100644
index 1e0aaf3e1..000000000
--- a/pcr/openrc-desktop/gpm.rc6-2
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/gpm/files/gpm.rc6-2,v 1.2 2012/10/28 11:35:56 vapier Exp $
-
-#NB: Config is in /etc/conf.d/gpm
-
-command=/usr/sbin/gpm
-command_args="
- -m ${MOUSEDEV}
- -t ${MOUSE}
- ${RESPONSIVENESS:+ -r ${RESPONSIVENESS}}
- ${REPEAT_TYPE:+ -R${REPEAT_TYPE}}
- ${APPEND}
-"
-
-pidfile=/var/run/gpm.pid
-
-depend() {
- need localmount
- use hotplug logger
-}
-
-start_pre() {
- if [ -z "${MOUSEDEV}" ] || [ -z "${MOUSE}" ] ; then
- eerror "You need to setup MOUSEDEV and MOUSE in /etc/conf.d/gpm first"
- return 1
- fi
-}
diff --git a/pcr/openrc-desktop/rfcomm-conf.d b/pcr/openrc-desktop/rfcomm-conf.d
deleted file mode 100644
index d87acdb28..000000000
--- a/pcr/openrc-desktop/rfcomm-conf.d
+++ /dev/null
@@ -1,5 +0,0 @@
-# Bind rfcomm devices (allowed values are "true" and "false")
-RFCOMM_ENABLE=true
-
-# Config file for rfcomm
-RFCOMM_CONFIG="/etc/bluetooth/rfcomm.conf"
diff --git a/pcr/openrc-desktop/rfcomm-init.d-r2 b/pcr/openrc-desktop/rfcomm-init.d-r2
deleted file mode 100644
index c56405559..000000000
--- a/pcr/openrc-desktop/rfcomm-init.d-r2
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/files/rfcomm-init.d-r2,v 1.1 2014/06/26 17:18:43 alonbl Exp $
-
-depend() {
- need bluetooth
-}
-
-checkconfig() {
- if [ -z "${ADDRESS}" ]; then
- eerror "ADDRESS must be set"
- return 1
- fi
-
- return 0
-}
-
-start() {
- local DEVICE=${RC_SVCNAME#*.}
-
- checkconfig || return 1
-
- ebegin "Starting ${RC_SVCNAME}"
- rfcomm bind "${DEVICE}" "${ADDRESS}" ${CHANNEL}
- eend $?
-}
-
-stop() {
- local DEVICE=${RC_SVCNAME#*.}
-
- ebegin "Shutting down ${RC_SVCNAME}"
- rfcomm release "${DEVICE}"
- eend $?
-}
diff --git a/pcr/openrc-desktop/startDM.sh b/pcr/openrc-desktop/startDM.sh
deleted file mode 100644
index ebb797040..000000000
--- a/pcr/openrc-desktop/startDM.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/sh
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License, v2
-# $Header: /var/cvsroot/gentoo-x86/x11-apps/xinit/files/startDM.sh,v 1.5 2011/01/22 15:35:49 lxnay Exp $
-
-# We need to source /etc/profile for stuff like $LANG to work
-# bug #10190.
-. /etc/profile
-
-. /etc/init.d/functions.sh
-
-# baselayout-1 compat
-if ! type get_options >/dev/null 2>/dev/null ; then
- [ -r "${svclib}"/sh/rc-services.sh ] && . "${svclib}"/sh/rc-services.sh
-fi
-
-# Great new Gnome2 feature, AA
-# We enable this by default
-export GDK_USE_XFT=1
-
-export SVCNAME=xdm
-EXEC="$(get_options service)"
-NAME="$(get_options name)"
-PIDFILE="$(get_options pidfile)"
-START_STOP_ARGS="$(get_options start_stop_args)"
-
-start-stop-daemon --start --exec ${EXEC} \
-${NAME:+--name} ${NAME} ${PIDFILE:+--pidfile} ${PIDFILE} ${START_STOP_ARGS} || \
-eerror "ERROR: could not start the Display Manager"
-
-# vim:ts=4
diff --git a/pcr/openrc-desktop/wpa_cli.sh b/pcr/openrc-desktop/wpa_cli.sh
deleted file mode 100644
index 4fd0d2cda..000000000
--- a/pcr/openrc-desktop/wpa_cli.sh
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/bin/sh
-# Copyright 1999-2011 Gentoo Foundation
-# Written by Roy Marples <uberlord@gentoo.org>
-# Distributed under the terms of the GNU General Public License v2
-# Alternatively, this file may be distributed under the terms of the BSD License
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/wpa_supplicant/files/wpa_cli.sh,v 1.3 2011/07/08 07:06:21 gurligebis Exp $
-
-if [ -z "$1" -o -z "$2" ]; then
- logger -t wpa_cli "Insufficient parameters"
- exit 1
-fi
-
-INTERFACE="$1"
-ACTION="$2"
-
-# Note, the below action must NOT mark the interface down via ifconfig, ip or
-# similar. Addresses can be removed, changed and daemons can be stopped, but
-# the interface must remain up for wpa_supplicant to work.
-
-if [ -f /etc/gentoo-release ]; then
- EXEC="/etc/init.d/net.${INTERFACE} --quiet"
-else
- logger -t wpa_cli "I don't know what to do with this distro!"
- exit 1
-fi
-
-case ${ACTION} in
- CONNECTED)
- EXEC="${EXEC} start"
- ;;
- DISCONNECTED)
- # Deactivated, since stopping /etc/init.d/net.wlanX
- # stops the network completly.
- EXEC="false ${EXEC} stop"
- ;;
- *)
- logger -t wpa_cli "Unknown action ${ACTION}"
- exit 1
- ;;
-esac
-
-# ${EXEC} can use ${IN_BACKGROUND} so that it knows that the user isn't
-# stopping the interface and a background process - like wpa_cli - is.
-export IN_BACKGROUND=true
-
-logger -t wpa_cli "interface ${INTERFACE} ${ACTION}"
-${EXEC} || logger -t wpa_cli "executing '${EXEC}' failed"
diff --git a/pcr/openrc-desktop/wpa_supplicant-conf.d b/pcr/openrc-desktop/wpa_supplicant-conf.d
deleted file mode 100644
index 104b9dc5d..000000000
--- a/pcr/openrc-desktop/wpa_supplicant-conf.d
+++ /dev/null
@@ -1,6 +0,0 @@
-# conf.d file for wpa_supplicant
-#
-# Please check man 8 wpa_supplicant for more information about the options
-# wpa_supplicant accepts.
-#
-wpa_supplicant_args=""
diff --git a/pcr/openrc-desktop/wpa_supplicant-init.d b/pcr/openrc-desktop/wpa_supplicant-init.d
deleted file mode 100644
index 8429a3733..000000000
--- a/pcr/openrc-desktop/wpa_supplicant-init.d
+++ /dev/null
@@ -1,70 +0,0 @@
-#!/sbin/runscript
-# Copyright (c) 2009 Roy Marples <roy@marples.name>
-# All rights reserved. Released under the 2-clause BSD license.
-
-command=/usr/sbin/wpa_supplicant
-: ${wpa_supplicant_conf:=/etc/wpa_supplicant/wpa_supplicant.conf}
-wpa_supplicant_if=${wpa_supplicant_if:+-i}$wpa_supplicant_if
-command_args="$wpa_supplicant_args -B -c$wpa_supplicant_conf $wpa_supplicant_if"
-name="WPA Supplicant Daemon"
-
-depend()
-{
- need localmount
- use logger
- after bootmisc modules
- before dns dhcpcd net
- keyword -shutdown
-}
-
-find_wireless()
-{
- local iface=
-
- case "$RC_UNAME" in
- Linux)
- for iface in /sys/class/net/*; do
- if [ -e "$iface"/wireless -o \
- -e "$iface"/phy80211 ]
- then
- echo "${iface##*/}"
- return 0
- fi
- done
- ;;
- *)
- for iface in /dev/net/* $(ifconfig -l 2>/dev/null); do
- if ifconfig "${iface##*/}" 2>/dev/null | \
- grep -q "[ ]*ssid "
- then
- echo "${iface##*/}"
- return 0
- fi
- done
- ;;
- esac
-
- return 1
-}
-
-append_wireless()
-{
- local iface= i=
-
- iface=$(find_wireless)
- if [ -n "$iface" ]; then
- for i in $iface; do
- command_args="$command_args -i$i"
- done
- else
- eerror "Could not find a wireless interface"
- fi
-}
-
-start_pre()
-{
- case " $command_args" in
- *" -i"*) ;;
- *) append_wireless;;
- esac
-}
diff --git a/pcr/openrc-desktop/xdm-setup.initd-1 b/pcr/openrc-desktop/xdm-setup.initd-1
deleted file mode 100644
index 365664e66..000000000
--- a/pcr/openrc-desktop/xdm-setup.initd-1
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/files/xdm-setup.initd-1,v 1.1 2010/04/13 10:07:39 scarabeus Exp $
-
-depend() {
- need localmount
-}
-
-start() {
- if get_bootparam "nox" ; then
- touch /etc/.noxdm
- fi
-}
diff --git a/pcr/openrc-desktop/xdm.confd-4 b/pcr/openrc-desktop/xdm.confd-4
deleted file mode 100644
index c82fece01..000000000
--- a/pcr/openrc-desktop/xdm.confd-4
+++ /dev/null
@@ -1,10 +0,0 @@
-# We always try and start X on a static VT. The various DMs normally default
-# to using VT7. If you wish to use the xdm init script, then you should ensure
-# that the VT checked is the same VT your DM wants to use. We do this check to
-# ensure that you haven't accidentally configured something to run on the VT
-# in your /etc/inittab file so that you don't get a dead keyboard.
-CHECKVT=7
-
-# What display manager do you use ? [ xdm | gdm | kdm | gpe | entrance ]
-# NOTE: If this is set in /etc/rc.conf, that setting will override this one.
-DISPLAYMANAGER="xdm"
diff --git a/pcr/openrc-desktop/xdm.initd-11 b/pcr/openrc-desktop/xdm.initd-11
deleted file mode 100644
index 2f7b47cb2..000000000
--- a/pcr/openrc-desktop/xdm.initd-11
+++ /dev/null
@@ -1,231 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License, v2
-# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/files/xdm.initd-11,v 1.1 2014/04/14 16:19:25 chithanh Exp $
-
-# This is here to serve as a note to myself, and future developers.
-#
-# Any Display manager (gdm,kdm,xdm) has the following problem: if
-# it is started before any getty, and no vt is specified, it will
-# usually run on vt2. When the getty on vt2 then starts, and the
-# DM is already started, the getty will take control of the keyboard,
-# leaving us with a "dead" keyboard.
-#
-# Resolution: add the following line to /etc/inittab
-#
-# x:a:once:/etc/X11/startDM.sh
-#
-# and have /etc/X11/startDM.sh start the DM in daemon mode if
-# a lock is present (with the info of what DM should be started),
-# else just fall through.
-#
-# How this basically works, is the "a" runlevel is a additional
-# runlevel that you can use to fork processes with init, but the
-# runlevel never gets changed to this runlevel. Along with the "a"
-# runlevel, the "once" key word means that startDM.sh will only be
-# run when we specify it to run, thus eliminating respawning
-# startDM.sh when "xdm" is not added to the default runlevel, as was
-# done previously.
-#
-# This script then just calls "telinit a", and init will run
-# /etc/X11/startDM.sh after the current runlevel completes (this
-# script should only be added to the actual runlevel the user is
-# using).
-#
-# Martin Schlemmer
-# aka Azarah
-# 04 March 2002
-
-depend() {
- need localmount xdm-setup
-
- # this should start as early as possible
- # we can't do 'before *' as that breaks it
- # (#139824) Start after ypbind and autofs for network authentication
- # (#145219 #180163) Could use lirc mouse as input device
- # (#70689 comment #92) Start after consolefont to avoid display corruption
- # (#291269) Start after quota, since some dm need readable home
- # (#390609) gdm-3 will fail when dbus is not running
- # (#366753) starting keymaps after X causes problems
- after bootmisc consolefont modules netmount
- after readahead-list ypbind autofs openvpn gpm lircmd
- after quota keymaps
- before alsasound
-
- # Start before X
- use consolekit dbus xfs
-}
-
-setup_dm() {
- local MY_XDM
-
- MY_XDM=$(echo "${DISPLAYMANAGER}" | tr '[:upper:]' '[:lower:]')
-
- # Load our root path from profile.env
- # Needed for kdm
- PATH=${PATH}:$(. /etc/profile.env; echo "${ROOTPATH}")
-
- NAME=
- case "${MY_XDM}" in
- kdm|kde)
- EXE=/usr/bin/kdm
- PIDFILE=/run/kdm.pid
- ;;
- entrance*)
- EXE=/usr/sbin/entrance
- PIDFILE=/run/entrance.pid
- ;;
- gdm|gnome)
- # gdm-3 and above has different paths
- if [ -f /usr/sbin/gdm ]; then
- EXE=/usr/sbin/gdm
- PIDFILE=/run/gdm/gdm.pid
- START_STOP_ARGS="--background"
- AUTOCLEAN_CGROUP="yes"
- else
- EXE=/usr/bin/gdm
- PIDFILE=/run/gdm.pid
- fi
- [ "${RC_UNAME}" != "Linux" ] && NAME=gdm-binary
- ;;
- wdm)
- EXE=/usr/bin/wdm
- PIDFILE=
- ;;
- gpe)
- EXE=/usr/bin/gpe-dm
- PIDFILE=/run/gpe-dm.pid
- ;;
- lxdm)
- EXE=/usr/sbin/lxdm-binary
- PIDFILE=/run/lxdm.pid
- START_STOP_ARGS="--background"
- ;;
- lightdm)
- EXE=/usr/sbin/lightdm
- PIDFILE=/run/lightdm.pid
- START_STOP_ARGS="--background"
- ;;
- sddm)
- EXE="/usr/bin/sddm"
- START_STOP_ARGS="-m --background"
- PIDFILE=/run/sddm.pid
- ;;
- *)
- # first find out if there is such executable
- EXE="$(command -v ${MY_XDM} 2>/dev/null)"
- PIDFILE="/run/${MY_XDM}.pid"
-
- # warn user that he is doing sick things if the exe was not found
- if [ -z "${EXE}" ]; then
- echo "ERROR: Your XDM value is invalid."
- echo " No ${MY_XDM} executable could be found on your system."
- fi
- ;;
- esac
-
- if ! [ -x "${EXE}" ]; then
- EXE=/usr/bin/xdm
- PIDFILE=/run/xdm.pid
- if ! [ -x "/usr/bin/xdm" ]; then
- echo "ERROR: Please set your DISPLAYMANAGER variable in /etc/conf.d/xdm,"
- echo " or install x11-apps/xdm package"
- eend 255
- fi
- fi
-}
-
-# Check to see if something is defined on our VT
-vtstatic() {
- if [ -e /etc/inittab ] ; then
- grep -Eq "^[^#]+.*\<tty$1\>" /etc/inittab
- elif [ -e /etc/ttys ] ; then
- grep -q "^ttyv$(($1 - 1))" /etc/ttys
- else
- return 1
- fi
-}
-
-start() {
- local EXE NAME PIDFILE AUTOCLEAN_CGROUP
- setup_dm
-
- if [ -f /etc/.noxdm ]; then
- einfo "Skipping ${EXE##*/}, /etc/.noxdm found or \"nox\" bootparam passed."
- rm /etc/.noxdm
- return 0
- fi
-
- ebegin "Setting up ${EXE##*/}"
-
- # save the prefered DM
- save_options "service" "${EXE}"
- save_options "name" "${NAME}"
- save_options "pidfile" "${PIDFILE}"
- save_options "start_stop_args" "${START_STOP_ARGS}"
- save_options "autoclean_cgroup" "${AUTOCLEAN_CGROUP:-no}"
-
- if [ -n "${CHECKVT-y}" ] ; then
- if vtstatic "${CHECKVT:-7}" ; then
- if [ -x /sbin/telinit ] && [ "${SOFTLEVEL}" != "BOOT" ] && [ "${RC_SOFTLEVEL}" != "BOOT" ]; then
- ewarn "Something is already defined on VT ${CHECKVT:-7}, will start X later"
- telinit a >/dev/null 2>&1
- return 0
- else
- eerror "Something is already defined on VT ${CHECKVT:-7}, not starting"
- return 1
- fi
- fi
- fi
-
- /etc/X11/startDM.sh
- eend 0
-}
-
-stop() {
- local curvt retval
-
- retval=0
- if [ -t 0 ]; then
- if type fgconsole >/dev/null 2>&1; then
- curvt=$(fgconsole 2>/dev/null)
- else
- curvt=$(tty)
- case "${curvt}" in
- /dev/ttyv[0-9]*) curvt=${curvt#/dev/ttyv} ;;
- *) curvt= ;;
- esac
- fi
- fi
- local myexe myname mypidfile myservice
- myexe=$(get_options "service")
- myname=$(get_options "name")
- mypidfile=$(get_options "pidfile")
- myservice=${myexe##*/}
- yesno "${rc_cgroup_cleanup:-no}" || rc_cgroup_cleanup=$(get_options "autoclean_cgroup")
-
- [ -z "${myexe}" ] && return 0
-
- ebegin "Stopping ${myservice}"
-
- if start-stop-daemon --quiet --test --stop --exec "${myexe}"; then
- start-stop-daemon --stop --exec "${myexe}" --retry TERM/5/TERM/5 \
- ${mypidfile:+--pidfile} ${mypidfile} \
- ${myname:+--name} ${myname}
- retval=${?}
- fi
-
- # switch back to original vt
- if [ -n "${curvt}" ]; then
- if type chvt >/dev/null 2>&1; then
- chvt "${curvt}"
- else
- vidcontrol -s "$((curvt + 1))"
- fi
- fi
-
- eend ${retval} "Error stopping ${myservice}"
- return ${retval}
-}
-
-# vim: set ts=4 :
diff --git a/pcr/openrc-misc/10-openrc-status-r4 b/pcr/openrc-misc/10-openrc-status-r4
deleted file mode 100644
index e195ccc19..000000000
--- a/pcr/openrc-misc/10-openrc-status-r4
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/sh
-# Copyright (c) 2012 Alexandre Rostovtsev
-# Released under the 2-clause BSD license.
-
-# Ensures that the NetworkManager OpenRC service is marked as started and
-# providing net only when it has a successful connection.
-
-if [ ! -e "/run/openrc/softlevel" ]; then
- # OpenRC is not running
- exit 0
-fi
-
-# Ensure rc-service is in PATH
-PATH="${PATH}:@EPREFIX@/sbin:@EPREFIX@/usr/sbin"
-
-# Exit if the NetworkManager OpenRC service is not running
-rc-service NetworkManager status 2>&1 | grep -Eq "status: (starting|started|inactive|stopping)" || exit 0
-
-# Call rc-service in background mode so that the start/stop functions update
-# NetworkManager service status to started or inactive instead of actually
-# starting or stopping the daemon
-export IN_BACKGROUND=YES
-
-case "$2" in
- up) nm-online -t 0 -x &&
- ! rc-service NetworkManager status 2>&1 | grep -q started &&
- exec rc-service NetworkManager start ;;
- down) nm-online -t 0 -x ||
- rc-service NetworkManager status 2>&1 | grep -q stopped ||
- exec rc-service NetworkManager stop ;;
- pre-sleep) rc-service NetworkManager status 2>&1 | grep -q stopped ||
- exec rc-service NetworkManager stop ;;
-esac
-exit 0
-# vim: set ts=4:
diff --git a/pcr/openrc-misc/PKGBUILD b/pcr/openrc-misc/PKGBUILD
index 0b97a638d..77c870bda 100644
--- a/pcr/openrc-misc/PKGBUILD
+++ b/pcr/openrc-misc/PKGBUILD
@@ -1,509 +1,469 @@
-# Maintainer : freaj <freaj@riseup.net>
-# Maintainer (Manjaro): artoo <artoo@manjaro.org>
-
-# file vars for easy update
-_Ifrcon=fcron.init.3
-_Crsysl=rsyslog.confd
-_Irsysl=rsyslog.initd
-_Csane=saned.confd
-_Isane=saned.initd
-_Ifuse=fuse.init
-_Cmeta=metalog.confd
-_Imeta=metalog.initd
-_Csyslog=syslog-ng.confd
-_Isyslog=syslog-ng.rc6
-_Clirc1=lircd.conf.4
-_Clirc2=irexec-confd
-_Ilirc1=lircd-0.8.6-r2
-_Ilirc2=irexec-initd-0.8.6-r2
-_Ilirc3=lircmd
-#_Csens=sensord-conf.d
-_Isens1=sensord-4-init.d
-_Isens2=fancontrol-init.d-2
-_Isens3=lm_sensors-3-init.d
-_Ccpu=conf.d-r2
-_Icpu=init.d-r4
-_Cntp1=ntpd.confd
-_Cntp2=ntp-client.confd
-_Cntp3=sntp.confd
-_Intp1=ntpd.rc-r1
-_Intp2=ntp-client.rc
-_Intp3=sntp.rc
-_Icups=cupsd.init.d-r1
-_Ccon=connman.confd
-_Icon=connman.initd2
-_Chaveg=haveged-conf.d
-_Ihaveg=haveged-init.d.3
-_Csalt_mtr=master-confd-1
-_Isalt_mtr=master-initd-3
-_Csalt_min=minion-confd-1
-_Isalt_min=minion-initd-3
-_Csalt_sync=syndic-confd-1
-_Isalt_sync=syndic-initd-3
-_Impd=mpd2.init
-_Chdparm=hdparm-conf.d.3
-_Ihdparm=hdparm-init-8
-_Cbit=bitlbee.confd
-_Ibit=bitlbee.initd
-_Itherm=thermald.initd
-_Ixe=xe-daemon.initd
-_Izfs=zfs.initd
-_IClam=clamd.initd-r6
-_CClam=clamd.conf-r1
-_CNM=conf.d.NetworkManager
-_INM=init.d.NetworkManager
-_SNM=10-openrc-status-r4
+# Maintainer (Arch): artoo <artoo@manjaro.org>
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
_gentoo_uri="http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86"
pkgbase=openrc-misc
pkgname=('cpupower-openrc'
- 'connman-openrc'
- 'fcron-openrc'
- 'fuse-openrc'
- 'metalog-openrc'
- 'rsyslog-openrc'
- 'sane-openrc'
- 'syslog-ng-openrc'
- 'lirc-utils-openrc'
- 'lm_sensors-openrc'
- 'ntp-openrc'
- 'cups-openrc'
- 'haveged-openrc'
- 'salt-openrc'
- 'mpd-openrc'
- 'hdparm-openrc'
- 'bitlbee-openrc'
- 'thermald-openrc'
- 'xe-guest-utilities-openrc'
- 'zfs-openrc'
- 'clamav-openrc'
- 'networkmanager-openrc')
-pkgver=20150330
+ 'connman-openrc'
+ 'fcron-openrc'
+ 'fuse-openrc'
+ 'metalog-openrc'
+ 'rsyslog-openrc'
+ 'sane-openrc'
+ 'syslog-ng-openrc'
+ 'lirc-utils-openrc'
+ 'lm_sensors-openrc'
+ 'ntp-openrc'
+ 'cups-openrc'
+ 'haveged-openrc'
+ 'salt-openrc'
+ 'mpd-openrc'
+ 'hdparm-openrc'
+ 'bitlbee-openrc'
+ 'thermald-openrc'
+ 'xe-guest-utilities-openrc'
+ 'zfs-openrc'
+ 'clamav-openrc'
+ 'networkmanager-openrc'
+ 'at-openrc'
+ 'libvirt-openrc')
+pkgver=20150828
pkgrel=1
pkgdesc="OpenRC init scripts"
arch=('any')
url="https://github.com/manjaro/packages-openrc"
license=('GPL2')
-groups=('openrc' 'openrc-misc')
+groups=('openrc-misc')
conflicts=('openrc'
- 'openrc-git'
- 'openrc-arch-services-git'
- 'initscripts'
- 'systemd-sysvcompat')
-source=("${_gentoo_uri}/sys-process/fcron/files/${_Ifrcon}"
- "${_gentoo_uri}/app-admin/rsyslog/files/8-stable/${_Crsysl}"
- "${_gentoo_uri}/app-admin/rsyslog/files/8-stable/${_Irsysl}"
- "${_gentoo_uri}/media-gfx/sane-backends/files/${_Csane}"
- "${_gentoo_uri}/media-gfx/sane-backends/files/${_Isane}"
- "${_gentoo_uri}/sys-fs/fuse/files/${_Ifuse}"
- "${_gentoo_uri}/app-admin/metalog/files/${_Cmeta}"
- "${_gentoo_uri}/app-admin/metalog/files/${_Imeta}"
- "${_gentoo_uri}/app-admin/syslog-ng/files/3.6/${_Csyslog}"
- "${_gentoo_uri}/app-admin/syslog-ng/files/3.6/${_Isyslog}"
- "${_gentoo_uri}/app-misc/lirc/files/${_Clirc1}"
- "${_gentoo_uri}/app-misc/lirc/files/${_Clirc2}"
- "${_gentoo_uri}/app-misc/lirc/files/${_Ilirc1}"
- "${_gentoo_uri}/app-misc/lirc/files/${_Ilirc2}"
- "${_gentoo_uri}/app-misc/lirc/files/${_Ilirc3}"
- "${_gentoo_uri}/sys-power/cpupower/files/${_Ccpu}"
- "${_gentoo_uri}/sys-power/cpupower/files/${_Icpu}"
- #"${_gentoo_uri}/sys-apps/lm_sensors/files/${_Csens}"
- "${_gentoo_uri}/sys-apps/lm_sensors/files/${_Isens1}"
- "${_gentoo_uri}/sys-apps/lm_sensors/files/${_Isens2}"
- "${_gentoo_uri}/sys-apps/lm_sensors/files/${_Isens3}"
- "${_gentoo_uri}/net-misc/ntp/files/${_Cntp1}"
- "${_gentoo_uri}/net-misc/ntp/files/${_Cntp2}"
- "${_gentoo_uri}/net-misc/ntp/files/${_Cntp3}"
- "${_gentoo_uri}/net-misc/ntp/files/${_Intp1}"
- "${_gentoo_uri}/net-misc/ntp/files/${_Intp2}"
- "${_gentoo_uri}/net-misc/ntp/files/${_Intp3}"
- "${_gentoo_uri}/net-print/cups/files/${_Icups}"
- "${_gentoo_uri}/net-misc/connman/files/${_Ccon}"
- "${_gentoo_uri}/net-misc/connman/files/${_Icon}"
- "${_gentoo_uri}/sys-apps/haveged/files/${_Chaveg}"
- "${_gentoo_uri}/sys-apps/haveged/files/${_Ihaveg}"
- "${_gentoo_uri}/app-admin/salt/files/${_Csalt_mtr}"
- "${_gentoo_uri}/app-admin/salt/files/${_Isalt_mtr}"
- "${_gentoo_uri}/app-admin/salt/files/${_Csalt_min}"
- "${_gentoo_uri}/app-admin/salt/files/${_Isalt_min}"
- "${_gentoo_uri}/app-admin/salt/files/${_Csalt_sync}"
- "${_gentoo_uri}/app-admin/salt/files/${_Isalt_sync}"
- "${_gentoo_uri}/media-sound/mpd/files/${_Impd}"
- "${_gentoo_uri}/sys-apps/hdparm/files/${_Chdparm}"
- "${_gentoo_uri}/sys-apps/hdparm/files/${_Ihdparm}"
- "${_gentoo_uri}/net-im/bitlbee/files/${_Cbit}"
- "${_gentoo_uri}/net-im/bitlbee/files/${_Ibit}"
- "${_gentoo_uri}/app-emulation/xe-guest-utilities/files/${_Ixe}"
- "${_Izfs}"
- "${_Itherm}"
- "${_gentoo_uri}/app-antivirus/clamav/files/${_CClam}"
- "${_gentoo_uri}/app-antivirus/clamav/files/${_IClam}"
- "${_gentoo_uri}/net-misc/networkmanager/files/${_CNM}"
- "${_gentoo_uri}/net-misc/networkmanager/files/${_INM}"
- "${_gentoo_uri}/net-misc/networkmanager/files/${_SNM}")
+ 'openrc-git'
+ 'openrc-arch-services-git'
+ 'initscripts'
+ 'systemd-sysvcompat')
+source=("fcron.initd::${_gentoo_uri}/sys-process/fcron/files/fcron.init.3"
+ "rsyslog.confd::${_gentoo_uri}/app-admin/rsyslog/files/8-stable/rsyslog.confd"
+ "rsyslog.initd::${_gentoo_uri}/app-admin/rsyslog/files/8-stable/rsyslog.initd"
+ "saned.confd::${_gentoo_uri}/media-gfx/sane-backends/files/saned.confd"
+ "saned.initd::${_gentoo_uri}/media-gfx/sane-backends/files/saned.initd"
+ "fuse.initd::${_gentoo_uri}/sys-fs/fuse/files/fuse.init"
+ "metalog.confd::${_gentoo_uri}/app-admin/metalog/files/metalog.confd"
+ "metalog.initd::${_gentoo_uri}/app-admin/metalog/files/metalog.initd"
+ "syslog-ng.confd::${_gentoo_uri}/app-admin/syslog-ng/files/3.6/syslog-ng.confd"
+ "syslog-ng.initd::${_gentoo_uri}/app-admin/syslog-ng/files/3.6/syslog-ng.rc6"
+ "lircd.confd::${_gentoo_uri}/app-misc/lirc/files/lircd.conf.4"
+ "irexec.confd::${_gentoo_uri}/app-misc/lirc/files/irexec-confd"
+ "lircd.initd::${_gentoo_uri}/app-misc/lirc/files/lircd-0.8.6-r2"
+ "irexec.initd::${_gentoo_uri}/app-misc/lirc/files/irexec-initd-0.8.6-r2"
+ "lircmd.initd::${_gentoo_uri}/app-misc/lirc/files/lircmd"
+ "cpupower.confd::${_gentoo_uri}/sys-power/cpupower/files/conf.d-r2"
+ "cpupower.initd::${_gentoo_uri}/sys-power/cpupower/files/init.d-r4"
+ #"sensord.confd::${_gentoo_uri}/sys-apps/lm_sensors/files/sensord-conf.d"
+ "sensord.initd::${_gentoo_uri}/sys-apps/lm_sensors/files/sensord-4-init.d"
+ "fancontrol.initd::${_gentoo_uri}/sys-apps/lm_sensors/files/fancontrol-init.d-2"
+ "lm_sensors.initd::${_gentoo_uri}/sys-apps/lm_sensors/files/lm_sensors-3-init.d"
+ "ntpd.confd::${_gentoo_uri}/net-misc/ntp/files/ntpd.confd"
+ "ntp-client.confd::${_gentoo_uri}/net-misc/ntp/files/ntp-client.confd"
+ "sntp.confd::${_gentoo_uri}/net-misc/ntp/files/sntp.confd"
+ "ntpd.initd::${_gentoo_uri}/net-misc/ntp/files/ntpd.rc-r1"
+ "ntp-client.initd::${_gentoo_uri}/net-misc/ntp/files/ntp-client.rc"
+ "sntp.initd::${_gentoo_uri}/net-misc/ntp/files/sntp.rc"
+ "cupsd.initd::${_gentoo_uri}/net-print/cups/files/cupsd.init.d-r1"
+ "connman.confd::${_gentoo_uri}/net-misc/connman/files/connman.confd"
+ "connman.initd::${_gentoo_uri}/net-misc/connman/files/connman.initd2"
+ "haveged.confd::${_gentoo_uri}/sys-apps/haveged/files/haveged-conf.d"
+ "haveged.initd::${_gentoo_uri}/sys-apps/haveged/files/haveged-init.d.3"
+ "salt-master.confd::${_gentoo_uri}/app-admin/salt/files/master-confd-1"
+ "salt-master.initd::${_gentoo_uri}/app-admin/salt/files/master-initd-4"
+ "salt-minion.confd::${_gentoo_uri}/app-admin/salt/files/minion-confd-1"
+ "salt-minion.initd::${_gentoo_uri}/app-admin/salt/files/minion-initd-4"
+ "salt-syncdic.confd::${_gentoo_uri}/app-admin/salt/files/syndic-confd-1"
+ "salt-syncdic.initd::${_gentoo_uri}/app-admin/salt/files/syndic-initd-4"
+ "salt-api.confd::${_gentoo_uri}/app-admin/salt/files/api-confd-1"
+ "salt-api.initd::${_gentoo_uri}/app-admin/salt/files/api-initd-4"
+ "mpd.initd::${_gentoo_uri}/media-sound/mpd/files/mpd2.init"
+ "hdparm.confd::${_gentoo_uri}/sys-apps/hdparm/files/hdparm-conf.d.3"
+ "hdparm.initd::${_gentoo_uri}/sys-apps/hdparm/files/hdparm-init-8"
+ "bitlbee.confd::${_gentoo_uri}/net-im/bitlbee/files/bitlbee.confd"
+ "bitlbee.initd::${_gentoo_uri}/net-im/bitlbee/files/bitlbee.initd"
+ "xe-daemon.initd::${_gentoo_uri}/app-emulation/xe-guest-utilities/files/xe-daemon.initd"
+ "clamd.confd::${_gentoo_uri}/app-antivirus/clamav/files/clamd.conf-r1"
+ "clamd.initd::${_gentoo_uri}/app-antivirus/clamav/files/clamd.initd-r6"
+ "NetworkManager.confd::${_gentoo_uri}/net-misc/networkmanager/files/conf.d.NetworkManager"
+ "NetworkManager.initd::${_gentoo_uri}/net-misc/networkmanager/files/init.d.NetworkManager"
+ "10-openrc-status::${_gentoo_uri}/net-misc/networkmanager/files/10-openrc-status-r4"
+ "atd.confd::${_gentoo_uri}/sys-process/at/files/atd.confd"
+ "atd.initd::${_gentoo_uri}/sys-process/at/files/atd.rc8"
+ "libvirtd.confd::${_gentoo_uri}/app-emulation/libvirt/files/libvirtd.confd-r4"
+ "libvirtd.initd::${_gentoo_uri}/app-emulation/libvirt/files/libvirtd.init-r14"
+ "virtlockd.initd::${_gentoo_uri}/app-emulation/libvirt/files/virtlockd.init-r1"
+ "zfs.initd"
+ "thermald.initd")
+sha256sums=('ceada7a1c9e8b62cff506bc94a1813706c7de1ed23daf9c3450ad549df4fafb7'
+ 'f0b15a0334f6177a6cf23cb9b169302c75745dc30857f24a7d11892feb6b1ee4'
+ '204c66d2b7d4d20115acc7499708cf538538fe1c100281ad55f909508041fb19'
+ '197e44ba1f438a18f5f7d9f5858feb19c1ece4286d82a5e63caf9be5b964aa76'
+ '4dd4e7fa07bf2ab2d4f5753156f5df0ad2277523f6755b0eab3d2db3480989e2'
+ '22a22c914d2a4f0fb5fc8495f4b7efcd1819efde548c9033ca612c181cd29eda'
+ 'ec9f05b386a06a4b2d5398cc0c33f34eba3f5e74ad46ae203d682f8ebc593f99'
+ '906c31e0817517dc6c141a7a10565140ea272d3c958a065f520a0ecb6f81912f'
+ 'b29325498ee3b1f3d63672efcd1e93f0745eecdb9f4bb05fed82a2f085399484'
+ 'aa027dac0d145bc342728864cd432a0cf3c25dd6cb66880e7b70df1a9d5a66cf'
+ 'd36ff77fa193a065d25e373723e03f1a9471205151b82c73a6574cce4f095962'
+ 'c404ad3b624004cab25bd3a89593cdeb0abbc25771d6e52caf2f37cb4f7b2b79'
+ '1b1f2970cc81a6053fcb6c0ead786436b6423c67170087dde283e54f32ae16e5'
+ '5e5a31fbd93294a6e210499a880fcab371b23706824c9d60d827b0187d7bade4'
+ 'd47f22a33a83c14a4a0c333d6a445c40e550c491899fb0c6d323e23fe1eac7b7'
+ '9ab6f022d2b2948660decf5e383984e6ddb9e9e5e6e2761c3031378ddd87e947'
+ '25f2a1665c88dc5227698bdedc2098d6e37d12d8b966f00e2a180c95a33cc8b4'
+ '4bd482a54decc5a51aee60e19ae31b0182d5857b112754247f04c0829b159b07'
+ '36d489296c31736f8015b0ce27052b3f1555b7fe6335120c0477b044b8e4fb8d'
+ '9b018f9f7a0975988387858823fe59a5cd8af6413d8c3170db0e24aac6021ec3'
+ '40803821f498267f6567436eedc18201b5ae4b5390d6872fb15a94200c2ac06f'
+ 'c7dc517cdb5ee10e2a07ccea15ec47ba0b7aff8ac1469204c8d7faf71bcae2c5'
+ '97282007801cb9c0e3b431e2930dec3bb8ce8869f63f7e02d903846e96734684'
+ '22a4b5e4c934ea8ba66764441b0bb60d31d23c147c8b64a4a035947327bfc3ec'
+ '2e4a42dd64b7c6dacfcfefdab8dc1e7c45d7a0966ef8b928583d18393362c719'
+ '8fbd405ad951e7ad046e4408abb98f4066077113187198767d52f28d7228bae4'
+ '4705b68372090ee7db69da1ad35131551ed1ba99032db2486ff6c31d2170ce6b'
+ '767a160c1b3392f0a12d3908a937548a2f604a9a121e744c309ee6f478420b02'
+ 'f0a561f124cac3791fba6ee7ef5bc3ea46bd7535edf9e864689b0d9cfa65d332'
+ '3b53f4aabf937766b5aa806561e9b97ab2be49ac25d76ae97f4fca4ab7a42e33'
+ '365e9cbde2564a0430d8d1c0f8bc367db2bb32937ebf61649196f0e6a1ab5363'
+ '9f3f47a7af4d349a7c525455616139b5019d3b7d0290398ba8c50ab91a62d089'
+ '239071e57c37c9d5d9ca1f5b54155b9a9c31e06f32f01387ebfb2d0c6f51f61a'
+ '286148f5391d42c04a62a13cc125fa2130b5821e50da913c5a20d3a913e5f2d1'
+ 'd1ff82d1f4db8b2bfc640c1cad3e2bfb525dd8ef2225cb4dc1018cf9021a2a34'
+ '286148f5391d42c04a62a13cc125fa2130b5821e50da913c5a20d3a913e5f2d1'
+ '7c3fe247d36f47e998e70e0715e6dc58df54e9b9bd5cead577884bb74461809e'
+ '9f3f47a7af4d349a7c525455616139b5019d3b7d0290398ba8c50ab91a62d089'
+ '78940f949714d654a80426871f4679b44466ae38e87a4d681f3f0ad353f7d607'
+ '3591473024005cdb15f13809c7675fbb964dc1b13e7658a01e12e34c7e751897'
+ '37c95ff723fa578e9039613d09dbf790d99113a318c065422986c744519214e9'
+ '434beee81ba04c96fcd03e6b37a4578c2c25af2c1007368469c48dd37523d56e'
+ '105afc0382fc5adc03ed644dba4e78817015a55432349f259a286ac3c1b06628'
+ '2eaef8071b34c1a3d55271d283b31e25e081791e48a6a55eb394912e4954ba48'
+ '24cbcf298b869e4451b08aeba0e3e4948aa7faaac649f18e8f600ae5fb86a8fb'
+ '28ebd47810b0568fc7692218867d6804a1df70290681462f5555e230ca817732'
+ 'c00bb921afe65e31a9ac4bbcfc97e4c9afa7ad77604c2dcb7eedc152fec5bbd8'
+ '4594573f01fe5e04b6dde4525796acf909158591bdcefd662ec23fe0d1c3e1bd'
+ '5f368362ef5c6deed538f20dc582d6da3c86871bd42297fa78536c0312021843'
+ 'f8ed424818b866a0bf882c569f4484e8b1485ce7ac8c472f060fd877f2dcfe65'
+ '92350108a385cc66dffab8c9fc9cc1c85ca1abf36d0ffb007a4e1e55291e0179'
+ '0f7c55e125d9d16f30fd9d2335485cac0b64a9452128d564e9318290703d8229'
+ 'c2ca5d9a2d4ed433e91bd215c2ca678109cc981072897a497955e36760dc3b9f'
+ 'ed8514d347d3a8a0b243cfc25a85dedb1e595f1e29e874bcadd14ef5f5d03e58'
+ 'd156cf6a2b00d8d81529e63231fd49b2599838f6c79740fed6c443840e57ece8'
+ '7321272190ea9846ab7e19b034649c1cd711d4f94a6bdcaaaec2f683bb822e7d'
+ '4bbb4e610d2d6bb22d83aa2980dca052a23b90fa6985c8245601b716dec986f4')
pkgver() {
- date +%Y%m%d
+ date +%Y%m%d
}
-_shebang='s|#!/sbin/runscript|#!/usr/bin/openrc-run|'
-_runpath='s|/var/run|/run|g'
-_binpath='s|/usr/sbin|/usr/bin|g'
+_inst_initd(){
+ install -Dm755 ${srcdir}/$1.initd ${pkgdir}/etc/init.d/$1
+ sed -e 's|#!/sbin/runscript|#!/usr/bin/openrc-run|' \
+ -e 's|/var/run|/run|g' \
+ -e 's|/usr/sbin|/usr/bin|g' \
+ -i ${pkgdir}/etc/init.d/$1
+}
+
+_inst_confd(){
+ install -Dm755 ${srcdir}/$1.confd ${pkgdir}/etc/conf.d/$1
+}
package_bitlbee-openrc() {
- pkgdesc="OpenRC bitlbee init script"
- depends=('openrc-core' 'bitlbee')
- backup=('etc/conf.d/bitlbee')
- install=bitlbee.install
-
- install -Dm755 "${srcdir}/${_Cbit}" "${pkgdir}/etc/conf.d/bitlbee"
- install -Dm755 "${srcdir}/${_Ibit}" "${pkgdir}/etc/init.d/bitlbee"
- local _p1='s|need logger net|need net\n use logger|'
- sed -e "${_shebang}" -e "${_binpath}" -e "${_runpath}" -e "${_p1}" -e "${_p2}" -i "${pkgdir}/etc/init.d/bitlbee"
+ pkgdesc="OpenRC bitlbee init script"
+ depends=('openrc-core' 'bitlbee')
+ backup=('etc/conf.d/bitlbee')
+ install=bitlbee.install
+
+ _inst_confd 'bitlbee'
+ _inst_initd 'bitlbee'
+
+ sed -e 's|need logger net|need net\n use logger|' \
+ -i "${pkgdir}/etc/init.d/bitlbee"
}
package_cpupower-openrc() {
- pkgdesc="OpenRC cpupower init script"
- depends=('openrc-core' 'cpupower')
- backup=('etc/conf.d/cpupower')
- install=cpupower.install
-
- install -Dm755 "${srcdir}/${_Ccpu}" "${pkgdir}/etc/conf.d/cpupower"
- install -Dm755 "${srcdir}/${_Icpu}" "${pkgdir}/etc/init.d/cpupower"
+ pkgdesc="OpenRC cpupower init script"
+ depends=('openrc-core' 'cpupower')
+ backup=('etc/conf.d/cpupower')
+ install=cpupower.install
- sed -e "${_shebang}" -i "${pkgdir}/etc/init.d/cpupower"
+ _inst_confd 'cpupower'
+ _inst_initd 'cpupower'
}
package_connman-openrc() {
- pkgdesc="OpenRC connman init script"
- depends=('openrc-core' 'connman')
- backup=('etc/conf.d/connman')
- install=connman.install
+ pkgdesc="OpenRC connman init script"
+ depends=('openrc-core' 'connman')
+ backup=('etc/conf.d/connman')
+ install=connman.install
- install -Dm755 "${srcdir}/${_Ccon}" "${pkgdir}/etc/conf.d/connman"
- install -Dm755 "${srcdir}/${_Icon}" "${pkgdir}/etc/init.d/connman"
-
- sed -e "${_shebang}" -e "${_binpath}" -i "${pkgdir}/etc/init.d/connman"
+ _inst_confd 'connman'
+ _inst_initd 'connman'
}
package_cups-openrc() {
- pkgdesc="OpenRC cups init script"
- depends=('cups' 'dbus-openrc')
- optdepends=('avahi-openrc: avahi initscripts')
- install=cups.install
+ pkgdesc="OpenRC cups init script"
+ depends=('cups' 'dbus-openrc')
+ optdepends=('avahi-openrc: avahi initscripts')
+ install=cups.install
- install -Dm755 "${srcdir}/${_Icups}" "${pkgdir}/etc/init.d/cupsd"
+ _inst_initd 'cupsd'
- local _p1='s|lp:lpadmin|daemon:sys|' \
- _p2='s|@neededservices@|need dbus avahi-daemon|'
- sed -e "${_shebang}" -e "${_binpath}" -e "${_p1}" -e "${_p2}" -i "${pkgdir}/etc/init.d/cupsd"
+ sed -e 's|lp:lpadmin|daemon:sys|' \
+ -e 's|@neededservices@|need dbus avahi-daemon|' \
+ -i "${pkgdir}/etc/init.d/cupsd"
}
package_fcron-openrc() {
- pkgdesc="OpenRC fcron init script"
- depends=('openrc-core' 'fcron')
- groups=('openrc-misc')
- provides=('openrc-cron')
- conflicts=('cronie'
- 'cronie-openrc'
- 'openrc'
- 'openrc-git'
- 'openrc-arch-services-git'
- 'initscripts'
- 'systemd-sysvcompat')
- install=fcron.install
-
- install -Dm755 "${srcdir}/${_Ifrcon}" "${pkgdir}/etc/init.d/fcron"
-
- local _p1='s|/usr/libexec|/usr/bin|g'
- sed -e "${_shebang}" -e "${_runpath}" -e "${_p1}" -i "${pkgdir}/etc/init.d/fcron"
+ pkgdesc="OpenRC fcron init script"
+ depends=('openrc-core' 'fcron')
+ groups=('openrc-misc')
+ provides=('openrc-cron')
+ conflicts=('cronie'
+ 'cronie-openrc'
+ 'openrc'
+ 'openrc-git'
+ 'openrc-arch-services-git'
+ 'initscripts'
+ 'systemd-sysvcompat')
+ install=fcron.install
+
+ _inst_initd 'fcron'
+
+ sed -e 's|/usr/libexec|/usr/bin|g' \
+ -i "${pkgdir}/etc/init.d/fcron"
}
package_ntp-openrc() {
- pkgdesc="OpenRC ntp init script"
- depends=('openrc-core' 'ntp')
- optdepends=('bind-openrc: bind initscript')
- provides=('openrc-timed')
- conflicts=('openntpd'
- 'openntpd-openrc'
- 'openrc'
- 'openrc-git'
- 'openrc-arch-services-git'
- 'initscripts'
- 'systemd-sysvcompat')
- backup=('etc/conf.d/ntpd'
- 'etc/conf.d/ntp-client'
- 'etc/init.d/sntp')
- install=ntp.install
-
- install -Dm755 "${srcdir}/${_Cntp1}" "${pkgdir}/etc/conf.d/ntpd"
- install -Dm755 "${srcdir}/${_Intp1}" "${pkgdir}/etc/init.d/ntpd"
- install -Dm755 "${srcdir}/${_Cntp2}" "${pkgdir}/etc/conf.d/ntp-client"
- install -Dm755 "${srcdir}/${_Intp2}" "${pkgdir}/etc/init.d/ntp-client"
- install -Dm755 "${srcdir}/${_Cntp3}" "${pkgdir}/etc/conf.d/sntp"
- install -Dm755 "${srcdir}/${_Intp3}" "${pkgdir}/etc/init.d/sntp"
-
- for f in ${pkgdir}/etc/init.d/*;do
- sed -e "${_shebang}" -e "${_binpath}" -e "${_runpath}" -i $f
- done
+ pkgdesc="OpenRC ntp init script"
+ depends=('openrc-core' 'ntp')
+ optdepends=('bind-openrc: bind initscript')
+ provides=('openrc-timed')
+ conflicts=('openntpd'
+ 'openntpd-openrc'
+ 'openrc'
+ 'openrc-git'
+ 'openrc-arch-services-git'
+ 'initscripts'
+ 'systemd-sysvcompat')
+ backup=('etc/conf.d/ntpd'
+ 'etc/conf.d/ntp-client'
+ 'etc/init.d/sntp')
+ install=ntp.install
+
+ _inst_confd 'ntpd'
+ _inst_initd 'ntpd'
+
+ _inst_confd 'ntp-client'
+ _inst_initd 'ntp-client'
+
+ _inst_confd 'sntp'
+ _inst_initd 'sntp'
}
package_rsyslog-openrc() {
- pkgdesc="OpenRC rsyslog init script"
- depends=('openrc-core' 'rsyslog')
- backup=('etc/conf.d/rsyslog')
- install=rsyslog.install
-
- install -Dm755 "${srcdir}/${_Crsysl}" "${pkgdir}/etc/conf.d/rsyslog"
- install -Dm755 "${srcdir}/${_Irsysl}" "${pkgdir}/etc/init.d/rsyslog"
+ pkgdesc="OpenRC rsyslog init script"
+ depends=('openrc-core' 'rsyslog')
+ backup=('etc/conf.d/rsyslog')
+ install=rsyslog.install
- sed -e "${_shebang}" -e "${_binpath}" -e "${_runpath}" -i "${pkgdir}/etc/init.d/rsyslog"
+ _inst_confd 'rsyslog'
+ _inst_initd 'rsyslog'
}
package_sane-openrc() {
- pkgdesc="OpenRC sane init script"
- depends=('openrc-core' 'sane')
- backup=('etc/conf.d/saned')
- install=sane.install
-
- install -Dm755 "${srcdir}/${_Csane}" "${pkgdir}/etc/conf.d/saned"
- install -Dm755 "${srcdir}/${_Isane}" "${pkgdir}/etc/init.d/saned"
- local _p1='s|/run/saned/saned.pid|/run/saned.pid|'
- sed -e "${_shebang}" -e "${_runpath}" -e "${_binpath}" -e ${_p1} -i ${pkgdir}/etc/init.d/saned
+ pkgdesc="OpenRC sane init script"
+ depends=('openrc-core' 'sane')
+ backup=('etc/conf.d/saned')
+ install=sane.install
+
+ _inst_confd 'saned'
+ _inst_initd 'saned'
+
+ sed -e 's|/run/saned/saned.pid|/run/saned.pid|' \
+ -i ${pkgdir}/etc/init.d/saned
}
package_fuse-openrc(){
- pkgdesc="OpenRC fuse init script"
- depends=('openrc-core' 'fuse')
- install=fuse.install
+ pkgdesc="OpenRC fuse init script"
+ depends=('openrc-core' 'fuse')
+ install=fuse.install
- install -Dm755 "${srcdir}/${_Ifuse}" "${pkgdir}/etc/init.d/fuse"
- sed -e "${_shebang}" -i "${pkgdir}/etc/init.d/fuse"
+ _inst_initd 'fuse'
}
package_metalog-openrc() {
- pkgdesc="OpenRC metalog init script"
- depends=('openrc-core' 'metalog')
- backup=('etc/conf.d/metalog')
- install=metalog.install
-
- install -Dm755 "${srcdir}/${_Cmeta}" "${pkgdir}/etc/conf.d/metalog"
- install -Dm755 "${srcdir}/${_Imeta}" "${pkgdir}/etc/init.d/metalog"
+ pkgdesc="OpenRC metalog init script"
+ depends=('openrc-core' 'metalog')
+ backup=('etc/conf.d/metalog')
+ install=metalog.install
- sed -e "${_shebang}" -e "${_binpath}" -e "${_runpath}" -i "${pkgdir}/etc/init.d/metalog"
+ _inst_confd 'metalog'
+ _inst_initd 'metalog'
}
package_syslog-ng-openrc() {
- pkgdesc="OpenRC syslog-ng init script"
- depends=('openrc-core' 'syslog-ng')
- backup=('etc/conf.d/syslog-ng')
- install=syslog-ng.install
+ pkgdesc="OpenRC syslog-ng init script"
+ depends=('openrc-core' 'syslog-ng')
+ backup=('etc/conf.d/syslog-ng')
+ install=syslog-ng.install
- install -Dm755 "${srcdir}/${_Csyslog}" "${pkgdir}/etc/conf.d/syslog-ng"
- install -Dm755 "${srcdir}/${_Isyslog}" "${pkgdir}/etc/init.d/syslog-ng"
-
- sed -e "${_shebang}" -e "${_binpath}" -e "${_runpath}" -i "${pkgdir}/etc/init.d/syslog-ng"
+ _inst_confd 'syslog-ng'
+ _inst_initd 'syslog-ng'
}
package_lm_sensors-openrc() {
- pkgdesc="OpenRC lm_sensors init script"
- depends=('openrc-core' 'lm_sensors')
- #backup=('etc/conf.d/sensord')
- install=lm_sensors.install
-
- #install -Dm755 "${srcdir}/${_Csens}" "${pkgdir}/etc/conf.d/sensord"
- install -Dm755 "${srcdir}/${_Isens1}" "${pkgdir}/etc/init.d/sensord"
- install -Dm755 "${srcdir}/${_Isens2}" "${pkgdir}/etc/init.d/fancontrol"
- install -Dm755 "${srcdir}/${_Isens3}" "${pkgdir}/etc/init.d/lm_sensors"
-
- for f in ${pkgdir}/etc/init.d/*; do
- sed -e "${_shebang}" -e "${_binpath}" -e "${_runpath}" -i $f
- done
+ pkgdesc="OpenRC lm_sensors init script"
+ depends=('openrc-core' 'lm_sensors')
+ #backup=('etc/conf.d/sensord')
+ install=lm_sensors.install
+
+ _inst_initd 'sensord'
+ _inst_initd 'fancontrol'
+ _inst_initd 'lm_sensors'
}
package_lirc-utils-openrc() {
- pkgdesc="OpenRC lirc-utils init script"
- depends=('openrc-core' 'lirc-utils')
- backup=('etc/conf.d/lircd'
- 'etc/conf.d/irexec')
- install=lirc-utils.install
-
- install -Dm755 "${srcdir}/${_Clirc1}" "${pkgdir}/etc/conf.d/lircd"
- install -Dm755 "${srcdir}/${_Ilirc1}" "${pkgdir}/etc/init.d/lircd"
+ pkgdesc="OpenRC lirc-utils init script"
+ depends=('openrc-core' 'lirc-utils')
+ backup=('etc/conf.d/lircd'
+ 'etc/conf.d/irexec')
+ install=lirc-utils.install
- install -Dm755 "${srcdir}/${_Clirc2}" "${pkgdir}/etc/conf.d/irexec"
- install -Dm755 "${srcdir}/${_Ilirc2}" "${pkgdir}/etc/init.d/irexec"
+ _inst_confd 'lircd'
+ _inst_initd 'lircd'
- install -Dm755 "${srcdir}/${_Ilirc3}" "${pkgdir}/etc/init.d/lircmd"
+ _inst_confd 'irexec'
+ _inst_initd 'irexec'
- for f in ${pkgdir}/etc/init.d/*;do
- sed -e "${_shebang}" -e "${_binpath}" -e "${_runpath}" -i $f
- done
+ _inst_initd 'lircmd'
}
package_haveged-openrc() {
- pkgdesc="OpenRC haveged init script"
- depends=('openrc-core' 'haveged')
- backup=('etc/conf.d/haveged')
- install=haveged.install
+ pkgdesc="OpenRC haveged init script"
+ depends=('openrc-core' 'haveged')
+ backup=('etc/conf.d/haveged')
+ install=haveged.install
- install -Dm755 "${srcdir}/${_Chaveg}" "${pkgdir}/etc/conf.d/haveged"
- install -Dm755 "${srcdir}/${_Ihaveg}" "${pkgdir}/etc/init.d/haveged"
-
- sed -e "${_shebang}" -e "${_binpath}" -i "${pkgdir}/etc/init.d/haveged"
+ _inst_confd 'haveged'
+ _inst_initd 'haveged'
}
package_salt-openrc() {
- pkgdesc="OpenRC salt init scripts"
- depends=('openrc-core' 'salt')
- backup=('etc/conf.d/salt-master'
- 'etc/conf.d/salt-minion'
- 'etc/conf.d/salt-syncdic')
- install=salt.install
-
- install -Dm755 "${srcdir}/${_Csalt_mtr}" "${pkgdir}/etc/conf.d/salt-master"
- install -Dm755 "${srcdir}/${_Isalt_mtr}" "${pkgdir}/etc/init.d/salt-master"
+ pkgdesc="OpenRC salt init scripts"
+ depends=('openrc-core' 'salt')
+ backup=('etc/conf.d/salt-master'
+ 'etc/conf.d/salt-minion'
+ 'etc/conf.d/salt-syncdic'
+ 'etc/conf.d/salt-api')
+ install=salt.install
- install -Dm755 "${srcdir}/${_Csalt_min}" "${pkgdir}/etc/conf.d/salt-minion"
- install -Dm755 "${srcdir}/${_Isalt_min}" "${pkgdir}/etc/init.d/salt-minion"
+ _inst_confd 'salt-master'
+ _inst_initd 'salt-master'
- install -Dm755 "${srcdir}/${_Csalt_sync}" "${pkgdir}/etc/conf.d/salt-syncdic"
- install -Dm755 "${srcdir}/${_Isalt_sync}" "${pkgdir}/etc/init.d/salt-syncdic"
+ _inst_confd 'salt-minion'
+ _inst_initd 'salt-minion'
- for f in ${pkgdir}/etc/init.d/*;do
- sed -e "${_shebang}" -e "${_runpath}" -i $f
- done
+ _inst_confd 'salt-syncdic'
+ _inst_initd 'salt-syncdic'
+ _inst_confd 'salt-api'
+ _inst_initd 'salt-api'
}
package_mpd-openrc(){
- pkgdesc="OpenRC fuse init script"
- depends=('openrc-core' 'mpd')
- install=mpd.install
+ pkgdesc="OpenRC fuse init script"
+ depends=('openrc-core' 'mpd')
+ install=mpd.install
- install -Dm755 "${srcdir}/${_Impd}" "${pkgdir}/etc/init.d/mpd"
- sed -e "${_shebang}" -i "${pkgdir}/etc/init.d/mpd"
+ _inst_initd 'mpd'
}
package_hdparm-openrc() {
- pkgdesc="OpenRC hdparm init script"
- depends=('openrc-core' 'hdparm')
- backup=('etc/conf.d/hdparm')
- install=hdparm.install
+ pkgdesc="OpenRC hdparm init script"
+ depends=('openrc-core' 'hdparm')
+ backup=('etc/conf.d/hdparm')
+ install=hdparm.install
- install -Dm755 "${srcdir}/${_Chdparm}" "${pkgdir}/etc/conf.d/hdparm"
- install -Dm755 "${srcdir}/${_Ihdparm}" "${pkgdir}/etc/init.d/hdparm"
-
- sed -e "${_shebang}" -i "${pkgdir}/etc/init.d/hdparm"
+ _inst_confd 'hdparm'
+ _inst_initd 'hdparm'
}
package_thermald-openrc() {
- pkgdesc="OpenRC thermald init script"
- depends=('dbus-openrc' 'thermald')
- install=thermald.install
+ pkgdesc="OpenRC thermald init script"
+ depends=('dbus-openrc' 'thermald')
+ install=thermald.install
- install -Dm755 "${srcdir}/${_Itherm}" "${pkgdir}/etc/init.d/thermald"
+ _inst_initd 'thermald'
}
package_xe-guest-utilities-openrc() {
- pkgdesc="OpenRC xe-guest-utilities init script"
- depends=('openrc-core' 'xe-guest-utilities')
- install=xe-guest-utilities.install
-
- install -Dm755 "${srcdir}/${_Ixe}" "${pkgdir}/etc/init.d/xe-daemon"
-
- sed -e ${_shebang} -e ${_runpath} -e ${_binpath} \
- -i ${pkgdir}/etc/init.d/xe-daemon
+ pkgdesc="OpenRC xe-guest-utilities init script"
+ depends=('openrc-core' 'xe-guest-utilities')
+ install=xe-guest-utilities.install
+
+ _inst_initd 'xe-daemon'
}
package_zfs-openrc() {
- pkgdesc="OpenRC zfs init script"
- depends=('openrc-core' 'zfs-utils')
- install=zfs.install
+ pkgdesc="OpenRC zfs init script"
+ depends=('openrc-core' 'zfs-utils')
+ install=zfs.install
- install -Dm755 "${srcdir}/${_Izfs}" "${pkgdir}/etc/init.d/zfs"
+ _inst_initd 'zfs'
}
package_clamav-openrc() {
- pkgdesc="OpenRC clamav init script"
- depends=('openrc-core' 'clamav')
- backup=('etc/conf.d/clamd')
- install=clamav.install
+ pkgdesc="OpenRC clamav init script"
+ depends=('openrc-core' 'clamav')
+ backup=('etc/conf.d/clamd')
+ install=clamav.install
- install -Dm755 "${srcdir}/${_CClam}" "${pkgdir}/etc/conf.d/clamd"
- install -Dm755 "${srcdir}/${_IClam}" "${pkgdir}/etc/init.d/clamd"
-
- sed -e "${_shebang}" -e "${_binpath}" -i "${pkgdir}/etc/init.d/clamd"
+ _inst_confd 'clamd'
+ _inst_initd 'clamd'
}
package_networkmanager-openrc() {
- pkgdesc="OpenRC networkmanager init script"
- depends=('openrc-core' 'networkmanager-consolekit')
- backup=('etc/conf.d/NetworkManager')
- install=networkmanager.install
+ pkgdesc="OpenRC networkmanager init script"
+ depends=('openrc-core' 'networkmanager-consolekit')
+ backup=('etc/conf.d/NetworkManager')
+ install=networkmanager.install
- install -Dm755 "${srcdir}/${_CNM}" "${pkgdir}/etc/conf.d/NetworkManager"
- install -Dm755 "${srcdir}/${_INM}" "${pkgdir}/etc/init.d/NetworkManager"
+ _inst_confd 'NetworkManager'
+ _inst_initd 'NetworkManager'
- install -Dm755 "${srcdir}/${_SNM}" "${pkgdir}/etc/NetworkManager/dispatcher.d/10-openrc-status"
+ install -Dm755 "${srcdir}/10-openrc-status" "${pkgdir}/etc/NetworkManager/dispatcher.d/10-openrc-status"
- sed -e 's|@EPREFIX@/sbin|/usr/bin|' \
- -e 's|@EPREFIX@/usr/sbin|/usr/sbin|' \
- -e 's|#!/bin/sh|#!/usr/bin/sh|' \
- -i "${pkgdir}/etc/NetworkManager/dispatcher.d/10-openrc-status"
+ sed -e 's|@EPREFIX@/sbin|/usr/bin|' \
+ -e 's|@EPREFIX@/usr/sbin|/usr/bin|' \
+ -i "${pkgdir}/etc/NetworkManager/dispatcher.d/10-openrc-status"
+}
- sed -e "${_shebang}" -e "${_binpath}" -e "${_runpath}" -i "${pkgdir}/etc/init.d/NetworkManager"
+package_at-openrc() {
+ pkgdesc="OpenRC at init script"
+ depends=('at')
+ backup=('etc/conf.d/atd')
+ install=at.install
+
+ _inst_confd 'atd'
+ _inst_initd 'atd'
+
+ sed -e "${_runpath}" \
+ -i "${pkgdir}/etc/conf.d/atd"
}
-sha256sums=('ceada7a1c9e8b62cff506bc94a1813706c7de1ed23daf9c3450ad549df4fafb7'
- 'f0b15a0334f6177a6cf23cb9b169302c75745dc30857f24a7d11892feb6b1ee4'
- '204c66d2b7d4d20115acc7499708cf538538fe1c100281ad55f909508041fb19'
- '197e44ba1f438a18f5f7d9f5858feb19c1ece4286d82a5e63caf9be5b964aa76'
- '4dd4e7fa07bf2ab2d4f5753156f5df0ad2277523f6755b0eab3d2db3480989e2'
- '22a22c914d2a4f0fb5fc8495f4b7efcd1819efde548c9033ca612c181cd29eda'
- 'ec9f05b386a06a4b2d5398cc0c33f34eba3f5e74ad46ae203d682f8ebc593f99'
- '906c31e0817517dc6c141a7a10565140ea272d3c958a065f520a0ecb6f81912f'
- 'b29325498ee3b1f3d63672efcd1e93f0745eecdb9f4bb05fed82a2f085399484'
- 'aa027dac0d145bc342728864cd432a0cf3c25dd6cb66880e7b70df1a9d5a66cf'
- 'd36ff77fa193a065d25e373723e03f1a9471205151b82c73a6574cce4f095962'
- 'c404ad3b624004cab25bd3a89593cdeb0abbc25771d6e52caf2f37cb4f7b2b79'
- '1b1f2970cc81a6053fcb6c0ead786436b6423c67170087dde283e54f32ae16e5'
- '5e5a31fbd93294a6e210499a880fcab371b23706824c9d60d827b0187d7bade4'
- 'd47f22a33a83c14a4a0c333d6a445c40e550c491899fb0c6d323e23fe1eac7b7'
- '9ab6f022d2b2948660decf5e383984e6ddb9e9e5e6e2761c3031378ddd87e947'
- '25f2a1665c88dc5227698bdedc2098d6e37d12d8b966f00e2a180c95a33cc8b4'
- '4bd482a54decc5a51aee60e19ae31b0182d5857b112754247f04c0829b159b07'
- '36d489296c31736f8015b0ce27052b3f1555b7fe6335120c0477b044b8e4fb8d'
- '9b018f9f7a0975988387858823fe59a5cd8af6413d8c3170db0e24aac6021ec3'
- '40803821f498267f6567436eedc18201b5ae4b5390d6872fb15a94200c2ac06f'
- 'c7dc517cdb5ee10e2a07ccea15ec47ba0b7aff8ac1469204c8d7faf71bcae2c5'
- '97282007801cb9c0e3b431e2930dec3bb8ce8869f63f7e02d903846e96734684'
- '22a4b5e4c934ea8ba66764441b0bb60d31d23c147c8b64a4a035947327bfc3ec'
- '2e4a42dd64b7c6dacfcfefdab8dc1e7c45d7a0966ef8b928583d18393362c719'
- '8fbd405ad951e7ad046e4408abb98f4066077113187198767d52f28d7228bae4'
- '4705b68372090ee7db69da1ad35131551ed1ba99032db2486ff6c31d2170ce6b'
- '767a160c1b3392f0a12d3908a937548a2f604a9a121e744c309ee6f478420b02'
- 'f0a561f124cac3791fba6ee7ef5bc3ea46bd7535edf9e864689b0d9cfa65d332'
- '3b53f4aabf937766b5aa806561e9b97ab2be49ac25d76ae97f4fca4ab7a42e33'
- '365e9cbde2564a0430d8d1c0f8bc367db2bb32937ebf61649196f0e6a1ab5363'
- '9f3f47a7af4d349a7c525455616139b5019d3b7d0290398ba8c50ab91a62d089'
- 'c5eed64899811966220d04e4b9849ba77d2d111f34dc16f03960cf1ff5ec02da'
- '286148f5391d42c04a62a13cc125fa2130b5821e50da913c5a20d3a913e5f2d1'
- '06415d7f958210a4dd1490db5796b0d3c08392a81547f290776d9164dde786ae'
- '286148f5391d42c04a62a13cc125fa2130b5821e50da913c5a20d3a913e5f2d1'
- '2de9f69462bc3b575a69a150b6bba21a6e341477010d284cb77614e810a7bf8c'
- '3591473024005cdb15f13809c7675fbb964dc1b13e7658a01e12e34c7e751897'
- '37c95ff723fa578e9039613d09dbf790d99113a318c065422986c744519214e9'
- '434beee81ba04c96fcd03e6b37a4578c2c25af2c1007368469c48dd37523d56e'
- '105afc0382fc5adc03ed644dba4e78817015a55432349f259a286ac3c1b06628'
- '2eaef8071b34c1a3d55271d283b31e25e081791e48a6a55eb394912e4954ba48'
- '24cbcf298b869e4451b08aeba0e3e4948aa7faaac649f18e8f600ae5fb86a8fb'
- '7321272190ea9846ab7e19b034649c1cd711d4f94a6bdcaaaec2f683bb822e7d'
- '4bbb4e610d2d6bb22d83aa2980dca052a23b90fa6985c8245601b716dec986f4'
- '28ebd47810b0568fc7692218867d6804a1df70290681462f5555e230ca817732'
- 'c00bb921afe65e31a9ac4bbcfc97e4c9afa7ad77604c2dcb7eedc152fec5bbd8'
- '4594573f01fe5e04b6dde4525796acf909158591bdcefd662ec23fe0d1c3e1bd'
- '5f368362ef5c6deed538f20dc582d6da3c86871bd42297fa78536c0312021843'
- 'f8ed424818b866a0bf882c569f4484e8b1485ce7ac8c472f060fd877f2dcfe65')
+package_libvirt-openrc() {
+ pkgdesc="OpenRC libvirt init script"
+ depends=('libvirt')
+ backup=('etc/conf.d/libvirtd')
+ install=libvirt.install
+
+ _inst_confd 'libvirtd'
+ _inst_initd 'libvirtd'
+ _inst_initd 'virtlockd'
+}
diff --git a/pcr/openrc-misc/at.install b/pcr/openrc-misc/at.install
new file mode 100644
index 000000000..033059dd2
--- /dev/null
+++ b/pcr/openrc-misc/at.install
@@ -0,0 +1,16 @@
+_svc="atd"
+_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}'"
+}
diff --git a/pcr/openrc-misc/bitlbee.confd b/pcr/openrc-misc/bitlbee.confd
deleted file mode 100644
index c4003ce43..000000000
--- a/pcr/openrc-misc/bitlbee.confd
+++ /dev/null
@@ -1,2 +0,0 @@
-#Bitlbee options (see /usr/sbin/bitlbee -h)
-BITLBEE_OPTS="-F"
diff --git a/pcr/openrc-misc/bitlbee.initd b/pcr/openrc-misc/bitlbee.initd
deleted file mode 100644
index 235b3744e..000000000
--- a/pcr/openrc-misc/bitlbee.initd
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License, v2 or
-# later
-# $Header: /var/cvsroot/gentoo-x86/net-im/bitlbee/files/bitlbee.initd,v 1.4 2013/01/08 14:25:21 cedk Exp $
-
-DAEMON=/usr/sbin/bitlbee
-PIDFILE=/var/run/bitlbee/bitlbee.pid
-
-depend() {
- need logger net
-}
-
-start () {
- ebegin "Starting bitlbee"
- checkpath -d -m 0755 -o bitlbee:bitlbee `dirname ${PIDFILE}`
- start-stop-daemon --start --quiet \
- -u bitlbee:bitlbee --exec ${DAEMON} -- -P ${PIDFILE} \
- ${BITLBEE_OPTS}
- eend $?
-}
-
-stop() {
- ebegin "Stopping bitlbee"
- start-stop-daemon --stop --quiet --pidfile ${PIDFILE}
- eend $?
-}
-
diff --git a/pcr/openrc-misc/clamd.conf-r1 b/pcr/openrc-misc/clamd.conf-r1
deleted file mode 100644
index de95554ee..000000000
--- a/pcr/openrc-misc/clamd.conf-r1
+++ /dev/null
@@ -1,7 +0,0 @@
-# Config file for /etc/init.d/clamd
-
-START_CLAMD=yes
-START_FRESHCLAM=yes
-CLAMD_NICELEVEL=3
-FRESHCLAM_NICELEVEL=19
-IONICE_LEVEL=2
diff --git a/pcr/openrc-misc/clamd.initd-r6 b/pcr/openrc-misc/clamd.initd-r6
deleted file mode 100644
index 276e07aa8..000000000
--- a/pcr/openrc-misc/clamd.initd-r6
+++ /dev/null
@@ -1,129 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/files/clamd.initd-r6,v 1.1 2013/09/27 16:04:14 eras Exp $
-
-daemon_clamd="/usr/sbin/clamd"
-daemon_freshclam="/usr/bin/freshclam"
-daemon_milter="/usr/sbin/clamav-milter"
-
-extra_commands="logfix"
-
-depend() {
- use net
- provide antivirus
-}
-
-get_config() {
- clamconf | sed 's/["=]//g' | \
- awk "{
- if(\$0==\"Config file: $1.conf\") S=1
- if(S==1&&\$0==\"\") {
- print \"$3\"
- exit
- }
- if(S==1&&\$1~\"^$2\$\") {
- print \$2!=\"disabled\"?\$2:\"$3\"
- exit
- }
- }"
-}
-
-start() {
- # populate variables and fix log file permissions
- logfix
-
- if [ "${START_CLAMD}" = "yes" ]; then
- checkpath --quiet --mode 755 \
- --owner "${clamd_user}":"${clamd_user}" \
- --directory `dirname ${clamd_socket}`
- if [ -S "${clamd_socket}" ]; then
- rm -f ${clamd_socket}
- fi
- ebegin "Starting clamd"
- start-stop-daemon --start --quiet \
- --nicelevel ${CLAMD_NICELEVEL:-0} \
- --ionice ${IONICE_LEVEL:-0} \
- --exec ${daemon_clamd}
- eend $? "Failed to start clamd"
- fi
-
- if [ "${START_FRESHCLAM}" = "yes" ]; then
- checkpath --quiet --mode 755 \
- --owner "${clamd_user}":"${clamd_user}" \
- --directory `dirname ${clamd_socket}`
- ebegin "Starting freshclam"
- start-stop-daemon --start --quiet \
- --nicelevel ${FRESHCLAM_NICELEVEL:-0} \
- --ionice ${IONICE_LEVEL:-0} \
- --exec ${daemon_freshclam} -- -d
- retcode=$?
- if [ ${retcode} = 1 ]; then
- eend 0
- einfo "Virus databases are already up to date."
- else
- eend ${retcode} "Failed to start freshclam"
- fi
- fi
-
- if [ "${START_MILTER}" = "yes" ]; then
- if [ -z "${MILTER_CONF_FILE}" ]; then
- MILTER_CONF_FILE="/etc/clamav-milter.conf"
- fi
-
- ebegin "Starting clamav-milter"
- start-stop-daemon --start --quiet \
- --nicelevel ${MILTER_NICELEVEL:-0} \
- --ionice ${IONICE_LEVEL:-0} \
- --exec ${daemon_milter} -- -c ${MILTER_CONF_FILE}
- eend $? "Failed to start clamav-milter"
- fi
-}
-
-stop() {
- if [ "${START_CLAMD}" = "yes" ]; then
- ebegin "Stopping clamd"
- start-stop-daemon --stop --quiet --name clamd
- eend $? "Failed to stop clamd"
- fi
- if [ "${START_FRESHCLAM}" = "yes" ]; then
- ebegin "Stopping freshclam"
- start-stop-daemon --stop --quiet --name freshclam
- eend $? "Failed to stop freshclam"
- fi
- if [ "${START_MILTER}" = "yes" ]; then
- ebegin "Stopping clamav-milter"
- start-stop-daemon --stop --quiet --name clamav-milter
- eend $? "Failed to stop clamav-milter"
- fi
-}
-
-logfix() {
- clamd_socket=$(get_config clamd LocalSocket /run/clamav/clamd.sock)
- clamd_user=$(get_config clamd User clamav)
- freshclam_user=$(get_config freshclam DatabaseOwner clamav)
-
- if [ "${START_CLAMD}" = "yes" ]; then
- # fix clamd log permissions
- # (might be clobbered by logrotate or something)
- local logfile=$(get_config clamd LogFile)
- if [ -n "${logfile}" ]; then
- checkpath --quiet \
- --owner "${clamd_user}":"${clamd_user}" \
- --mode 640 \
- --file ${logfile}
- fi
- fi
-
- if [ "${START_FRESHCLAM}" = "yes" ]; then
- # fix freshclam log permissions
- # (might be clobbered by logrotate or something)
- local logfile=$(get_config freshclam UpdateLogFile)
- if [ -n "${logfile}" ]; then
- checkpath --quiet \
- --owner "${freshclam_user}":"${freshclam_user}" \
- --mode 640 \
- --file ${logfile}
- fi
- fi
-}
diff --git a/pcr/openrc-misc/conf.d-r2 b/pcr/openrc-misc/conf.d-r2
deleted file mode 100644
index 1e67ed04e..000000000
--- a/pcr/openrc-misc/conf.d-r2
+++ /dev/null
@@ -1,36 +0,0 @@
-# /etc/conf.d/cpupower: config file for /etc/init.d/cpupower
-
-# Options when starting cpufreq (given to the `cpupower` program)
-# Possible options are:
-# -g --governor <GOV> (ie: ondemand, performance, or powersave)
-# -d --min <FREQ> (ie: 1000MHz)
-# -u --max <FREQ> (ie: 2000MHz)
-# -f --freq <FREQ> (requires userspace governor, this *can not* be combined with
-# with any other parameters).
-# Frequencies can be passed in Hz, kHz (default), MHz, GHz, or THz by postfixing the
-# value with the wanted unit name, without any space.
-# (frequency in kHz =^ Hz * 0.001 =^ MHz * 1000 =^ GHz * 1000000).
-
-START_OPTS="--governor ondemand"
-
-# Options when stopping cpufreq (given to the `cpupower` program)
-# This option can be used to change governer on stop. Leaving it empty will ensure
-# the governer remains on the one provided above.
-STOP_OPTS=""
-
-# Extra settings to write to sysfs cpufreq values.
-#
-# up_threshold: threshold for stepping up frequency, where the value represents
-# the percentage of cpu load.
-#
-# down_threshold: threshold for stepping down frequency, where the value
-# represents the percentage of cpu load.
-#
-# sampling_down_factor: determines how frequently the governor polls the cpu, a
-# value greater than 1 improves performance by reducing the polling when the
-# load is high. This tunable has no effect on behavior at lower CPU frequencies.
-#
-# ignore_nice_load: when set to '1' the processes that are run with a 'nice'
-# value will not count in the usage calculation.
-
-#SYSFS_EXTRA="ondemand/ignore_nice_load=1 ondemand/up_threshold=75 ondemand/sampling_down_factor=10"
diff --git a/pcr/openrc-misc/conf.d.NetworkManager b/pcr/openrc-misc/conf.d.NetworkManager
deleted file mode 100644
index 4a9922965..000000000
--- a/pcr/openrc-misc/conf.d.NetworkManager
+++ /dev/null
@@ -1,4 +0,0 @@
-# If NetworkManager does not establish a connection within $INACTIVE_TIMEOUT
-# seconds after starting, the service will be marked as inactive, and it will
-# continue to wait for a connection in background mode.
-INACTIVE_TIMEOUT=1
diff --git a/pcr/openrc-misc/connman.confd b/pcr/openrc-misc/connman.confd
deleted file mode 100644
index 6d0c399e5..000000000
--- a/pcr/openrc-misc/connman.confd
+++ /dev/null
@@ -1,15 +0,0 @@
-# conf.d file for connman
-#
-# Please check connmand --help for more information.
-# Useful options are:
-# -c, --compat: enable NetworkManager compatibility mode.
-# -W, --wifi=NAME: select wpa_supplicant wifi driver to use.
-# This is useful if your wpa_supplicant is < 0.7
-# since connmand by default gives wpa_supplicant a
-# comma separated list of values and < 0.7 does not
-# understand or accept it.
-# -i, --device=DEV: force use of given interface name.
-# -I, --nodevice=DEV: force ignore of given interface name.
-# -p, --plugin=NAME: specify plugins to load.
-# -P, --noplugin=NAME: specify plugins not to load.
-CONNMAN_OPTS=""
diff --git a/pcr/openrc-misc/connman.initd2 b/pcr/openrc-misc/connman.initd2
deleted file mode 100644
index 6525df40f..000000000
--- a/pcr/openrc-misc/connman.initd2
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Purpose License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/connman/files/connman.initd2,v 1.1 2013/03/14 12:51:31 chainsaw Exp $
-
-depend() {
- need dbus
- provide net
-}
-
-start() {
- ebegin "Starting Connection Manager"
- start-stop-daemon --start --quiet --exec /usr/sbin/connmand -- ${CONNMAN_OPTS}
- eend $?
-}
-
-stop() {
- ebegin "Stopping Connection Manager"
- start-stop-daemon --stop --quiet --exec /usr/sbin/connmand
- eend $?
-}
-
-# vim: set ft=gentoo-init-d ts=3 sw=3 et:
diff --git a/pcr/openrc-misc/cupsd.init.d-r1 b/pcr/openrc-misc/cupsd.init.d-r1
deleted file mode 100644
index 2f2e9e2df..000000000
--- a/pcr/openrc-misc/cupsd.init.d-r1
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/sbin/runscript
-
-depend() {
- use net
- @neededservices@
- before nfs
- after logger
-}
-
-start() {
- ebegin "Starting cupsd"
-
- checkpath -q -d -m 0775 -o root:lp /var/cache/cups
- checkpath -q -d -m 0775 -o root:lp /var/cache/cups/rss
- checkpath -q -d -m 0755 -o root:lp /run/cups
- checkpath -q -d -m 0511 -o lp:lpadmin /run/cups/certs
-
- start-stop-daemon --start --quiet --exec /usr/sbin/cupsd
- eend $?
-}
-
-stop() {
- ebegin "Stopping cupsd"
- start-stop-daemon --stop --quiet --exec /usr/sbin/cupsd
- eend $?
-}
diff --git a/pcr/openrc-misc/fancontrol-init.d-2 b/pcr/openrc-misc/fancontrol-init.d-2
deleted file mode 100644
index 51857a1f7..000000000
--- a/pcr/openrc-misc/fancontrol-init.d-2
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/files/fancontrol-init.d-2,v 1.1 2012/12/28 00:00:03 flameeyes Exp $
-
-CONFIG=/etc/fancontrol
-
-depend() {
- need localmount
- use lm_sensors
-}
-
-command=/usr/sbin/fancontrol
-command_arguments="${CONFIG}"
-start_stop_daemon_args="--background"
-pidfile=/var/run/fancontrol.pid
-
-start_pre() {
- if [ ! -f ${CONFIG} ]; then
- eerror "Configuration file ${CONFIG} not found"
- return 1
- fi
-}
diff --git a/pcr/openrc-misc/fcron.init.3 b/pcr/openrc-misc/fcron.init.3
deleted file mode 100644
index 09c05c6d0..000000000
--- a/pcr/openrc-misc/fcron.init.3
+++ /dev/null
@@ -1,58 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-process/fcron/files/fcron.init.3,v 1.1 2012/08/29 17:38:40 flameeyes Exp $
-
-FCRON_INSTANCE=${SVCNAME##*.}
-
-configfile() {
- if [ -n "${FCRON_INSTANCE}" -a "${SVCNAME}" != "fcron" ]; then
- echo /etc/fcron/fcron.${FCRON_INSTANCE}.conf
- else
- echo /etc/fcron/fcron.conf
- fi
-}
-
-getconfig() {
- # if there is no configuration file return the default value
- if ! [ -f $(configfile) ]; then
- echo $2
- return 0
- fi
-
- sed -n -e 's:^$1[ \t]*=[ \t]*::p' $(configfile)
-}
-
-depend() {
- config $(configfile)
-
- use logger
- need clock hostname
- # provide the cron service if we are the main instance
- [ "${SVCNAME}" = "fcron" ] && provide cron
-}
-
-command="/usr/libexec/fcron"
-command_args="-c $(configfile)"
-pidfile=$(getconfig pidfile /var/run/fcron.pid)
-fcrontabs=$(getconfig fcrontabs /var/spool/fcron)
-
-extra_started_commands="reload"
-
-start_pre() {
- if [ ! -e $(configfile) ]; then
- eerror "You will need to create $(configfile) first"
- eerror "There is a sample in /etc/fcron"
- return 1
- fi
-
- if [ ! -d ${fcrontabs} ]; then
- ebegin "Creating missing spooldir ${fcrontabs}"
- ${command} --newspooldir ${fcrontabs}
- eend $?
- fi
-}
-
-reload() {
- kill -HUP `cat ${pidfile}`
-}
diff --git a/pcr/openrc-misc/fuse.init b/pcr/openrc-misc/fuse.init
deleted file mode 100644
index 30b512e8d..000000000
--- a/pcr/openrc-misc/fuse.init
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-MOUNTPOINT=/sys/fs/fuse/connections
-
-depend() {
- need localmount
-}
-
-start() {
-
- ebegin "Starting fuse"
- if ! grep -qw fuse /proc/filesystems; then
- modprobe fuse >/dev/null 2>&1 || eerror $? "Error loading fuse module"
- fi
- if grep -qw fusectl /proc/filesystems && \
- ! grep -qw $MOUNTPOINT /proc/mounts; then
- mount -t fusectl none $MOUNTPOINT >/dev/null 2>&1 || \
- eerror $? "Error mounting control filesystem"
- fi
- eend ${?}
-
-}
-
-stop() {
-
- ebegin "Stopping fuse"
- if grep -qw $MOUNTPOINT /proc/mounts; then
- umount $MOUNTPOINT >/dev/null 2>&1 || \
- eerror $? "Error unmounting control filesystem"
- fi
- eend ${?}
-
-}
diff --git a/pcr/openrc-misc/haveged-conf.d b/pcr/openrc-misc/haveged-conf.d
deleted file mode 100644
index 3d9863c52..000000000
--- a/pcr/openrc-misc/haveged-conf.d
+++ /dev/null
@@ -1,10 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/haveged/files/haveged-conf.d,v 1.1 2011/01/05 03:30:30 robbat2 Exp $
-
-WATERMARK=1024
-
-# -r0 is added always
-HAVEGED_OPTS="-w ${WATERMARK} -v 1"
-
-# vim:ft=gentoo-conf-d:
diff --git a/pcr/openrc-misc/haveged-init.d.3 b/pcr/openrc-misc/haveged-init.d.3
deleted file mode 100644
index d43447d11..000000000
--- a/pcr/openrc-misc/haveged-init.d.3
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/haveged/files/haveged-init.d.3,v 1.1 2013/01/25 16:58:06 flameeyes Exp $
-
-pidfile=/run/${SVCNAME}.pid
-
-command="/usr/sbin/${SVCNAME}"
-command_args="-r 0 ${HAVEGED_OPTS} -p ${pidfile}"
-
-depend() {
- need localmount
- use logger
- provide entropy
-}
-
-# vim:ft=gentoo-init-d:
diff --git a/pcr/openrc-misc/hdparm-conf.d.3 b/pcr/openrc-misc/hdparm-conf.d.3
deleted file mode 100644
index a1ae626b3..000000000
--- a/pcr/openrc-misc/hdparm-conf.d.3
+++ /dev/null
@@ -1,26 +0,0 @@
-# /etc/conf.d/hdparm: config file for /etc/init.d/hdparm
-
-#
-# Note that options such as -y which force *immediate* power saving options
-# should generally not be placed here. The hdparm init.d script may run at
-# anytime with respect to other init.d scripts that do system wide drive
-# scans (like the hald script), so they will merely get spun right back up.
-# If you wish to use these options, please use the local.start init.d script
-# instead so that you're guaranteed that it will run last.
-#
-
-# You can either set hdparm arguments for each drive using hdX_args,
-# discX_args, cdromX_args and genericX_args, e.g.
-#
-# hda_args="-d1 -X66"
-# disc1_args="-d1"
-# cdrom0_args="-d1"
-
-# or you can set options for all PATA drives
-pata_all_args="-d1"
-
-# or you can set options for all SATA drives
-sata_all_args=""
-
-# or, you can set hdparm options for all drives
-all_args=""
diff --git a/pcr/openrc-misc/hdparm-init-8 b/pcr/openrc-misc/hdparm-init-8
deleted file mode 100644
index 9a4200c82..000000000
--- a/pcr/openrc-misc/hdparm-init-8
+++ /dev/null
@@ -1,61 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/hdparm/files/hdparm-init-8,v 1.3 2012/04/29 00:30:18 vapier Exp $
-
-depend() {
- before bootmisc
-}
-
-do_hdparm() {
- local e=
- eval e=\$${extra_args}
- [ -z "${args}${all_args}${e}" ] && return 0
-
- if [ -n "${args:=${all_args} ${e}}" ] ; then
- local orgdevice=$(readlink -f "${device}")
- if [ -b "${orgdevice}" ] ; then
- ebegin "Running hdparm on ${device}"
- hdparm ${args} "${device}" > /dev/null
- eend $?
- fi
- fi
-}
-
-scan_nondevfs() {
- # non-devfs compatible system
- local device
-
- for device in /dev/hd* /dev/sd* /dev/cdrom* ; do
- [ -e "${device}" ] || continue
- case "${device}" in
- *[0-9]) continue ;;
- /dev/hd*) extra_args="pata_all_args" ;;
- /dev/sd*) extra_args="sata_all_args" ;;
- *) extra_args="_no_xtra_args" ;;
- esac
-
- # check that the block device really exists by
- # opening it for reading
- local errmsg= status= nomed=1
- errmsg=$(export LC_ALL=C ; : 2>&1 <"${device}")
- status=$?
- case ${errmsg} in
- *": No medium found") nomed=0;;
- esac
- if [ -b "${device}" ] && [ "${status}" = "0" -o "${nomed}" = "0" ] ; then
- local conf_var="${device##*/}_args"
- eval args=\$${conf_var}
- do_hdparm
- fi
- done
-}
-
-start() {
- if get_bootparam "nohdparm" ; then
- ewarn "Skipping hdparm init as requested in kernel cmdline"
- return 0
- fi
-
- scan_nondevfs
-}
diff --git a/pcr/openrc-misc/init.d-r4 b/pcr/openrc-misc/init.d-r4
deleted file mode 100644
index 789945b00..000000000
--- a/pcr/openrc-misc/init.d-r4
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/cpupower/files/init.d-r4,v 1.1 2013/12/25 11:46:32 ssuominen Exp $
-
-CPUFREQ_SYSFS=/sys/devices/system/cpu/cpufreq
-
-change() {
- local c ret=0 opts="$1"
- if [ -n "$opts" ] ; then
- ebegin "Running cpupower -c all frequency-set ${opts}"
- cpupower -c all frequency-set ${opts} >/dev/null 2>&1
- : $(( ret += $? ))
- eend ${ret}
-
- if [ -d ${CPUFREQ_SYSFS} ] && [ -n "${SYSFS_EXTRA}" ] ; then
- c=1
- einfo "Setting extra options: ${SYSFS_EXTRA}"
- if cd ${CPUFREQ_SYSFS} ; then
- local o v
- for o in ${SYSFS_EXTRA} ; do
- v=${o#*=}
- o=${o%%=*}
- echo ${v} > ${o} || break
- done
- c=0
- fi
- eend ${c}
- : $(( ret += c ))
- fi
- fi
-
- return ${ret}
-}
-
-start() {
- change "${START_OPTS}"
-}
-
-stop() {
- change "${STOP_OPTS}"
-}
diff --git a/pcr/openrc-misc/init.d.NetworkManager b/pcr/openrc-misc/init.d.NetworkManager
deleted file mode 100644
index 8465449d8..000000000
--- a/pcr/openrc-misc/init.d.NetworkManager
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/sbin/runscript
-# Copyright (c) 2008 Saleem Abdulrasool <compnerd@compnerd.org>
-# Distributed under the terms of the GNU General Purpose License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/networkmanager/files/init.d.NetworkManager,v 1.1 2013/01/28 07:05:05 tetromino Exp $
-
-description="NetworkManager daemon. The service is marked as started only \
-when a network connection is established."
-
-depend() {
- need dbus
- provide net
-}
-
-start() {
- # If we are re-called by a dispatcher event, we want to mark the service
- # as started without starting the daemon again
- yesno "${IN_BACKGROUND}" && return 0
-
- [ -z "${INACTIVE_TIMEOUT}" ] && INACTIVE_TIMEOUT="1"
-
- ebegin "Starting NetworkManager"
- start-stop-daemon --start --quiet --pidfile /run/NetworkManager/NetworkManager.pid \
- --exec /usr/sbin/NetworkManager -- --pid-file /run/NetworkManager/NetworkManager.pid
- local _retval=$?
- eend "${_retval}"
- if [ "x${_retval}" = 'x0' ] && ! nm-online -t "${INACTIVE_TIMEOUT}"; then
- einfo "Marking NetworkManager as inactive. It will automatically be marked"
- einfo "as started after a network connection has been established."
- mark_service_inactive
- fi
- return "${_retval}"
-}
-
-stop() {
- # If we are re-called by a dispatcher event, we want to mark the service
- # as inactive without stopping the daemon
- if yesno "${IN_BACKGROUND}"; then
- mark_service_inactive "${SVCNAME}"
- return 0
- fi
-
- ebegin "Stopping NetworkManager"
- local pidfile=/run/NetworkManager/NetworkManager.pid
- if [ ! -e "${pidfile}" ] && [ -e /var/run/NetworkManager.pid ]; then
- # Try stopping the pid file used by <0.9.7
- pidfile=/var/run/NetworkManager.pid
- start-stop-daemon --stop --quiet --pidfile "${pidfile}"
- ret=$?
- [ ${ret} = 0 ] && [ -e "${pidfile}" ] && rm "${pidfile}"
- eend ${ret}
- else
- start-stop-daemon --stop --quiet --pidfile "${pidfile}"
- eend $?
- fi
-}
-
-# vim: set ft=gentoo-init-d ts=4 :
diff --git a/pcr/openrc-misc/irexec-confd b/pcr/openrc-misc/irexec-confd
deleted file mode 100644
index 48eb8dd4c..000000000
--- a/pcr/openrc-misc/irexec-confd
+++ /dev/null
@@ -1,9 +0,0 @@
-# Options to pass to the irexec process
-IREXEC_OPTS="/etc/lircrc"
-
-# User to execute irexec as.
-# Warning: Running irexec as root can open security holes
-#IREXEC_USER="root"
-
-# Use this to disable the warning printed when starting irexec as root
-# IREXEC_DISABLE_ROOT_WARNING=yes
diff --git a/pcr/openrc-misc/irexec-initd-0.8.6-r2 b/pcr/openrc-misc/irexec-initd-0.8.6-r2
deleted file mode 100644
index 567322a43..000000000
--- a/pcr/openrc-misc/irexec-initd-0.8.6-r2
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/sbin/runscript
-# Copyright 2003 Martin Hierling <mad@cc.fh-lippe.de>
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/files/irexec-initd-0.8.6-r2,v 1.1 2009/11/15 10:04:21 zzam Exp $
-
-: ${IREXEC_USER:=root}
-
-depend() {
- need lirc
-}
-
-start() {
- if [ "x${IREXEC_USER}" = "xroot" -a "x${IREXEC_DISABLE_ROOT_WARNING}" != "xyes" ]; then
- ewarn "Warning: Running irexec as root can open security holes"
- fi
-
- ebegin "Starting irexec"
- start-stop-daemon --start --chuid ${IREXEC_USER} --user ${IREXEC_USER} --chdir / \
- --exec /usr/bin/irexec -- --daemon ${IREXEC_OPTS}
- eend $? "Failed to start irexec."
-}
-
-stop() {
- ebegin "Stopping irexec"
- start-stop-daemon --stop --exec /usr/bin/irexec --user ${IREXEC_USER}
- eend $? "Failed to stop irexec."
-}
-
diff --git a/pcr/openrc-misc/libvirt.install b/pcr/openrc-misc/libvirt.install
new file mode 100644
index 000000000..2b58e0e07
--- /dev/null
+++ b/pcr/openrc-misc/libvirt.install
@@ -0,0 +1,16 @@
+_svc="libvirtd"
+_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}'"
+}
diff --git a/pcr/openrc-misc/lircd-0.8.6-r2 b/pcr/openrc-misc/lircd-0.8.6-r2
deleted file mode 100644
index d6f16ba07..000000000
--- a/pcr/openrc-misc/lircd-0.8.6-r2
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/files/lircd-0.8.6-r2,v 1.2 2014/01/23 21:37:11 vapier Exp $
-
-PIDFILE=/var/run/lirc/${SVCNAME}.pid
-: ${LIRCD_SYMLINKFILE:=/dev/lircd}
-: ${LIRCD_SOCKET:=/var/run/lirc/lircd}
-
-depend() {
- need localmount
- use modules
- provide lirc
-}
-
-start() {
- local retval
-
- ebegin "Starting lircd"
-
- for retval in ${LIRCD_SET_SYSCLASSRCS} ; do
- if [ -e /sys/class/rc/${retval}/protocols ] && \
- grep -qs 'lirc' /sys/class/rc/${retval}/protocols ; then
- einfo "Setting lirc protocol active for ${retval}"
- echo lirc >/sys/class/rc/${retval}/protocols
- fi
- done
-
- checkpath -q -d -m 0755 -o root:root /var/run/lirc
- rm -Rf ${LIRCD_SOCKET} && ln -s ${LIRCD_SOCKET} ${LIRCD_SYMLINKFILE}
- if [ $? -ne 0 ]; then
- eend $? "Unable to create symbolic link ${LIRCD_SYMLINKFILE}"
- return 1
- fi
-
- start-stop-daemon --start --quiet --pidfile "${PIDFILE}" --exec /usr/sbin/lircd -- \
- -P "${PIDFILE}" ${LIRCD_OPTS}
- retval=$?
-
- if [ ${retval} -ne 0 ]; then
- rm -Rf ${LIRCD_SOCKET}
- fi
-
- eend ${retval}
-}
-
-stop() {
- ebegin "Stopping lircd"
- rm -f ${LIRCD_SYMLINKFILE}
- start-stop-daemon --stop --quiet --pidfile "${PIDFILE}" --exec /usr/sbin/lircd
- eend $?
-}
diff --git a/pcr/openrc-misc/lircd.conf.4 b/pcr/openrc-misc/lircd.conf.4
deleted file mode 100644
index f59c5f214..000000000
--- a/pcr/openrc-misc/lircd.conf.4
+++ /dev/null
@@ -1,22 +0,0 @@
-# Options to pass to the lircd process
-
-# for devices with lirc-kernel-module
-#LIRCD_OPTS="-d /dev/lirc0"
-#LIRCD_OPTS="-d /dev/lirc"
-
-# for devices using the input-layer
-#LIRCD_OPTS="-H devinput -d /dev/input/by-path/pci-0000:00:0a.0--event-ir"
-# This should work, Bug #235107
-#LIRCD_OPTS="-H devinput -d name=*DVB*"
-
-# set default protocol to 'lirc' for in-kernel IR decoding
-# for the following entries in /sys/class/rc/
-# (space-separated list if there is more than one)
-LIRCD_SET_SYSCLASSRCS="rc0"
-
-# If running mulitple instances of lircd, the following
-# can be used to override the default socket path and
-# socket symlink
-#LIRCD_SOCKET="/var/run/lirc/lircd"
-#LIRCD_SYMLINKFILE="/dev/lircd"
-
diff --git a/pcr/openrc-misc/lircmd b/pcr/openrc-misc/lircmd
deleted file mode 100644
index d3837781f..000000000
--- a/pcr/openrc-misc/lircmd
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/files/lircmd,v 1.2 2004/09/28 00:22:15 swegener Exp $
-
-depend() {
- need lircd
-}
-
-start() {
- ebegin "Starting lircmd"
- start-stop-daemon --start --quiet --exec /usr/sbin/lircmd
- eend $?
-}
-
-stop() {
- ebegin "Stopping lircmd"
- start-stop-daemon --stop --quiet --exec /usr/sbin/lircmd
- eend $?
-}
diff --git a/pcr/openrc-misc/lm_sensors-3-init.d b/pcr/openrc-misc/lm_sensors-3-init.d
deleted file mode 100644
index 18fb35370..000000000
--- a/pcr/openrc-misc/lm_sensors-3-init.d
+++ /dev/null
@@ -1,105 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/files/lm_sensors-3-init.d,v 1.1 2008/03/17 07:59:28 dberkholz Exp $
-
-checkconfig() {
- if [ ! -f /etc/conf.d/lm_sensors ]; then
- eerror "/etc/conf.d/lm_sensors does not exist, try running sensors-detect"
- return 1
- fi
-
- if [ "${LOADMODULES}" = "yes" -a -f /proc/modules ]; then
- if [ -z "${MODULE_0}" ]; then
- eerror "MODULE_0 is not set in /etc/conf.d/lm_sensors, try running sensors-detect"
- return 1
- fi
- fi
-}
-
-start() {
- checkconfig || return 1
-
- if [ "${LOADMODULES}" = "yes" -a -f /proc/modules ]; then
- einfo "Loading lm_sensors modules..."
-
- mount | grep sysfs >/dev/null 2>&1
- if [ ${?} = 0 ]; then
- if ! ( [ -e /sys/i2c ] || [ -e /sys/bus/i2c ] ); then
- ebegin " Loading i2c-core"
- modprobe i2c-core >/dev/null 2>&1
- if [ ${?} != 0 ]; then
- eerror " Could not load i2c-core!"
- eend 1
- fi
- ( [ -e /sys/i2c ] || [ -e /sys/bus/i2c ] ) || return 1
- eend 0
- fi
- elif ! [ -e /proc/sys/dev/sensors ]; then
- ebegin " Loading i2c-proc"
- modprobe i2c-proc >/dev/null 2>&1
- if [ ${?} != 0 ]; then
- eerror " Could not load i2c-proc!"
- eend 1
- fi
- [ -e /proc/sys/dev/sensors ] || return 1
- eend 0
- fi
-
- i=0
- while true; do
- module=`eval echo '$'MODULE_${i}`
- module_args=`eval echo '$'MODULE_${i}_ARGS`
- if [ -z "${module}" ]; then
- break
- fi
- ebegin " Loading ${module}"
- modprobe ${module} ${module_args} >/dev/null 2>&1
- eend $?
- i=$(($i+1))
- done
- fi
-
- if [ "${INITSENSORS}" = "yes" ]; then
- if ! [ -f /etc/sensors3.conf ]; then
- eerror "/etc/sensors3.conf does not exist!"
- return 1
- fi
-
- ebegin "Initializing sensors"
- /usr/bin/sensors -s >/dev/null 2>&1
- eend ${?}
- fi
-}
-
-stop() {
- checkconfig || return 1
-
- if [ "${LOADMODULES}" = "yes" -a -f /proc/modules ]; then
- einfo "Unloading lm_sensors modules..."
-
- # find the highest possible MODULE_ number
- i=0
- while true; do
- module=`eval echo '$'MODULE_${i}`
- if [ -z "${module}" ] ; then
- break
- fi
- i=$(($i+1))
- done
-
- while [ ${i} -gt 0 ]; do
- i=$(($i-1))
- module=`eval echo '$'MODULE_${i}`
- ebegin " Unloading ${module}"
- rmmod ${module} >/dev/null 2>&1
- eend $?
- done
-
- if [ -e /proc/sys/dev/sensors ] ; then
- ebegin " Unloading i2c-proc"
- rmmod i2c-proc >/dev/null 2>&1
- eend $?
- fi
- fi
-}
diff --git a/pcr/openrc-misc/master-confd-1 b/pcr/openrc-misc/master-confd-1
deleted file mode 100644
index c70e8e766..000000000
--- a/pcr/openrc-misc/master-confd-1
+++ /dev/null
@@ -1,5 +0,0 @@
-# /etc/conf.d/salt-master: config file for /etc/init.d/salt-master
-
-# see man pages for salt-minion or run `salt-master --help`
-# for valid cmdline options
-SALT_OPTS="--log-level=warning"
diff --git a/pcr/openrc-misc/master-initd-3 b/pcr/openrc-misc/master-initd-3
deleted file mode 100644
index f9b102198..000000000
--- a/pcr/openrc-misc/master-initd-3
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/salt/files/master-initd-3,v 1.1 2014/02/27 00:02:32 chutzpah Exp $
-
-command="/usr/bin/salt-master"
-command_args="${SALT_OPTS}"
-command_background="1"
-pidfile="/var/run/salt-master.pid"
-name="SALT master daemon"
-
-depend() {
- use net logger
-}
diff --git a/pcr/openrc-misc/metalog.confd b/pcr/openrc-misc/metalog.confd
deleted file mode 100644
index caa5918d3..000000000
--- a/pcr/openrc-misc/metalog.confd
+++ /dev/null
@@ -1,19 +0,0 @@
-# /etc/conf.d/metalog
-# $Header: /var/cvsroot/gentoo-x86/app-admin/metalog/files/metalog.confd,v 1.7 2006/02/08 01:04:02 vapier Exp $
-
-# Some useful options:
-# -a Log with buffering
-# -s Log without buffering
-# See `metalog --help` for more
-
-METALOG_OPTS=""
-
-
-# Options used by /usr/sbin/consolelog.sh
-
-# Space delimited list of devices to write "console" messages to
-#CONSOLE="/dev/console /dev/tty10"
-CONSOLE="/dev/tty10"
-
-# Format of logging (make sure you use single quotes)
-FORMAT='$1 [$2] $3'
diff --git a/pcr/openrc-misc/metalog.initd b/pcr/openrc-misc/metalog.initd
deleted file mode 100644
index 7f1d29282..000000000
--- a/pcr/openrc-misc/metalog.initd
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/metalog/files/metalog.initd,v 1.5 2011/09/23 03:15:23 vapier Exp $
-
-extra_started_commands="buffer unbuffer"
-
-PIDFILE=/var/run/metalog.pid
-
-depend() {
- need localmount
- use clock hostname
- after bootmisc
- provide logger
-}
-
-ssd() { start-stop-daemon --exec /usr/sbin/metalog --pidfile "${PIDFILE}" "$@" ; }
-
-start() {
- ebegin "Starting metalog"
- ssd --start -- \
- --daemonize --pidfile="${PIDFILE}" ${METALOG_OPTS}
- eend $?
-}
-
-stop() {
- ebegin "Stopping metalog"
- ssd --stop
- eend $?
-}
-
-buffer() {
- ebegin "Enabling log buffering"
- ssd --signal USR2
- eend $?
-}
-
-unbuffer() {
- ebegin "Disabling log buffering"
- ssd --signal USR1
- eend $?
-}
diff --git a/pcr/openrc-misc/minion-confd-1 b/pcr/openrc-misc/minion-confd-1
deleted file mode 100644
index d69d83fcd..000000000
--- a/pcr/openrc-misc/minion-confd-1
+++ /dev/null
@@ -1,5 +0,0 @@
-# /etc/conf.d/salt-minion: config file for /etc/init.d/salt-minion
-
-# see man pages for salt-minion or run `salt-minion --help`
-# for valid cmdline options
-SALT_OPTS="--log-level=warning"
diff --git a/pcr/openrc-misc/minion-initd-3 b/pcr/openrc-misc/minion-initd-3
deleted file mode 100644
index bf57cbd5c..000000000
--- a/pcr/openrc-misc/minion-initd-3
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/salt/files/minion-initd-3,v 1.1 2014/02/27 00:02:32 chutzpah Exp $
-
-command="/usr/bin/salt-minion"
-command_args="${SALT_OPTS}"
-command_background="1"
-pidfile="/var/run/salt-minion.pid"
-name="SALT minion daemon"
-
-depend() {
- need net
- use logger
-}
diff --git a/pcr/openrc-misc/mpd2.init b/pcr/openrc-misc/mpd2.init
deleted file mode 100644
index 53f5a02de..000000000
--- a/pcr/openrc-misc/mpd2.init
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/mpd/files/mpd2.init,v 1.1 2014/04/15 16:35:25 angelos Exp $
-
-depend() {
- need localmount
- use net netmount nfsmount alsasound esound pulseaudio
-}
-
-checkconfig() {
- if ! [ -f /etc/mpd.conf ]; then
- eerror "Configuration file /etc/mpd.conf does not exist."
- return 1
- fi
-
- if ! grep -q ^pid_file /etc/mpd.conf; then
- eerror "Invalid configuration: pid_file needs to be set."
- return 1
- fi
-
- return 0
-}
-
-start() {
- checkconfig || return 1
-
- ebegin "Starting Music Player Daemon"
- start-stop-daemon --start --quiet --exec /usr/bin/mpd -- /etc/mpd.conf 2>/dev/null
- eend $?
-}
-
-stop() {
- ebegin "Stopping Music Player Daemon"
- /usr/bin/mpd --kill
- eend $?
-}
diff --git a/pcr/openrc-misc/networkmanager.install b/pcr/openrc-misc/networkmanager.install
index c4c741cdf..c634a0a68 100644
--- a/pcr/openrc-misc/networkmanager.install
+++ b/pcr/openrc-misc/networkmanager.install
@@ -8,7 +8,8 @@ post_install() {
post_upgrade() {
# For transition from old nm-openrc
- rc-update del networkmanager
+ oldpkgver=${2%-*}
+ [ "$oldpkgver" -lt 20150118 ] && rc-update del networkmanager
post_install "$1"
}
diff --git a/pcr/openrc-misc/ntp-client.confd b/pcr/openrc-misc/ntp-client.confd
deleted file mode 100644
index 786004da8..000000000
--- a/pcr/openrc-misc/ntp-client.confd
+++ /dev/null
@@ -1,21 +0,0 @@
-# /etc/conf.d/ntp-client
-
-# Command to run to set the clock initially
-# Most people should just leave this line alone ...
-# however, if you know what you're doing, and you
-# want to use ntpd to set the clock, change this to 'ntpd'
-NTPCLIENT_CMD="ntpdate"
-
-# Options to pass to the above command
-# This default setting should work fine but you should
-# change the default 'pool.ntp.org' to something closer
-# to your machine. See http://www.pool.ntp.org/ or
-# try running `netselect -s 3 pool.ntp.org`.
-NTPCLIENT_OPTS="-s -b -u \
- 0.gentoo.pool.ntp.org 1.gentoo.pool.ntp.org \
- 2.gentoo.pool.ntp.org 3.gentoo.pool.ntp.org"
-
-# If you use hostnames above, then you should depend on dns
-# being up & running before we try to run. Otherwise, you
-# can disable this.
-rc_use="dns"
diff --git a/pcr/openrc-misc/ntp-client.rc b/pcr/openrc-misc/ntp-client.rc
deleted file mode 100644
index 3a8b15e80..000000000
--- a/pcr/openrc-misc/ntp-client.rc
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/ntp/files/ntp-client.rc,v 1.13 2013/12/24 11:01:52 vapier Exp $
-
-depend() {
- before cron portmap
- after net
- use dns logger
-}
-
-checkconfig() {
- if ! type "${NTPCLIENT_CMD}" >/dev/null 2>&1 ; then
- eerror "Please edit /etc/conf.d/ntp-client"
- eerror "Unable to locate the client command ${NTPCLIENT_CMD}!"
- return 1
- fi
- if [ -z "${NTPCLIENT_OPTS}" ] ; then
- eerror "Please edit /etc/conf.d/ntp-client"
- eerror "I need to know what server/options to use!"
- return 1
- fi
- return 0
-}
-
-start() {
- checkconfig || return $?
-
- ebegin "Setting clock via the NTP client '${NTPCLIENT_CMD}'"
- "${NTPCLIENT_CMD}" ${NTPCLIENT_OPTS}
- eend $? "Failed to set clock"
-}
diff --git a/pcr/openrc-misc/ntpd.confd b/pcr/openrc-misc/ntpd.confd
deleted file mode 100644
index 2b74282c5..000000000
--- a/pcr/openrc-misc/ntpd.confd
+++ /dev/null
@@ -1,6 +0,0 @@
-# /etc/conf.d/ntpd
-
-# Options to pass to the ntpd process
-# Most people should leave this line alone ...
-# however, if you know what you're doing, feel free to tweak
-NTPD_OPTS="-g -u ntp:ntp"
diff --git a/pcr/openrc-misc/ntpd.rc-r1 b/pcr/openrc-misc/ntpd.rc-r1
deleted file mode 100644
index 1a34bb2f2..000000000
--- a/pcr/openrc-misc/ntpd.rc-r1
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/ntp/files/ntpd.rc-r1,v 1.2 2014/12/23 17:43:25 floppym Exp $
-
-description="ntpd - the network time protocol daemon"
-pidfile="/var/run/ntpd.pid"
-command="/usr/sbin/ntpd"
-command_args="-p ${pidfile} ${NTPD_OPTS}"
-start_stop_daemon_args="--pidfile ${pidfile}"
-
-depend() {
- use net dns logger
- after ntp-client
-}
-
-start_pre() {
- if [ ! -f /etc/ntp.conf ] ; then
- eerror "Please create /etc/ntp.conf"
- return 1
- fi
- return 0
-}
diff --git a/pcr/openrc-misc/rsyslog.confd b/pcr/openrc-misc/rsyslog.confd
deleted file mode 100644
index d8cbe8759..000000000
--- a/pcr/openrc-misc/rsyslog.confd
+++ /dev/null
@@ -1,30 +0,0 @@
-# /etc/conf.d/rsyslog
-
-# Configuration file
-RSYSLOG_CONFIGFILE="/etc/rsyslog.conf"
-
-# PID file
-# If you should ever change this, remember to update
-# "/etc/logrotate.d/rsyslog", too.
-RSYSLOG_PIDFILE="/run/rsyslogd.pid"
-
-# You can use this configuration option to pass additional options to the
-# start-stop-daemon, see start-stop-daemon(8) for more details.
-# Per default we wait 1000ms after we have started the service to ensure
-# that the daemon is really up and running.
-RSYSLOG_SSDARGS="--wait 1000"
-
-# The termination timeout (start-stop-daemon parameter "retry") ensures
-# that the service will be terminated within a given time (60 + 5 seconds
-# per default) when you are stopping the service.
-# You need to increase the value when you are working with a large queue.
-# See http://www.rsyslog.com/doc/queues.html for further information.
-RSYSLOG_TERMTIMEOUT="TERM/60/KILL/5"
-
-
-# Options to rsyslogd
-# See rsyslogd(8) for more details
-# Notes:
-# * Do not specify another PIDFILE but use the variable above to change the location
-# * Do not specify another CONFIGFILE but use the variable above to change the location
-RSYSLOG_OPTS=""
diff --git a/pcr/openrc-misc/rsyslog.initd b/pcr/openrc-misc/rsyslog.initd
deleted file mode 100644
index ec831d7f8..000000000
--- a/pcr/openrc-misc/rsyslog.initd
+++ /dev/null
@@ -1,69 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/rsyslog/files/8-stable/rsyslog.initd,v 1.1 2014/09/30 13:09:39 polynomial-c Exp $
-
-RSYSLOG_CONFIGFILE=${RSYSLOG_CONFIGFILE:-"/etc/rsyslog.conf"}
-RSYSLOG_PIDFILE=${RSYSLOG_PIDFILE:-"/run/rsyslogd.pid"}
-
-command="/usr/sbin/rsyslogd"
-command_args="${RSYSLOG_OPTS} -f ${RSYSLOG_CONFIGFILE} -i ${RSYSLOG_PIDFILE}"
-start_stop_daemon_args="${RSYSLOG_SSDARGS}"
-pidfile="${RSYSLOG_PIDFILE}"
-retry="${RSYSLOG_TERMTIMEOUT}"
-
-required_files="${RSYSLOG_CONFIGFILE}"
-
-description="RSYSLOG is the rocket-fast system for log processing (syslog replacement)."
-
-extra_commands="configtest"
-extra_started_commands="rotate"
-
-description_configtest="Run rsyslogd's internal config check."
-
-description_rotate="Sends rsyslogd a signal to re-open its log files."
-
-depend() {
- need clock hostname localmount
- provide logger
-}
-
-start_pre() {
- if [ "${RC_CMD}" != "restart" ]; then
- configtest || return 1
- fi
-}
-
-stop_pre() {
- if [ "${RC_CMD}" = "restart" ]; then
- configtest || return 1
- fi
-}
-
-stop_post() {
- rm -f ${RSYSLOG_PIDFILE}
-}
-
-configtest() {
- # This will currently only detect fatal errors
- # See https://github.com/rsyslog/rsyslog/issues/79
-
- local _test_command="${command} -N 999 -f ${RSYSLOG_CONFIGFILE}"
- local _retval=0
-
- ebegin "Checking rsyslogd's configuration"
- ${_test_command} >/dev/null 2>&1
- _retval=$?
-
- if [ ${_retval} -ne 0 ]; then
- ${_test_command}
- fi
-
- eend ${_retval} "failed, please correct errors above"
-}
-
-rotate() {
- ebegin "Re-opening rsyslogd logs"
- start-stop-daemon --signal SIGHUP --pidfile "${RSYSLOG_PIDFILE}"
- eend $?
-}
diff --git a/pcr/openrc-misc/saned.confd b/pcr/openrc-misc/saned.confd
deleted file mode 100644
index adb1eab2c..000000000
--- a/pcr/openrc-misc/saned.confd
+++ /dev/null
@@ -1,2 +0,0 @@
-# The user saned should drop its privileges to after startup
-#SANED_USER=""
diff --git a/pcr/openrc-misc/saned.initd b/pcr/openrc-misc/saned.initd
deleted file mode 100644
index 26498dd71..000000000
--- a/pcr/openrc-misc/saned.initd
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/sane-backends/files/saned.initd,v 1.1 2013/03/15 08:15:52 phosphan Exp $
-
-pidfile="/var/run/saned/saned.pid"
-command="/usr/sbin/saned"
-command_args="-a ${SANED_USER:-root}"
-
-start_pre() {
- checkpath -d -o ${SANED_USER:-root} ${pidfile%/*}
-}
diff --git a/pcr/openrc-misc/sensord-4-init.d b/pcr/openrc-misc/sensord-4-init.d
deleted file mode 100644
index 293341c69..000000000
--- a/pcr/openrc-misc/sensord-4-init.d
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/files/sensord-4-init.d,v 1.3 2013/09/17 20:05:50 pacho Exp $
-
-CONFIG=/etc/sensors3.conf
-
-depend() {
- need localmount
- use logger lm_sensors
-}
-
-pidfile=/run/sensord.pid
-command=/usr/sbin/sensord
-command_args="--config-file ${CONFIG} ${SENSORD_OPTIONS} --pid-file ${pidfile}"
-
-start_pre() {
- if [ ! -f ${CONFIG} ]; then
- eerror "Configuration file ${CONFIG} not found"
- return 1
- fi
-}
diff --git a/pcr/openrc-misc/sntp.confd b/pcr/openrc-misc/sntp.confd
deleted file mode 100644
index d11983a3f..000000000
--- a/pcr/openrc-misc/sntp.confd
+++ /dev/null
@@ -1,4 +0,0 @@
-# /etc/conf.d/sntp
-
-# Options to pass to sntp
-SNTP_OPTS="-s 0.gentoo.pool.ntp.org 1.gentoo.pool.ntp.org 2.gentoo.pool.ntp.org 3.gentoo.pool.ntp.org"
diff --git a/pcr/openrc-misc/sntp.rc b/pcr/openrc-misc/sntp.rc
deleted file mode 100644
index cd42b4497..000000000
--- a/pcr/openrc-misc/sntp.rc
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/ntp/files/sntp.rc,v 1.1 2013/07/06 07:15:02 pacho Exp $
-
-depend() {
- before cron portmap
- after net
- use dns logger
-}
-
-checkconfig() {
- if [ -z "${SNTP_OPTS}" ] ; then
- eerror "Please edit /etc/conf.d/sntp"
- eerror "I need to know what server/options to use!"
- return 1
- fi
- return 0
-}
-
-start() {
- checkconfig || return $?
-
- ebegin "Setting clock via SNTP"
- /usr/bin/sntp ${SNTP_OPTS}
- eend $? "Failed to set clock"
-}
diff --git a/pcr/openrc-misc/syndic-confd-1 b/pcr/openrc-misc/syndic-confd-1
deleted file mode 100644
index d69d83fcd..000000000
--- a/pcr/openrc-misc/syndic-confd-1
+++ /dev/null
@@ -1,5 +0,0 @@
-# /etc/conf.d/salt-minion: config file for /etc/init.d/salt-minion
-
-# see man pages for salt-minion or run `salt-minion --help`
-# for valid cmdline options
-SALT_OPTS="--log-level=warning"
diff --git a/pcr/openrc-misc/syndic-initd-3 b/pcr/openrc-misc/syndic-initd-3
deleted file mode 100644
index 712432f90..000000000
--- a/pcr/openrc-misc/syndic-initd-3
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/salt/files/syndic-initd-3,v 1.1 2014/02/27 00:02:32 chutzpah Exp $
-
-command="/usr/bin/salt-syndic"
-command_args="${SALT_OPTS}"
-command_background="1"
-pidfile="/var/run/salt-syndic.pid"
-name="SALT syndic daemon"
-
-depend() {
- use net logger
-}
diff --git a/pcr/openrc-misc/syslog-ng.confd b/pcr/openrc-misc/syslog-ng.confd
deleted file mode 100644
index 42fa26ab4..000000000
--- a/pcr/openrc-misc/syslog-ng.confd
+++ /dev/null
@@ -1,42 +0,0 @@
-# Config file for /etc/init.d/syslog-ng
-
-# If you are not using network logging, this entire section should be
-# commented out. Otherwise, choose one of the settings below based on
-# how you are configuring your network.
-#
-# If you are using the net.* scripts to configure your network, you should
-# set rc_need to match the interface through which your logging server
-# can be reached.
-#rc_need="net.eth0"
-#
-# If you are using an interface manager like wicd, dhcpcd in standalone
-# mode, networkmanager, etc to control your interfaces, set rc_need to
-# the name of that service.
-# rc_need="dhcpcd"
-#rc_need="networkmanager"
-#
-# If you are using newnet and configuring your interface statically with
-# the network script, you should use this setting.
-#rc_need="network"
-#
-# You can use this setting, but I do not recommend relying on it.
-#rc_need="net"
-#
-# You may also want to uncomment the following if you are using network
-# logging.
-#rc_use="stunnel"
-
-# For very customized setups these variables can be adjusted as needed
-# but for most situations they should remain commented:
-# SYSLOG_NG_CONFIGFILE=/etc/syslog-ng/syslog-ng.conf
-# SYSLOG_NG_STATEFILE_DIR=/var/lib/syslog-ng
-# SYSLOG_NG_STATEFILE=${SYSLOG_NG_STATEFILE_DIR}/syslog-ng.persist
-# SYSLOG_NG_PIDFILE_DIR=/run
-# SYSLOG_NG_PIDFILE=${SYSLOG_NG_PIDFILE_DIR}/syslog-ng.pid
-# SYSLOG_NG_GROUP=root
-# SYSLOG_NG_USER=root
-
-# Put any additional options for syslog-ng here.
-# See syslog-ng(8) for more information.
-
-SYSLOG_NG_OPTS=""
diff --git a/pcr/openrc-misc/syslog-ng.rc6 b/pcr/openrc-misc/syslog-ng.rc6
deleted file mode 100644
index 75e558be7..000000000
--- a/pcr/openrc-misc/syslog-ng.rc6
+++ /dev/null
@@ -1,59 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/3.6/syslog-ng.rc6,v 1.3 2015/03/29 07:27:06 mr_bones_ Exp $
-
-SYSLOG_NG_CONFIGFILE=${SYSLOG_NG_CONFIGFILE:-/etc/syslog-ng/${RC_SVCNAME}.conf}
-SYSLOG_NG_STATEFILE_DIR=${SYSLOG_NG_STATEFILE_DIR:-/var/lib/syslog-ng}
-SYSLOG_NG_STATEFILE=${SYSLOG_NG_STATEFILE:-${SYSLOG_NG_STATEFILE_DIR}/syslog-ng.persist}
-SYSLOG_NG_PIDFILE_DIR=${SYSLOG_NG_PIDFILE_DIR:-/run}
-SYSLOG_NG_PIDFILE=${SYSLOG_NG_PIDFILE:-${SYSLOG_NG_PIDFILE_DIR}/${RC_SVCNAME}.pid}
-
-SYSLOG_NG_GROUP=${SYSLOG_NG_GROUP:-root}
-SYSLOG_NG_USER=${SYSLOG_NG_USER:-root}
-
-command="/usr/sbin/syslog-ng"
-command_args="--persist-file \"${SYSLOG_NG_STATEFILE}\" --cfgfile \"${SYSLOG_NG_CONFIGFILE}\" --pidfile \"${SYSLOG_NG_PIDFILE}\" ${SYSLOG_NG_OPTS}"
-extra_commands="checkconfig"
-extra_started_commands="reload"
-pidfile="${SYSLOG_NG_PIDFILE}"
-start_stop_daemon_args="--user \"${SYSLOG_NG_USER}\":\"${SYSLOG_NG_GROUP}\""
-description="Syslog-ng is a syslog replacement with advanced filtering features."
-description_checkconfig="Check the configuration file that will be used by \"start\""
-description_reload="Reload the configuration without exiting"
-required_files="${SYSLOG_NG_CONFIGFILE}"
-required_dirs="${SYSLOG_NG_PIDFILE_DIR}"
-
-depend() {
- use clock
- need hostname localmount
- after bootmisc
- provide logger
-}
-
-checkconfig() {
- ebegin "Checking your configfile (${SYSLOG_NG_CONFIGFILE})"
- syslog-ng -s -f "${SYSLOG_NG_CONFIGFILE}"
- eend $? "Configuration error. Please fix your configfile (${SYSLOG_NG_CONFIGFILE})"
-}
-
-start_pre() {
- checkconfig || return 1
- checkpath \
- -d \
- --mode 0700 \
- --owner "${SYSLOG_NG_USER}:${SYSLOG_NG_GROUP}" \
- "${SYSLOG_NG_STATEFILE_DIR}"
-}
-
-stop_pre() {
- [ "$RC_CMD" = restart ] && sleep 1
- return 0
-}
-
-reload() {
- checkconfig || return 1
- ebegin "Reloading configuration and re-opening log files"
- start-stop-daemon --signal HUP --pidfile "${pidfile}"
- eend $?
-}
diff --git a/pcr/openrc-misc/xe-daemon.initd b/pcr/openrc-misc/xe-daemon.initd
deleted file mode 100644
index 50519065f..000000000
--- a/pcr/openrc-misc/xe-daemon.initd
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/xe-guest-utilities/files/xe-daemon.initd,v 1.1 2014/06/23 14:30:35 robbat2 Exp $
-
-depend() {
- need localmount
- after bootmisc
-}
-
-start() {
- einfo "Detecting Linux distribution version"
- /usr/sbin/xe-linux-distribution /var/cache/xe-linux-distribution
-
- ebegin "Starting xe daemon"
- start-stop-daemon --start --exec /usr/sbin/xe-daemon \
- --pidfile /var/run/xe-daemon.pid \
- --background \
- -- -p /var/run/xe-daemon.pid
- eend $?
-}
-
-stop() {
- ebegin "Stopping xe daemon"
- start-stop-daemon --stop --exec /usr/sbin/xe-daemon \
- --pidfile /var/run/xe-daemon.pid
- eend $?
-}
diff --git a/pcr/openrc-net/PKGBUILD b/pcr/openrc-net/PKGBUILD
index ed3450d63..768ac69be 100644
--- a/pcr/openrc-net/PKGBUILD
+++ b/pcr/openrc-net/PKGBUILD
@@ -1,80 +1,5 @@
-# Maintainer : freaj <freaj@riseup.net>
-# Maintainer (Manjaro): artoo <artoo@manjaro.org>
-
-# file vars for easy update
-_Cbind=named.confd-r7
-_Ibind=named.init-r13
-_Isasl=saslauthd2.rc7
-_Cdhcp1=dhcpd.conf2
-_Cdhcp2=dhcrelay.conf
-_Cdhcp3=dhcrelay6.conf
-_Idhcp1=dhcpd.init5
-_Idhcp2=dhcrelay.init3
-_Chost=hostapd-conf.d
-_Ihost=hostapd-init.d
-_Cip1=iptables-1.4.13.confd
-_Cip2=ip6tables-1.4.13.confd
-_Iip=iptables-1.4.13-r1.init
-_Ikrb1=mit-krb5kadmind.initd-r1
-_Ikrb2=mit-krb5kdc.initd-r1
-_Ikrb3=mit-krb5kpropd.initd-r1
-_Clight=lighttpd.confd
-_Ilight=lighttpd.initd
-_Cnfs=nfs.confd
-_Infs=nfs.initd
-_Cnfsc=nfsclient.confd
-_Infsc=nfsclient.initd
-_Iidmapd=rpc.idmapd.initd
-_Ipipefs=rpc.pipefs.initd
-_Igssd=rpc.gssd.initd
-_Isvcgssd=rpc.svcgssd.initd
-_Istatd=rpc.statd.initd
-_Cldap=slapd-confd-2.4.28-r1
-_Ildap=slapd-initd-2.4.28-r1
-_Islp=slpd-init
-_Cssh=sshd.confd
-_Issh=sshd.rc6.4
-_Ipolip=polipo.initd
-_Ipostfix=postfix.rc6.2.7
-_Ipriv=privoxy.initd
-_Cquota=quota.confd
-_Iquota1=quota.rc7
-_Iquota2=rpc.rquotad.initd
-#_Crpc=rpcbind.confd
-_Irpc=rpcbind.initd
-_Crsync=rsyncd.conf.d
-_Irsync=rsyncd.init.d-r1
-_Csmb=samba4.confd
-_Ismb=samba4.initd-r1
-_Csquid=squid.confd-r1
-_Isquid=squid.initd-r4
-_Ctrans=transmission-daemon.confd.4
-_Itrans=transmission-daemon.initd.9
-_Cufw=ufw.confd
-_Iufw=ufw-2.initd
-_Ivsftp=vsftpd.init
-_Svsftp=vsftpd-checkconfig.sh
-_Cxinet=xinetd.confd
-_Ixinet=xinetd.rc6
-_Cypbind=ypbind.confd-r1
-_Iypbind=ypbind.initd
-_Cypserv1=ypserv.confd
-_Cypserv2=rpc.yppasswdd.confd
-_Cypserv3=rpc.ypxfrd.confd
-_Iypserv1=ypserv
-_Iypserv2=rpc.yppasswdd-r1
-_Iypserv3=rpc.ypxfrd-2.23
-_Iautofs=autofs5.initd
-_Cvpn=openvpn-2.1.conf
-_Ivpn=openvpn-2.1.init
-_Cntp=openntpd.conf.d-20080406-r6
-_Intp=openntpd.init.d-20080406-r6
-_Ctor=tor.confd
-_Itor=tor.initd-r6
-_Iwicd=wicd.initd
-_CSync=syncthing.confd
-_ISync=syncthing.initd
-_Inginx=nginx.initd-r2
+# Maintainer (Arch): artoo <artoo@manjaro.org>
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
_apver=2.4.10-r1
_aprel=20140731
@@ -84,670 +9,717 @@ _gentoo_uri="http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86"
pkgbase=openrc-net
pkgname=('autofs-openrc'
- 'apache-openrc'
- 'bind-openrc'
- 'cyrus-sasl-openrc'
- 'dhcp-openrc'
- 'hostapd-openrc'
- 'iptables-openrc'
- 'krb5-openrc'
- 'lighttpd-openrc'
- 'nfs-utils-openrc'
- 'openldap-openrc'
- 'openslp-openrc'
- 'openssh-openrc'
- 'openntpd-openrc'
- 'openvpn-openrc'
- 'polipo-openrc'
- 'postfix-openrc'
- 'privoxy-openrc'
- 'quota-tools-openrc'
- 'rpcbind-openrc'
- 'rsync-openrc'
- 'samba-openrc'
- 'squid-openrc'
- 'transmission-openrc'
- 'ufw-openrc'
- 'vsftpd-openrc'
- 'xinetd-openrc'
- 'ypbind-mt-openrc'
- 'ypserv-openrc'
- 'tor-openrc'
- 'wicd-openrc'
- 'syncthing-openrc'
- 'nginx-openrc')
-pkgver=20150330
+ 'apache-openrc'
+ 'bind-openrc'
+ 'cyrus-sasl-openrc'
+ 'dhcp-openrc'
+ 'hostapd-openrc'
+ 'iptables-openrc'
+ 'krb5-openrc'
+ 'lighttpd-openrc'
+ 'nfs-utils-openrc'
+ 'openldap-openrc'
+ 'openslp-openrc'
+ 'openssh-openrc'
+ 'openntpd-openrc'
+ 'openvpn-openrc'
+ 'polipo-openrc'
+ 'postfix-openrc'
+ 'privoxy-openrc'
+ 'quota-tools-openrc'
+ 'rpcbind-openrc'
+ 'rsync-openrc'
+ 'samba-openrc'
+ 'squid-openrc'
+ 'transmission-openrc'
+ 'ufw-openrc'
+ 'vsftpd-openrc'
+ 'xinetd-openrc'
+ 'ypbind-mt-openrc'
+ 'ypserv-openrc'
+ 'tor-openrc'
+ 'wicd-openrc'
+ 'syncthing-openrc'
+ 'nginx-openrc')
+pkgver=20150828
pkgrel=1
pkgdesc="OpenRC init scripts"
arch=('any')
url="https://github.com/manjaro/packages-openrc"
license=('GPL2')
-groups=('openrc' 'openrc-net')
+groups=('openrc-net')
conflicts=('openrc'
- 'openrc-git'
- 'openrc-arch-services-git'
- 'initscripts'
- 'systemd-sysvcompat')
+ 'openrc-git'
+ 'openrc-arch-services-git'
+ 'initscripts'
+ 'systemd-sysvcompat')
source=("${_dev_uri}/gentoo-apache-${_apver}-${_aprel}.tar.bz2"
- "${_gentoo_uri}/net-dns/bind/files/${_Cbind}"
- "${_gentoo_uri}/net-dns/bind/files/${_Ibind}"
- "${_gentoo_uri}/dev-libs/cyrus-sasl/files/${_Isasl}"
- "${_gentoo_uri}/net-misc/dhcp/files/${_Cdhcp1}"
- "${_gentoo_uri}/net-misc/dhcp/files/${_Cdhcp2}"
- "${_gentoo_uri}/net-misc/dhcp/files/${_Cdhcp3}"
- "${_gentoo_uri}/net-misc/dhcp/files/${_Idhcp1}"
- "${_gentoo_uri}/net-misc/dhcp/files/${_Idhcp2}"
- "${_gentoo_uri}/net-wireless/hostapd/files/${_Chost}"
- "${_gentoo_uri}/net-wireless/hostapd/files/${_Ihost}"
- "${_gentoo_uri}/net-firewall/iptables/files/${_Cip1}"
- "${_gentoo_uri}/net-firewall/iptables/files/${_Cip2}"
- "${_gentoo_uri}/net-firewall/iptables/files/${_Iip}"
- "${_gentoo_uri}/app-crypt/mit-krb5/files/${_Ikrb1}"
- "${_gentoo_uri}/app-crypt/mit-krb5/files/${_Ikrb2}"
- "${_gentoo_uri}/app-crypt/mit-krb5/files/${_Ikrb3}"
- "${_gentoo_uri}/www-servers/lighttpd/files/${_Clight}"
- "${_gentoo_uri}/www-servers/lighttpd/files/${_Ilight}"
- "${_gentoo_uri}/net-fs/nfs-utils/files/${_Cnfs}"
- "${_gentoo_uri}/net-fs/nfs-utils/files/${_Infs}"
- "${_gentoo_uri}/net-fs/nfs-utils/files/${_Cnfsc}"
- "${_gentoo_uri}/net-fs/nfs-utils/files/${_Infsc}"
- "${_gentoo_uri}/net-fs/nfs-utils/files/${_Iidmapd}"
- "${_gentoo_uri}/net-fs/nfs-utils/files/${_Ipipefs}"
- "${_gentoo_uri}/net-fs/nfs-utils/files/${_Igssd}"
- "${_gentoo_uri}/net-fs/nfs-utils/files/${_Isvcgssd}"
- "${_gentoo_uri}/net-fs/nfs-utils/files/${_Istatd}"
- "${_gentoo_uri}/net-nds/openldap/files/${_Cldap}"
- "${_gentoo_uri}/net-nds/openldap/files/${_Ildap}"
- "${_gentoo_uri}/net-libs/openslp/files/${_Islp}"
- "${_gentoo_uri}/net-misc/openssh/files/${_Cssh}"
- "${_gentoo_uri}/net-misc/openssh/files/${_Issh}"
- "${_gentoo_uri}/net-proxy/polipo/files/${_Ipolip}"
- "${_gentoo_uri}/mail-mta/postfix/files/${_Ipostfix}"
- "${_gentoo_uri}/net-proxy/privoxy/files/${_Ipriv}"
- "${_gentoo_uri}/sys-fs/quota/files/${_Cquota}"
- "${_gentoo_uri}/sys-fs/quota/files/${_Iquota1}"
- "${_gentoo_uri}/sys-fs/quota/files/${_Iquota2}"
- #"${_gentoo_uri}/net-nds/rpcbind/files/${_Crpc}"
- "${_gentoo_uri}/net-nds/rpcbind/files/${_Irpc}"
- "${_gentoo_uri}/net-misc/rsync/files/${_Crsync}"
- "${_gentoo_uri}/net-misc/rsync/files/${_Irsync}"
- "${_gentoo_uri}/net-fs/samba/files/4.1/${_Csmb}"
- "${_gentoo_uri}/net-fs/samba/files/4.1/${_Ismb}"
- "${_gentoo_uri}/net-proxy/squid/files/${_Csquid}"
- "${_gentoo_uri}/net-proxy/squid/files/${_Isquid}"
- "${_gentoo_uri}/net-p2p/transmission/files/${_Ctrans}"
- "${_gentoo_uri}/net-p2p/transmission/files/${_Itrans}"
- "${_gentoo_uri}/net-firewall/ufw/files/${_Cufw}"
- "${_gentoo_uri}/net-firewall/ufw/files/${_Iufw}"
- "${_gentoo_uri}/net-ftp/vsftpd/files/${_Svsftp}"
- "${_gentoo_uri}/net-ftp/vsftpd/files/${_Ivsftp}"
- "${_gentoo_uri}/sys-apps/xinetd/files/${_Cxinet}"
- "${_gentoo_uri}/sys-apps/xinetd/files/${_Ixinet}"
- "${_gentoo_uri}/net-nds/ypbind/files/${_Cypbind}"
- "${_gentoo_uri}/net-nds/ypbind/files/${_Iypbind}"
- "${_gentoo_uri}/net-nds/ypserv/files/${_Cypserv1}"
- "${_gentoo_uri}/net-nds/ypserv/files/${_Cypserv2}"
- "${_gentoo_uri}/net-nds/ypserv/files/${_Cypserv3}"
- "${_gentoo_uri}/net-nds/ypserv/files/${_Iypserv1}"
- "${_gentoo_uri}/net-nds/ypserv/files/${_Iypserv2}"
- "${_gentoo_uri}/net-nds/ypserv/files/${_Iypserv3}"
- "${_gentoo_uri}/net-fs/autofs/files/${_Iautofs}"
- "${_gentoo_uri}/net-misc/openvpn/files/${_Cvpn}"
- "${_gentoo_uri}/net-misc/openvpn/files/${_Ivpn}"
- "${_gentoo_uri}/net-misc/openntpd/files/${_Cntp}"
- "${_gentoo_uri}/net-misc/openntpd/files/${_Intp}"
- #"${_gentoo_uri}/net-misc/wicd/files/${_Iwicd}"
- "${_gentoo_uri}/net-misc/tor/files/${_Ctor}"
- "${_gentoo_uri}/net-misc/tor/files/${_Itor}"
- "${_Iwicd}"
- "${_CSync}"
- "${_ISync}"
- "${_gentoo_uri}/www-servers/nginx/files/${_Inginx}")
+ "named.confd::${_gentoo_uri}/net-dns/bind/files/named.confd-r7"
+ "named.initd::${_gentoo_uri}/net-dns/bind/files/named.init-r13"
+ "saslauthd.initd::${_gentoo_uri}/dev-libs/cyrus-sasl/files/saslauthd2.rc7"
+ "dhcpd.confd::${_gentoo_uri}/net-misc/dhcp/files/dhcpd.conf2"
+ "dhcrelay.confd::${_gentoo_uri}/net-misc/dhcp/files/dhcrelay.conf"
+ "dhcrelay6.confd::${_gentoo_uri}/net-misc/dhcp/files/dhcrelay6.conf"
+ "dhcpd.initd::${_gentoo_uri}/net-misc/dhcp/files/dhcpd.init5"
+ "dhcrelay.initd::${_gentoo_uri}/net-misc/dhcp/files/dhcrelay.init3"
+ "hostapd.confd::${_gentoo_uri}/net-wireless/hostapd/files/hostapd-conf.d"
+ "hostapd.initd::${_gentoo_uri}/net-wireless/hostapd/files/hostapd-init.d"
+ "iptables.confd::${_gentoo_uri}/net-firewall/iptables/files/iptables-1.4.13.confd"
+ "ip6tables.confd::${_gentoo_uri}/net-firewall/iptables/files/ip6tables-1.4.13.confd"
+ "iptables.initd::${_gentoo_uri}/net-firewall/iptables/files/iptables-1.4.13-r1.init"
+ "krb5kadmind.initd::${_gentoo_uri}/app-crypt/mit-krb5/files/mit-krb5kadmind.initd-r1"
+ "krb5kdc.initd::${_gentoo_uri}/app-crypt/mit-krb5/files/mit-krb5kdc.initd-r1"
+ "krb5kpropd.initd::${_gentoo_uri}/app-crypt/mit-krb5/files/mit-krb5kpropd.initd-r1"
+ "lighttpd.confd::${_gentoo_uri}/www-servers/lighttpd/files/lighttpd.confd"
+ "lighttpd.initd::${_gentoo_uri}/www-servers/lighttpd/files/lighttpd.initd"
+ "nfs.confd::${_gentoo_uri}/net-fs/nfs-utils/files/nfs.confd"
+ "nfs.initd::${_gentoo_uri}/net-fs/nfs-utils/files/nfs.initd"
+ "nfsclient.confd::${_gentoo_uri}/net-fs/nfs-utils/files/nfsclient.confd"
+ "nfsclient.initd::${_gentoo_uri}/net-fs/nfs-utils/files/nfsclient.initd"
+ "rpc.idmapd.initd::${_gentoo_uri}/net-fs/nfs-utils/files/rpc.idmapd.initd"
+ "rpc.pipefs.initd::${_gentoo_uri}/net-fs/nfs-utils/files/rpc.pipefs.initd"
+ "rpc.gssd.initd::${_gentoo_uri}/net-fs/nfs-utils/files/rpc.gssd.initd"
+ "rpc.svcgssd.initd::${_gentoo_uri}/net-fs/nfs-utils/files/rpc.svcgssd.initd"
+ "rpc.statd.initd::${_gentoo_uri}/net-fs/nfs-utils/files/rpc.statd.initd"
+ "slapd.confd::${_gentoo_uri}/net-nds/openldap/files/slapd-confd-2.4.28-r1"
+ "slapd.initd::${_gentoo_uri}/net-nds/openldap/files/slapd-initd-2.4.28-r1"
+ "slpd.initd::${_gentoo_uri}/net-libs/openslp/files/slpd-init"
+ "sshd.confd::${_gentoo_uri}/net-misc/openssh/files/sshd.confd"
+ "sshd.initd::${_gentoo_uri}/net-misc/openssh/files/sshd.rc6.4"
+ "polipo.initd::${_gentoo_uri}/net-proxy/polipo/files/polipo.initd"
+ "postfix.initd::${_gentoo_uri}/mail-mta/postfix/files/postfix.rc6.2.7"
+ "privoxy.initd::${_gentoo_uri}/net-proxy/privoxy/files/privoxy.initd"
+ "quota.confd::${_gentoo_uri}/sys-fs/quota/files/quota.confd"
+ "quota.initd::${_gentoo_uri}/sys-fs/quota/files/quota.rc7"
+ "rpc.rquotad.initd::${_gentoo_uri}/sys-fs/quota/files/rpc.rquotad.initd"
+ "rpcbind.initd::${_gentoo_uri}/net-nds/rpcbind/files/rpcbind.initd"
+ "rsyncd.confd::${_gentoo_uri}/net-misc/rsync/files/rsyncd.conf.d"
+ "rsyncd.initd::${_gentoo_uri}/net-misc/rsync/files/rsyncd.init.d-r1"
+ "smb.confd::${_gentoo_uri}/net-fs/samba/files/4.1/samba4.confd"
+ "smb.initd::${_gentoo_uri}/net-fs/samba/files/4.1/samba4.initd-r1"
+ "squid.confd::${_gentoo_uri}/net-proxy/squid/files/squid.confd-r1"
+ "squid.initd::${_gentoo_uri}/net-proxy/squid/files/squid.initd-r4"
+ "transmission-daemon.confd::${_gentoo_uri}/net-p2p/transmission/files/transmission-daemon.confd.4"
+ "transmission-daemon.initd::${_gentoo_uri}/net-p2p/transmission/files/transmission-daemon.initd.9"
+ "ufw.confd::${_gentoo_uri}/net-firewall/ufw/files/ufw.confd"
+ "ufw.initd::${_gentoo_uri}/net-firewall/ufw/files/ufw-2.initd"
+ "${_gentoo_uri}/net-ftp/vsftpd/files/vsftpd-checkconfig.sh"
+ "vsftpd.initd::${_gentoo_uri}/net-ftp/vsftpd/files/vsftpd.init"
+ "xinetd.confd::${_gentoo_uri}/sys-apps/xinetd/files/xinetd.confd"
+ "xinetd.initd::${_gentoo_uri}/sys-apps/xinetd/files/xinetd.rc6"
+ "ypbind.confd::${_gentoo_uri}/net-nds/ypbind/files/ypbind.confd-r1"
+ "ypbind.initd::${_gentoo_uri}/net-nds/ypbind/files/ypbind.initd"
+ "ypserv.confd::${_gentoo_uri}/net-nds/ypserv/files/ypserv.confd"
+ "rpc.yppasswdd.confd::${_gentoo_uri}/net-nds/ypserv/files/rpc.yppasswdd.confd"
+ "rpc.ypxfrd.confd::${_gentoo_uri}/net-nds/ypserv/files/rpc.ypxfrd.confd"
+ "ypserv.initd::${_gentoo_uri}/net-nds/ypserv/files/ypserv"
+ "rpc.yppasswdd.initd::${_gentoo_uri}/net-nds/ypserv/files/rpc.yppasswdd-r1"
+ "rpc.ypxfrd.initd::${_gentoo_uri}/net-nds/ypserv/files/rpc.ypxfrd-2.23"
+ "autofs.initd::${_gentoo_uri}/net-fs/autofs/files/autofs5.initd"
+ "openvpn.confd::${_gentoo_uri}/net-misc/openvpn/files/openvpn-2.1.conf"
+ "openvpn.initd::${_gentoo_uri}/net-misc/openvpn/files/openvpn-2.1.init"
+ "ntpd.confd::${_gentoo_uri}/net-misc/openntpd/files/openntpd.conf.d-20080406-r6"
+ "ntpd.initd::${_gentoo_uri}/net-misc/openntpd/files/openntpd.init.d-20080406-r6"
+ "tor.confd::${_gentoo_uri}/net-misc/tor/files/tor.confd"
+ "tor.initd::${_gentoo_uri}/net-misc/tor/files/tor.initd-r7"
+ "nginx.initd::${_gentoo_uri}/www-servers/nginx/files/nginx.initd-r2"
+ "wicd.initd"
+ "syncthing.confd"
+ "syncthing.initd")
+sha256sums=('8e093a18582c3a20283ed1c09de9acc6832a80b1d5a02962599db0535d38af19'
+ '3cf1ab72446cb9417de916e4cd732f2056fb74d2c6f03da6741b7bae8c415448'
+ '55024fe0e2b491b5cb490a9f575bad3096d446f20f8d52778d778fd26a415d52'
+ 'a095def10c3b7e6894a6d782c70cbe176c7b53f36386dcc4b1e5bc75424e29f0'
+ 'e8a413e9102948b336f60041fc3cade33125faf56d8319ee65d9f3c63199a8e7'
+ 'a157630c3bdc9565cca8240ee1e6539fc9cbc1e4642c40e0965e3609d1021bac'
+ '099f668e1ad42ed9446b15675032a1186715d1fe9e4a1b24dfb787e68495d2b6'
+ 'ab47d97f50f7e583e262479b19907e37c42fe7dcc54dc616e1b951f910486b30'
+ '204aaf81d51dc119cee1d1ff3ae3dd50af666af2f8b2a363fd1bf442d4dcee00'
+ '916f4b14095ee4ec8a510391c883e9f01868e18d79a3d5cbeb13a104a793d45d'
+ 'b9701b9ea509638ee1ed74bec38a22e6bd7358763497ce53c146d2faf9e97a61'
+ '7e2341211ca14997b7a8a1f930f94db855291af597c568f680f80031c20d45b6'
+ '2938fe4206514d9868047bd8f888a699fa2097ca69edab176453436d4259abaa'
+ '13047698e03079b754957e1e548ce7505dfb2c73c9a31f87e061140603ab0e44'
+ '3e55c79f19aaa6ef6b64a621c03dbb2eac3ad923916dc803f4c1bfe48ce89fbb'
+ '709309dea043aa306c2fcf0960e0993a6db540c220de64cf92d6b85f1cca23c5'
+ 'c374ea05d7e9f15e10c8f9dbd0cad6548e0f92aef7de33e5dbc27222e9407e7b'
+ 'bb6e6721f33e6582a91025f3500e159a599fb856d699e9394093e1018c7925e0'
+ 'b1515472c32927039b38f6c3a797cbc54a5a300b5d6fa54df9550174afa2b7f8'
+ 'c652a4fe8a43dc68a818345db2b3acc560663b5b6c969324d4f23afb0fb96a94'
+ '1e77bc6fb2ceb266f724818898bd42bec47512a5a7ede6660e0565ea1c58d619'
+ 'e8842fca856eae598fb8fe15ed8d3cef13e61851217be66b8cc4087af8cee8ad'
+ '122ade9931af8f64696375c9c66d00f64a90949616e00e9a00a7264c50c2e8a7'
+ '3ce65326859c43983dad25ad2d4731488c488037796e39b6b5eda336e8bf81ef'
+ 'ebee63e81fb952474c34b745913e8774b29c9cc65180d363a33d991e478aea2d'
+ '00d9c29280a83e8458c33139d04a9b38c6fdba9d7cb9b420ca83bf6b10e6435d'
+ 'f1c460d8b0e91e54a551397d755135d05a3728d81de596535bf8bda074455677'
+ 'a5731b8f681111421277c6c1c43b3e1d303790d9f8aebd977a895b0ed7a73bc3'
+ '5bca003ec3b67c7c78519aede1d82002579006ccfecce8f87b559df719f82e92'
+ '1fc515a6816b8a750db513df0b3b9bf8dd8bd4c4e9051205521acadfdebeae0f'
+ '7f228796e020c0779c52683f684197d50662ae890b1ae193ffa9acf157ccd143'
+ '29c6d57ac3ec6018cadc6ba6cd9b90c9ed46e20049b970fdcc68ee2481a2ee41'
+ '26cdcade999f3797016c8f894e27173e5ccee73cf6ec8de8ffcca468d7cd6379'
+ 'ff37dacce4551b6ef9866435d586b014aae5fef5b6c3ae7ba839165514644765'
+ '51f4bffa535d891f94d4a20ca2a4a42cc99189f3de78cee1c8d235e4a9d1721d'
+ '224496b498b4f692ae3316a95b5c7c8b6230dcd5fee0ca163956a7acde243de9'
+ '00d1dfb3b893db5d6a213a4edda622c7d64dcafa40b3019f15e070c164286632'
+ '00ce705b49aaa356d9d9f0be3b80a3fe2810471cbe02fd0edc66349f3ca281de'
+ 'c3896303d6cfebf314a3f6b8aeed0f6cb6ae421c4c0923b0121c76b3251314e5'
+ '6561ae40c5899a9f7a12f1f0867bec47d47c7cc3c583574ffcecbbf6f8d8afbb'
+ 'de758791b16b89a648c01867af7f51bc9bd44e40cbe868e439b753ff5d9572e5'
+ 'baff64277f9aa62cf1eeed2284bb08c4f3078a8e6e7604e4fec228ca5fa9dd82'
+ '53755809cc27fdbaf98752cd3da45b5c2bda62dd46fcc37570c6e237f7954ffa'
+ '9f4eaba0b966fd30351fa66cac9a666b5ec1dc54035ddad94c61a2f43dcb2d62'
+ '214a184495a3384eb452caef435256043bc51e35140a61b1f5fdff32603c8f7e'
+ '3830cb94600ac658a6ff1f9f31bdbece64caf3ad23c62ae0a887d152970125f5'
+ '249689688aad23d0d27ccdd08a0907fd85058d6a52ccd3467f756b07f5d059ee'
+ '06d047b47befe6aaf1b1542fdd50e84ea38e0fef004b5095f6096f33fa1901a3'
+ '069aa7382b40aecebf26ef53f3f4c49890314e0357925c84b3c15f1d0b913be0'
+ '657b5305923b2a5de9eb96931aaaa28d6e997ace6c40793d905887798094258c'
+ '2de7c7c1edfe3ae0480e22d988a564db3bb873050929ebb6e8361d7a1288ddda'
+ '4297952eeeb02b5c4f2f750742614513fa6a0c8d291a9a0adcec1ec0098fcd78'
+ 'e401e2cf7c0180a170d3dc3e91d7e98002bae7b013df72813b7bcf89b864fb3a'
+ '6aeb4ec9b8ccc062b5ee8c609830c05cee3ed790fa90d7b2d8cf82a09e317c5c'
+ '79f6c6ed4875f00fe702f69e9a6180a032d5a47f3e58e892e6ba0e2746b6fec8'
+ '3cdd6872fae15dc8533b3f75ac36ad59ffb946a3f1b445d688629c621cebbe34'
+ '4edd475ca95d31cfcea20a8e6268024f8128423bc7ae67edb535e6811c64668e'
+ 'e46afe737bfc57aa31be1a441615fcc112e1ebf41d631c1929e00b81baca119d'
+ 'bd1f245a362f85319e83965e8b825e66e686a4a0bf185ab8ec51fd335bc873c2'
+ '08db79845b497f2ec8938854ffac904aeed747d98c0820ad0be9e5aa9377512b'
+ 'e827778b8a8e6984b637c745c315a2e02ebc46af752651b7a70626ba545a84b6'
+ 'a6445dd607093fdafb013e5896f60d78223549b38c96300fe239bcf5dbf2a8de'
+ 'f2c44e5018719f644e194a4e8e43390bdc9926c533f79c41f0abf84879799d05'
+ '330149a83684ddabe413d134d4c8efad4c88b18c2ab67165014deff5f7fffad2'
+ 'd1b1f8a00935d77521bceb62535350444df3470fa45f4d33c3934051a1bb595b'
+ '91fb1497b3a6ef0bb3a3d5baefdff801d8ff1cba27aaf742303415550814a09b'
+ 'fca7183a7676f0f471878925c8fbec20b7a0bff01551c0ad2b34d4d8a826c876'
+ '41d780f291847e19f632428bbf27c3f289414afd237546d2974da1b75384c25c'
+ '666b0cacc53515fb8409ada05d7e92b1de4d9a4814ba145f4982ffd164958aae'
+ '9d5fca09d0161446a5cec30a0694cdc0656469403a008920a52a190051218b36'
+ '66b2b53b077ddc2d5eb1d81faa99fa0f4f0db01520900ba948001e539bfe02d8'
+ 'eb4a4315916fe3f8688c1da5bb5c249a1f402e61617452288d5b0668078c955c'
+ '63708b1a7b61ae791df64bb4cefa01dc12236f96bb67fe6d0b2c513e11c81f3e')
pkgver() {
- date +%Y%m%d
+ date +%Y%m%d
+}
+
+_inst_initd(){
+ install -Dm755 ${srcdir}/$1.initd ${pkgdir}/etc/init.d/$1
+
+ sed -e 's|#!/sbin/runscript|#!/usr/bin/openrc-run|' \
+ -e 's|/var/run|/run|g' \
+ -i ${pkgdir}/etc/init.d/$1
}
-_shebang='s|#!/sbin/runscript|#!/usr/bin/openrc-run|'
-_runpath='s|/var/run|/run|g'
-_binpath=('s|/usr/sbin|/usr/bin|g' 's|/sbin|/usr/bin|g')
+_inst_confd(){
+ install -Dm755 ${srcdir}/$1.confd ${pkgdir}/etc/conf.d/$1
+}
package_apache-openrc() {
- pkgdesc="OpenRC apache init script"
- depends=('openrc-core' 'apache')
- backup=('etc/conf.d/httpd')
- install=apache.install
-
- install -Dm755 "${srcdir}/gentoo-apache-${_apver}/init/apache2.confd" "${pkgdir}/etc/conf.d/httpd"
- install -Dm755 "${srcdir}/gentoo-apache-${_apver}/init/apache2.initd" "${pkgdir}/etc/init.d/httpd"
-
- local _p1='s|/usr/sbin/apache2|/usr/bin/apachectl|' \
- _p2='s|/etc/apache2/httpd.conf|/etc/httpd/conf/httpd.conf|' \
- _p3='s/! test -f/test -f/' \
- _p4='s|/usr/lib/apache2|/usr/lib/httpd|' \
- _p5='s|apache2.pid|httpd/httpd.pid|' \
- _p6='s|apache2 >/dev/null|httpd >/dev/null|' \
- _p7='s|apache2|httpd|g' \
- _p8='s|/run/apache_ssl_mutex|/run/httpd|'
- sed -e "${_shebang}" -e "${_p1}" -e "${_p2}" -e "${_p3}" \
- -e "${_p4}" -e "${_p5}" -e "${_p6}" -e "${_p8}" -i "${pkgdir}/etc/init.d/httpd"
- sed -e "${_p2}" -e "${_p4}" -e "${_p5}" -e "${_p7}" -i "${pkgdir}/etc/conf.d/httpd"
+ pkgdesc="OpenRC apache init script"
+ depends=('openrc-core' 'apache')
+ backup=('etc/conf.d/httpd')
+ install=apache.install
+
+ install -Dm644 "${srcdir}/gentoo-apache-${_apver}/init/apache2.confd" "${pkgdir}/etc/conf.d/httpd"
+ install -Dm755 "${srcdir}/gentoo-apache-${_apver}/init/apache2.initd" "${pkgdir}/etc/init.d/httpd"
+
+ sed -e "${_shebang}" \
+ -e 's|/usr/sbin/apache2|/usr/bin/apachectl|' \
+ -e 's|/etc/apache2/httpd.conf|/etc/httpd/conf/httpd.conf|' \
+ -e 's/! test -f/test -f/' \
+ -e 's|/usr/lib/apache2|/usr/lib/httpd|' \
+ -e 's|apache2.pid|httpd/httpd.pid|' \
+ -e 's|apache2 >/dev/null|httpd >/dev/null|' \
+ -e 's|/run/apache_ssl_mutex|/run/httpd|' \
+ -i "${pkgdir}/etc/init.d/httpd"
+
+ sed -e 's|/etc/apache2/httpd.conf|/etc/httpd/conf/httpd.conf|' \
+ -e 's|/usr/lib/apache2|/usr/lib/httpd|' \
+ -e 's|apache2.pid|httpd/httpd.pid|' \
+ -e 's|apache2|httpd|g' \
+ -i "${pkgdir}/etc/conf.d/httpd"
}
package_autofs-openrc() {
- pkgdesc="OpenRC autofs init script"
- depends=('openrc-core' 'autofs')
- install=autofs.install
+ pkgdesc="OpenRC autofs init script"
+ depends=('openrc-core' 'autofs')
+ install=autofs.install
- install -Dm755 "${srcdir}/${_Iautofs}" "${pkgdir}/etc/init.d/autofs"
+ _inst_initd 'autofs'
- sed -e "${_shebang}" -e "${_binpath[0]}" -e "${_runpath}" -i "${pkgdir}/etc/init.d/autofs"
+ sed -e 's|/usr/sbin|/usr/bin|g' \
+ -i "${pkgdir}/etc/init.d/autofs"
}
package_bind-openrc() {
- pkgdesc="OpenRC bind init script"
- depends=('openrc-core' 'bind')
- backup=('etc/conf.d/named')
- install=bind.install
+ pkgdesc="OpenRC bind init script"
+ depends=('openrc-core' 'bind')
+ backup=('etc/conf.d/named')
+ install=bind.install
- install -Dm755 "${srcdir}/${_Cbind}" "${pkgdir}/etc/conf.d/named"
- install -Dm755 "${srcdir}/${_Ibind}" "${pkgdir}/etc/init.d/named"
+ _inst_confd 'named'
+ _inst_initd 'named'
- local _p1='s|/etc/bind/named.conf|/etc/named.conf|g'
- sed -e "${_shebang}" -e "${_binpath[0]}" -e "${_runpath}" -e "${_p1}" -i "${pkgdir}/etc/init.d/named"
+ sed -e 's|/usr/sbin|/usr/bin|g' \
+ -e 's|/etc/bind/named.conf|/etc/named.conf|g' \
+ -i "${pkgdir}/etc/init.d/named"
}
package_cyrus-sasl-openrc() {
- pkgdesc="OpenRC cyrus-sasl init script"
- depends=('openrc-core' 'cyrus-sasl')
- install=cyrus-sasl.install
+ pkgdesc="OpenRC cyrus-sasl init script"
+ depends=('openrc-core' 'cyrus-sasl')
+ install=cyrus-sasl.install
- install -Dm755 "${srcdir}/${_Isasl}" "${pkgdir}/etc/init.d/saslauthd"
+ _inst_initd 'saslauthd'
- sed -e "${_shebang}" -e "${_binpath[0]}" -i "${pkgdir}/etc/init.d/saslauthd"
+ sed -e 's|/usr/sbin|/usr/bin|g' \
+ -i "${pkgdir}/etc/init.d/saslauthd"
}
package_dhcp-openrc() {
- pkgdesc="OpenRC dhcp init script"
- depends=('openrc-core' 'dhcp')
- optdepends=('openldap-openrc: openldap initscript'
- 'bind-openrc: bind initscript')
- backup=('etc/conf.d/dhcpd'
- 'etc/conf.d/dhcrelay'
- 'etc/conf.d/dhcrelay6')
- install=dhcp.install
+ pkgdesc="OpenRC dhcp init script"
+ depends=('openrc-core' 'dhcp')
+ optdepends=('openldap-openrc: openldap initscript'
+ 'bind-openrc: bind initscript')
+ backup=('etc/conf.d/dhcpd'
+ 'etc/conf.d/dhcrelay'
+ 'etc/conf.d/dhcrelay6')
+ install=dhcp.install
+
+ _inst_confd 'dhcpd'
+ _inst_initd 'dhcpd'
+
+ _inst_confd 'dhcrelay'
+ _inst_initd 'dhcrelay'
- install -Dm755 "${srcdir}/${_Cdhcp1}" "${pkgdir}/etc/conf.d/dhcpd"
- install -Dm755 "${srcdir}/${_Cdhcp2}" "${pkgdir}/etc/conf.d/dhcrelay"
- install -Dm755 "${srcdir}/${_Cdhcp3}" "${pkgdir}/etc/conf.d/dhcrelay6"
+ _inst_confd 'dhcrelay6'
+# _inst_initd 'dhcrelay6'
- install -Dm755 "${srcdir}/${_Idhcp1}" "${pkgdir}/etc/init.d/dhcpd"
- install -Dm755 "${srcdir}/${_Idhcp2}" "${pkgdir}/etc/init.d/dhcrelay"
- install -Dm755 "${srcdir}/${_Idhcp2}" "${pkgdir}/etc/init.d/dhcrelay6"
+ install -Dm755 "${srcdir}/dhcrelay.initd" "${pkgdir}/etc/init.d/dhcrelay6"
- local _p1='s|#@slapd@|ldap slapd|'
- for f in ${pkgdir}/etc/init.d/*;do
- sed -e "${_shebang}" -e "${_binpath[0]}" -e "${_runpath}" -e "${_p1}" -i $f
- done
+ for f in ${pkgdir}/etc/init.d/*;do
+ sed -e 's|/usr/sbin|/usr/bin|g' \
+ -e 's|#@slapd@|ldap slapd|' \
+ -i $f
+ done
}
package_hostapd-openrc() {
- pkgdesc="OpenRC hostapd init script"
- depends=('openrc-core' 'hostapd')
- backup=('etc/conf.d/hostapd')
- install=hostapd.install
+ pkgdesc="OpenRC hostapd init script"
+ depends=('openrc-core' 'hostapd')
+ backup=('etc/conf.d/hostapd')
+ install=hostapd.install
- install -Dm755 "${srcdir}/${_Chost}" "${pkgdir}/etc/conf.d/hostapd"
- install -Dm755 "${srcdir}/${_Ihost}" "${pkgdir}/etc/init.d/hostapd"
+ _inst_confd 'hostapd'
+ _inst_initd 'hostapd'
- sed -e "${_shebang}" -e "${_binpath[0]}" -e "${_runpath}" -i "${pkgdir}/etc/init.d/hostapd"
+ sed -e 's|/usr/sbin|/usr/bin|g' \
+ -i "${pkgdir}/etc/init.d/hostapd"
}
package_iptables-openrc() {
- pkgdesc="OpenRC iptables init script"
- depends=('openrc-core' 'iptables')
- backup=('etc/conf.d/iptables'
- 'etc/conf.d/ip6tables')
- install=iptables.install
+ pkgdesc="OpenRC iptables init script"
+ depends=('openrc-core' 'iptables')
+ backup=('etc/conf.d/iptables'
+ 'etc/conf.d/ip6tables')
+ install=iptables.install
- install -Dm755 "${srcdir}/${_Cip1}" "${pkgdir}/etc/conf.d/iptables"
- install -Dm755 "${srcdir}/${_Iip}" "${pkgdir}/etc/init.d/iptables"
- install -Dm755 "${srcdir}/${_Cip2}" "${pkgdir}/etc/conf.d/ip6tables"
- install -Dm755 "${srcdir}/${_Iip}" "${pkgdir}/etc/init.d/ip6tables"
+ _inst_confd 'iptables'
+ _inst_initd 'iptables'
- for f in ${pkgdir}/etc/init.d/*;do
- sed -e "${_shebang}" -e "${_binpath[1]}" -e "${_runpath}" -i $f
- done
+ _inst_confd 'ip6tables'
+# _inst_initd 'iptables'
+
+ install -Dm755 "${srcdir}/iptables.initd" "${pkgdir}/etc/init.d/ip6tables"
+
+ for f in ${pkgdir}/etc/init.d/*;do
+ sed -e 's|/sbin|/usr/bin|g' \
+ -i $f
+ done
}
package_krb5-openrc() {
- pkgdesc="OpenRC krb5 init script"
- depends=('openrc-core' 'krb5')
- install=krb5.install
+ pkgdesc="OpenRC krb5 init script"
+ depends=('openrc-core' 'krb5')
+ install=krb5.install
- install -Dm755 "${srcdir}/${_Ikrb1}" "${pkgdir}/etc/init.d/krb5kadmind"
- install -Dm755 "${srcdir}/${_Ikrb2}" "${pkgdir}/etc/init.d/krb5kdc"
- install -Dm755 "${srcdir}/${_Ikrb3}" "${pkgdir}/etc/init.d/krb5kpropd"
+ _inst_initd 'krb5kadmind'
+ _inst_initd 'krb5kdc'
+ _inst_initd 'krb5kpropd'
- local _p1='s|mit-krb5kdc|krb5kdc|g' \
- _p2='s|mit-krb5kadmind|krb5kadmind|g'
- for f in ${pkgdir}/etc/init.d/*;do
- sed -e "${_shebang}" -e "${_binpath[0]}" -e "${_runpath}" -e "${_p1}" -e "${_p2}" -i $f
- done
+ for f in ${pkgdir}/etc/init.d/*;do
+ sed -e 's|/usr/sbin|/usr/bin|g' \
+ -e 's|mit-krb5kdc|krb5kdc|g' \
+ -e 's|mit-krb5kadmind|krb5kadmind|g' \
+ -i $f
+ done
}
package_lighttpd-openrc() {
- pkgdesc="OpenRC lighttpd init script"
- depends=('openrc-core' 'lighttpd')
- backup=('etc/conf.d/lighttpd')
- install=lighttpd.install
+ pkgdesc="OpenRC lighttpd init script"
+ depends=('openrc-core' 'lighttpd')
+ backup=('etc/conf.d/lighttpd')
+ install=lighttpd.install
+
+ _inst_confd 'lighttpd'
+ _inst_initd 'lighttpd'
- install -Dm755 "${srcdir}/${_Clight}" "${pkgdir}/etc/conf.d/lighttpd"
- install -Dm755 "${srcdir}/${_Ilight}" "${pkgdir}/etc/init.d/lighttpd"
- local _p1='s/lighttpd:lighttpd/http:http/'
- sed -e "${_shebang}" -e "${_binpath[0]}" -e "${_runpath}" -e ${_p1} -i "${pkgdir}/etc/init.d/lighttpd"
+ sed -e 's|/usr/sbin|/usr/bin|g' \
+ -e 's/lighttpd:lighttpd/http:http/' \
+ -i "${pkgdir}/etc/init.d/lighttpd"
}
package_rpcbind-openrc() {
- pkgdesc="OpenRC rpcbind init script"
- depends=('openrc-core' 'rpcbind')
- #backup=('etc/conf.d/rpcbind')
- install=rpcbind.install
+ pkgdesc="OpenRC rpcbind init script"
+ depends=('openrc-core' 'rpcbind')
+ #backup=('etc/conf.d/rpcbind')
+ install=rpcbind.install
- #install -Dm755 "${srcdir}/${_Crpc}" "${pkgdir}/etc/conf.d/rpcbind"
- local _p1='s|RPCBIND_OPTS|RPCBIND_ARGS|'
+ _inst_initd 'rpcbind'
- install -Dm755 "${srcdir}/${_Irpc}" "${pkgdir}/etc/init.d/rpcbind"
-
- sed -e "${_shebang}" -e "${_binpath[1]}" -e "${_runpath}" -e "${_p1}" -i "${pkgdir}/etc/init.d/rpcbind"
+ sed -e 's|/sbin|/usr/bin|g' \
+ -e 's|RPCBIND_OPTS|RPCBIND_ARGS|' \
+ -i "${pkgdir}/etc/init.d/rpcbind"
}
package_nfs-utils-openrc() {
- pkgdesc="OpenRC nfs-utils init script"
- depends=('nfs-utils' 'rpcbind-openrc' 'device-mapper-openrc')
- optdepends=('ypbind-openrc: ypbind initscript'
+ pkgdesc="OpenRC nfs-utils init script"
+ depends=('nfs-utils' 'rpcbind-openrc' 'device-mapper-openrc')
+ optdepends=('ypbind-openrc: ypbind initscript'
'quota-tools-openrc: quota-tools initscript'
'bind-openrc: bind initscript')
- backup=('etc/conf.d/nfs'
- 'etc/conf.d/nfsclient')
- install=nfs-utils.install
-
- install -Dm755 "${srcdir}/${_Cnfs}" "${pkgdir}/etc/conf.d/nfs"
- install -Dm755 "${srcdir}/${_Infs}" "${pkgdir}/etc/init.d/nfs"
-
- install -Dm755 "${srcdir}/${_Cnfsc}" "${pkgdir}/etc/conf.d/nfsclient"
- install -Dm755 "${srcdir}/${_Infsc}" "${pkgdir}/etc/init.d/nfsclient"
-
- install -Dm755 "${srcdir}/${_Igssd}" "${pkgdir}/etc/init.d/rpc.gssd"
- install -Dm755 "${srcdir}/${_Iidmapd}" "${pkgdir}/etc/init.d/rpc.idmapd"
- install -Dm755 "${srcdir}/${_Ipipefs}" "${pkgdir}/etc/init.d/rpc.pipefs"
- install -Dm755 "${srcdir}/${_Istatd}" "${pkgdir}/etc/init.d/rpc.statd"
- install -Dm755 "${srcdir}/${_Isvcgssd}" "${pkgdir}/etc/init.d/rpc.svcgssd"
-
- for f in ${pkgdir}/etc/init.d/*;do
- sed -e "${_shebang}" -e "${_binpath[0]}" -e "${_runpath}" -i $f
- done
+ backup=('etc/conf.d/nfs'
+ 'etc/conf.d/nfsclient')
+ install=nfs-utils.install
+
+ _inst_confd 'nfs'
+ _inst_initd 'nfs'
+
+ _inst_confd 'nfsclient'
+ _inst_initd 'nfsclient'
+
+ _inst_initd 'rpc.gssd'
+ _inst_initd 'rpc.idmapd'
+ _inst_initd 'rpc.pipefs'
+ _inst_initd 'rpc.statd'
+ _inst_initd 'rpc.svcgssd'
+
+ for f in ${pkgdir}/etc/init.d/*;do
+ sed -e 's|/usr/sbin|/usr/bin|g' \
+ -i $f
+ done
}
package_openntpd-openrc() {
- pkgdesc="OpenRC openntpd init script"
- depends=('openrc-core' 'openntpd')
- groups=('openrc-net')
- provides=('openrc-timed')
- conflicts=('ntp'
- 'ntp-openrc'
- 'openrc'
- 'openrc-git'
- 'openrc-arch-services-git'
- 'initscripts'
- 'systemd-sysvcompat')
- backup=('etc/conf.d/ntpd')
- install=openntpd.install
-
- install -Dm755 "${srcdir}/${_Cntp}" "${pkgdir}/etc/conf.d/ntpd"
- install -Dm755 "${srcdir}/${_Intp}" "${pkgdir}/etc/init.d/ntpd"
-
- sed -e "${_shebang}" -e "${_binpath[0]}" -e "${_runpath}" -i "${pkgdir}/etc/init.d/ntpd"
+ pkgdesc="OpenRC openntpd init script"
+ depends=('openrc-core' 'openntpd')
+ groups=('openrc-net')
+ provides=('openrc-timed')
+ conflicts=('ntp'
+ 'ntp-openrc'
+ 'openrc'
+ 'openrc-git'
+ 'openrc-arch-services-git'
+ 'initscripts'
+ 'systemd-sysvcompat')
+ backup=('etc/conf.d/ntpd')
+ install=openntpd.install
+
+ _inst_confd 'ntpd'
+ _inst_initd 'ntpd'
+
+ sed -e 's|/usr/sbin|/usr/bin|g' \
+ -i "${pkgdir}/etc/init.d/ntpd"
}
package_openldap-openrc() {
- pkgdesc="OpenRC openldap init script"
- depends=('openrc-core' 'openldap')
- backup=('etc/conf.d/slapd')
- install=openldap.install
+ pkgdesc="OpenRC openldap init script"
+ depends=('openrc-core' 'openldap')
+ backup=('etc/conf.d/slapd')
+ install=openldap.install
- install -Dm755 "${srcdir}/${_Cldap}" "${pkgdir}/etc/conf.d/slapd"
- install -Dm755 "${srcdir}/${_Ildap}" "${pkgdir}/etc/init.d/slapd"
+ _inst_confd 'slapd'
+ _inst_initd 'slapd'
- local _p1='s|/usr/lib/openldap/slapd|/usr/lib/slapd|g'
- sed -e "${_shebang}" -e "${_binpath[0]}" -e "${_runpath}" -e "${_p1}" -i "${pkgdir}/etc/init.d/slapd"
+ sed -e 's|/usr/sbin|/usr/bin|g' \
+ -e 's|/usr/lib/openldap/slapd|/usr/lib/slapd|g' \
+ -i "${pkgdir}/etc/init.d/slapd"
}
package_openslp-openrc() {
- pkgdesc="OpenRC openslp init script"
- depends=('openrc-core' 'openslp')
- install=openslp.install
+ pkgdesc="OpenRC openslp init script"
+ depends=('openrc-core' 'openslp')
+ install=openslp.install
- install -Dm755 "${srcdir}/${_Islp}" "${pkgdir}/etc/init.d/slpd"
+ _inst_initd 'slpd'
- sed -e "${_shebang}" -e "${_binpath[0]}" -e "${_runpath}" -i "${pkgdir}/etc/init.d/slpd"
+ sed -e 's|/usr/sbin|/usr/bin|g' \
+ -i "${pkgdir}/etc/init.d/slpd"
}
package_openssh-openrc() {
- pkgdesc="OpenRC openssh init script"
- depends=('openrc-core' 'openssh')
- optdepends=('bind-openrc: bind initscript')
- backup=('etc/conf.d/sshd')
- install=openssh.install
+ pkgdesc="OpenRC openssh init script"
+ depends=('openrc-core' 'openssh')
+ optdepends=('bind-openrc: bind initscript')
+ backup=('etc/conf.d/sshd')
+ install=openssh.install
- install -Dm755 "${srcdir}/${_Cssh}" "${pkgdir}/etc/conf.d/sshd"
- install -Dm755 "${srcdir}/${_Issh}" "${pkgdir}/etc/init.d/sshd"
+ _inst_confd 'sshd'
+ _inst_initd 'sshd'
- sed -e "${_binpath[0]}" -e "${_runpath}" -i "${pkgdir}/etc/conf.d/sshd"
- sed -e "${_shebang}" -e "${_binpath[0]}" -e "${_runpath}" -i "${pkgdir}/etc/init.d/sshd"
+ sed -e 's|/usr/sbin|/usr/bin|g' \
+ -i "${pkgdir}/etc/conf.d/sshd"
+
+ sed -e 's|/usr/sbin|/usr/bin|g' \
+ -i "${pkgdir}/etc/init.d/sshd"
}
package_openvpn-openrc() {
- pkgdesc="OpenRC openvpn init script"
- depends=('openrc-core' 'openvpn')
- backup=('etc/conf.d/openvpn')
- install=openvpn.install
+ pkgdesc="OpenRC openvpn init script"
+ depends=('openrc-core' 'openvpn')
+ backup=('etc/conf.d/openvpn')
+ install=openvpn.install
- install -Dm755 "${srcdir}/${_Cvpn}" "${pkgdir}/etc/conf.d/openvpn"
- install -Dm755 "${srcdir}/${_Ivpn}" "${pkgdir}/etc/init.d/openvpn"
+ _inst_confd 'openvpn'
+ _inst_initd 'openvpn'
- sed -e "${_shebang}" -e "${_binpath[0]}" -e "${_runpath}" -i "${pkgdir}/etc/init.d/openvpn"
+ sed -e 's|/usr/sbin|/usr/bin|g' \
+ -i "${pkgdir}/etc/init.d/openvpn"
}
package_polipo-openrc() {
- pkgdesc="OpenRC polipo init script"
- depends=('openrc-core' 'polipo')
- install=polipo.install
+ pkgdesc="OpenRC polipo init script"
+ depends=('openrc-core' 'polipo')
+ install=polipo.install
- install -Dm755 "${srcdir}/${_Ipolip}" "${pkgdir}/etc/init.d/polipo"
+ _inst_initd 'polipo'
- sed -e "${_shebang}" -e "${_binpath[0]}" -e "${_runpath}" -i "${pkgdir}/etc/init.d/polipo"
+ sed -e 's|/usr/sbin|/usr/bin|g' \
+ -i "${pkgdir}/etc/init.d/polipo"
}
package_postfix-openrc() {
- pkgdesc="OpenRC postfix init script"
- depends=('openrc-core' 'postfix')
- optdepends=('bind-openrc: bind initscript'
+ pkgdesc="OpenRC postfix init script"
+ depends=('openrc-core' 'postfix')
+ optdepends=('bind-openrc: bind initscript'
'ypbind-openrc: ypbind initscript'
'cyrus-sasl-openrc: cyrus-sasl initscript')
- install=postfix.install
+ install=postfix.install
- install -Dm755 "${srcdir}/${_Ipostfix}" "${pkgdir}/etc/init.d/postfix"
+ _inst_initd 'postfix'
- sed -e "${_shebang}" -e "${_binpath[0]}" -e "${_runpath}" -i "${pkgdir}/etc/init.d/postfix"
+ sed -e 's|/usr/sbin|/usr/bin|g' \
+ -i "${pkgdir}/etc/init.d/postfix"
}
package_privoxy-openrc() {
- pkgdesc="OpenRC privoxy init script"
- depends=('openrc-core' 'privoxy')
- install=privoxy.install
+ pkgdesc="OpenRC privoxy init script"
+ depends=('openrc-core' 'privoxy')
+ install=privoxy.install
- install -Dm755 "${srcdir}/${_Ipriv}" "${pkgdir}/etc/init.d/privoxy"
+ _inst_initd 'privoxy'
- sed -e "${_shebang}" -e "${_binpath[0]}" -e "${_runpath}" -i "${pkgdir}/etc/init.d/privoxy"
+ sed -e "${_shebang}" \
+ -e 's|/usr/sbin|/usr/bin|g' \
+ -e "${_runpath}" \
+ -i "${pkgdir}/etc/init.d/privoxy"
}
package_quota-tools-openrc() {
- pkgdesc="OpenRC quota-tools init script"
- depends=('quota-tools' 'rpcbind-openrc')
- optdepends=('ypbind-openrc: ypbind initscript')
- backup=('etc/conf.d/quota')
- install=quota-tools.install
-
- install -Dm755 "${srcdir}/${_Cquota}" "${pkgdir}/etc/conf.d/quota"
- install -Dm755 "${srcdir}/${_Iquota1}" "${pkgdir}/etc/init.d/quota"
- install -Dm755 "${srcdir}/${_Iquota2}" "${pkgdir}/etc/init.d/rpc.rquotad"
+ pkgdesc="OpenRC quota-tools init script"
+ depends=('quota-tools' 'rpcbind-openrc')
+ optdepends=('ypbind-openrc: ypbind initscript')
+ backup=('etc/conf.d/quota')
+ install=quota-tools.install
+ _inst_confd 'quota'
+ _inst_initd 'quota'
+ _inst_initd 'rpc.rquotad'
- for f in ${pkgdir}/etc/init.d/*;do
- sed -e "${_shebang}" -e "${_binpath[0]}" -e "${_runpath}" -i $f
- done
+ for f in ${pkgdir}/etc/init.d/*;do
+ sed -e 's|/usr/sbin|/usr/bin|g' \
+ -i $f
+ done
}
package_rsync-openrc() {
- pkgdesc="OpenRC rsync init script"
- depends=('openrc-core' 'rsync')
- backup=('etc/conf.d/rsyncd')
- install=rsync.install
+ pkgdesc="OpenRC rsync init script"
+ depends=('openrc-core' 'rsync')
+ backup=('etc/conf.d/rsyncd')
+ install=rsync.install
- install -Dm755 "${srcdir}/${_Crsync}" "${pkgdir}/etc/conf.d/rsyncd"
- install -Dm755 "${srcdir}/${_Irsync}" "${pkgdir}/etc/init.d/rsyncd"
+ _inst_confd 'rsyncd'
+ _inst_initd 'rsyncd'
- sed -e "${_shebang}" -e "${_binpath[0]}" -e "${_runpath}" -i "${pkgdir}/etc/init.d/rsyncd"
+ sed -e 's|/usr/sbin|/usr/bin|g' \
+ -i "${pkgdir}/etc/init.d/rsyncd"
}
package_samba-openrc() {
- pkgdesc="OpenRC samba init script"
- depends=('openrc-core' 'samba')
- backup=('etc/conf.d/smb')
- install=samba.install
+ pkgdesc="OpenRC samba init script"
+ depends=('openrc-core' 'samba')
+ backup=('etc/conf.d/smb')
+ install=samba.install
- install -Dm755 "${srcdir}/${_Csmb}" "${pkgdir}/etc/conf.d/smb"
- install -Dm755 "${srcdir}/${_Ismb}" "${pkgdir}/etc/init.d/smb"
+ _inst_confd 'smb'
+ _inst_initd 'smb'
- local _p1='s/="samba"/="smb"/'
- sed -e "${_binpath[0]}" -e ${_p1} -i "${pkgdir}/etc/conf.d/smb"
+ sed -e 's|/usr/sbin|/usr/bin|g' \
+ -e 's/="samba"/="smb"/' \
+ -i "${pkgdir}/etc/conf.d/smb"
- _p1='s/##samba/##smb/'
- local _p2='s|"samba"|"smb"|'
- sed -e "${_shebang}" -e "${_binpath[0]}" -e "${_runpath}" -e ${_p1} -e ${_p2} -i "${pkgdir}/etc/init.d/smb"
+ sed -e 's|/usr/sbin|/usr/bin|g' \
+ -e 's/##samba/##smb/' \
+ -e 's|"samba"|"smb"|' \
+ -i "${pkgdir}/etc/init.d/smb"
}
package_squid-openrc() {
- pkgdesc="OpenRC squid init script"
- depends=('openrc-core' 'squid')
- optdepends=('bind-openrc: bind initscript')
- backup=('etc/conf.d/squid')
- install=squid.install
+ pkgdesc="OpenRC squid init script"
+ depends=('openrc-core' 'squid')
+ optdepends=('bind-openrc: bind initscript')
+ backup=('etc/conf.d/squid')
+ install=squid.install
- install -Dm755 "${srcdir}/${_Csquid}" "${pkgdir}/etc/conf.d/squid"
- install -Dm755 "${srcdir}/${_Isquid}" "${pkgdir}/etc/init.d/squid"
+ _inst_confd 'squid'
+ _inst_initd 'squid'
- local _p1='s|chown squid|chown proxy|' \
- _p2='s|squid:squid|proxy:proxy|'
- sed -e "${_shebang}" -e "${_binpath[0]}" -e "${_runpath}" -e "${_p1}" -e "${_p2}" -i "${pkgdir}/etc/init.d/squid"
+ sed -e 's|/usr/sbin|/usr/bin|g' \
+ -e 's|chown squid|chown proxy|' \
+ -e 's|squid:squid|proxy:proxy|' \
+ -i "${pkgdir}/etc/init.d/squid"
}
package_transmission-openrc() {
- pkgdesc="OpenRC transmission init script"
- depends=('openrc-core' 'transmission-cli')
- backup=('etc/conf.d/transmission-daemon')
- install=transmission.install
+ pkgdesc="OpenRC transmission init script"
+ depends=('openrc-core' 'transmission-cli')
+ backup=('etc/conf.d/transmission-daemon')
+ install=transmission.install
- install -Dm755 "${srcdir}/${_Ctrans}" "${pkgdir}/etc/conf.d/transmission-daemon"
- install -Dm755 "${srcdir}/${_Itrans}" "${pkgdir}/etc/init.d/transmission-daemon"
-
- sed -e "${_shebang}" -e "${_runpath}" -i "${pkgdir}/etc/init.d/transmission-daemon"
+ _inst_confd 'transmission-daemon'
+ _inst_initd 'transmission-daemon'
}
package_ufw-openrc() {
- pkgdesc="OpenRC ufw init script"
- depends=('openrc-core' 'ufw')
- backup=('etc/conf.d/ufw')
- install=ufw.install
+ pkgdesc="OpenRC ufw init script"
+ depends=('openrc-core' 'ufw')
+ backup=('etc/conf.d/ufw')
+ install=ufw.install
- install -Dm755 "${srcdir}/${_Cufw}" "${pkgdir}/etc/conf.d/ufw"
- install -Dm755 "${srcdir}/${_Iufw}" "${pkgdir}/etc/init.d/ufw"
+ _inst_confd 'ufw'
+ _inst_initd 'ufw'
- local _p1='s|/usr/share/ufw/ufw-init-functions|/usr/lib/ufw/ufw-init-functions|g'
- sed -e "${_shebang}" -e "${_binpath[0]}" -e "${_runpath}" -e "${_p1}" -i "${pkgdir}/etc/init.d/ufw"
+ sed -e 's|/usr/sbin|/usr/bin|g' \
+ -e 's|/usr/share/ufw/ufw-init-functions|/usr/lib/ufw/ufw-init-functions|g' \
+ -i "${pkgdir}/etc/init.d/ufw"
}
package_vsftpd-openrc() {
- pkgdesc="OpenRC vsftpd init script"
- depends=('openrc-core' 'vsftpd')
- optdepends=('bind-openrc: bind initscript')
- install=vsftpd.install
+ pkgdesc="OpenRC vsftpd init script"
+ depends=('openrc-core' 'vsftpd')
+ optdepends=('bind-openrc: bind initscript')
+ install=vsftpd.install
+
+ _inst_initd 'vsftpd'
+
+ install -Dm755 "${srcdir}/vsftpd-checkconfig.sh" "${pkgdir}/usr/lib/vsftpd-checkconfig.sh"
- install -Dm755 "${srcdir}/${_Ivsftp}" "${pkgdir}/etc/init.d/vsftpd"
- install -Dm755 "${srcdir}/${_Svsftp}" "${pkgdir}/usr/lib/vsftpd-checkconfig.sh"
+ sed -e 's|/usr/sbin|/usr/bin|g' \
+ -e 's|/usr/libexec/|/usr/lib/|g' \
+ -e 's|/etc/vsftpd/|/etc/|g' \
+ -i "${pkgdir}/etc/init.d/vsftpd"
- local _p1='s|/usr/libexec/|/usr/lib/|g' \
- _p2='s|/etc/vsftpd/|/etc/|g'
- sed -e "${_shebang}" -e "${_binpath[0]}" -e "${_runpath}" -e "${_p1}" -e "${_p2}" -i "${pkgdir}/etc/init.d/vsftpd"
- sed -e "${_p2}" -i "${pkgdir}/usr/lib/vsftpd-checkconfig.sh"
+ sed -e 's|/etc/vsftpd/|/etc/|g' \
+ -i "${pkgdir}/usr/lib/vsftpd-checkconfig.sh"
}
package_xinetd-openrc() {
- pkgdesc="OpenRC xinetd init script"
- depends=('openrc-core' 'xinetd')
- backup=('etc/conf.d/xinetd')
- install=xinetd.install
+ pkgdesc="OpenRC xinetd init script"
+ depends=('openrc-core' 'xinetd')
+ backup=('etc/conf.d/xinetd')
+ install=xinetd.install
- install -Dm755 "${srcdir}/${_Cxinet}" "${pkgdir}/etc/conf.d/xinetd"
- install -Dm755 "${srcdir}/${_Ixinet}" "${pkgdir}/etc/init.d/xinetd"
+ _inst_confd 'xinetd'
+ _inst_initd 'xinetd'
- sed -e "${_shebang}" -e "${_binpath[0]}" -e "${_runpath}" -i "${pkgdir}/etc/init.d/xinetd"
+ sed -e 's|/usr/sbin|/usr/bin|g' \
+ -i "${pkgdir}/etc/init.d/xinetd"
}
package_ypbind-mt-openrc() {
- pkgdesc="OpenRC ypbind-mt init script"
- depends=('ypbind-mt' 'rpcbind-openrc' 'openslp-openrc')
- optdepends=('ypserv-openrc: ypserv initscript')
- backup=('etc/conf.d/ypbind')
- install=ypbind-mt.install
+ pkgdesc="OpenRC ypbind-mt init script"
+ depends=('ypbind-mt' 'rpcbind-openrc' 'openslp-openrc')
+ optdepends=('ypserv-openrc: ypserv initscript')
+ backup=('etc/conf.d/ypbind')
+ install=ypbind-mt.install
- install -Dm755 "${srcdir}/${_Cypbind}" "${pkgdir}/etc/conf.d/ypbind"
- install -Dm755 "${srcdir}/${_Iypbind}" "${pkgdir}/etc/init.d/ypbind"
+ _inst_confd 'ypbind'
+ _inst_initd 'ypbind'
- sed -e "${_shebang}" -e "${_binpath[0]}" -e "${_runpath}" -i "${pkgdir}/etc/init.d/ypbind"
+ sed -e 's|/usr/sbin|/usr/bin|g' \
+ -i "${pkgdir}/etc/init.d/ypbind"
}
package_ypserv-openrc() {
- pkgdesc="OpenRC ypserv init script"
- depends=('openrc-core' 'ypserv')
- backup=('etc/conf.d/rpc.yppasswdd'
- 'etc/conf.d/rpc.ypxfrd'
- 'etc/conf.d/ypserv')
- install=ypserv.install
+ pkgdesc="OpenRC ypserv init script"
+ depends=('openrc-core' 'ypserv')
+ backup=('etc/conf.d/rpc.yppasswdd'
+ 'etc/conf.d/rpc.ypxfrd'
+ 'etc/conf.d/ypserv')
+ install=ypserv.install
+
+ _inst_confd 'ypserv'
+ _inst_initd 'ypserv'
+
+ _inst_confd 'rpc.yppasswdd'
+ _inst_initd 'rpc.yppasswdd'
- install -Dm755 "${srcdir}/${_Cypserv1}" "${pkgdir}/etc/init.d/ypserv"
- install -Dm755 "${srcdir}/${_Iypserv1}" "${pkgdir}/etc/conf.d/ypserv"
- install -Dm755 "${srcdir}/${_Cypserv2}" "${pkgdir}/etc/conf.d/rpc.yppasswdd"
- install -Dm755 "${srcdir}/${_Iypserv2}" "${pkgdir}/etc/init.d/rpc.yppasswdd"
- install -Dm755 "${srcdir}/${_Cypserv3}" "${pkgdir}/etc/conf.d/rpc.ypxfrd"
- install -Dm755 "${srcdir}/${_Iypserv3}" "${pkgdir}/etc/init.d/rpc.ypxfrd"
+ _inst_confd 'rpc.ypxfrd'
+ _inst_initd 'rpc.ypxfrd'
- for f in ${pkgdir}/etc/init.d/*;do
- sed -e "${_shebang}" -e "${_binpath[0]}" -e "${_runpath}" -i $f
- done
+ for f in ${pkgdir}/etc/init.d/*;do
+ sed -e 's|/usr/sbin|/usr/bin|g' \
+ -i $f
+ done
}
package_tor-openrc() {
- pkgdesc="OpenRC tor init script"
- depends=('openrc-core' 'tor')
- backup=('etc/conf.d/tor')
- install=tor.install
+ pkgdesc="OpenRC tor init script"
+ depends=('openrc-core' 'tor')
+ backup=('etc/conf.d/tor')
+ install=tor.install
- install -Dm755 "${srcdir}/${_Ctor}" "${pkgdir}/etc/conf.d/tor"
- install -Dm755 "${srcdir}/${_Itor}" "${pkgdir}/etc/init.d/tor"
-
- sed -e "${_shebang}" -e "${_runpath}" -i "${pkgdir}/etc/init.d/tor"
+ _inst_confd 'tor'
+ _inst_initd 'tor'
}
package_wicd-openrc() {
- pkgdesc="OpenRC wicd script"
- depends=('openrc-core' 'wicd')
- install=wicd.install
+ pkgdesc="OpenRC wicd script"
+ depends=('openrc-core' 'wicd')
+ install=wicd.install
- install -Dm755 "${srcdir}/${_Iwicd}" "${pkgdir}/etc/init.d/wicd"
+ _inst_initd 'wicd'
}
package_syncthing-openrc() {
- pkgdesc="OpenRC syncthing init script"
- depends=('openrc-core' 'syncthing')
- backup=('etc/conf.d/syncthing')
- install=syncthing.install
-
- install -Dm755 "${srcdir}/${_CSync}" "${pkgdir}/etc/conf.d/syncthing"
- install -Dm755 "${srcdir}/${_ISync}" "${pkgdir}/etc/init.d/syncthing"
+ pkgdesc="OpenRC syncthing init script"
+ depends=('openrc-core' 'syncthing')
+ backup=('etc/conf.d/syncthing')
+ install=syncthing.install
+ _inst_confd 'syncthing'
+ _inst_initd 'syncthing'
}
package_nginx-openrc() {
- pkgdesc="OpenRC nginx init script"
- depends=('openrc-core' 'nginx')
- install=nginx.install
+ pkgdesc="OpenRC nginx init script"
+ depends=('openrc-core' 'nginx')
+ install=nginx.install
- install -Dm755 "${srcdir}/${_Inginx}" "${pkgdir}/etc/init.d/nginx"
+ _inst_initd 'nginx'
- sed -e "${_shebang}" -e "${_binpath[0]}" -i "${pkgdir}/etc/init.d/nginx"
+ sed -e 's|/usr/sbin|/usr/bin|g' \
+ -i "${pkgdir}/etc/init.d/nginx"
}
-sha256sums=('8e093a18582c3a20283ed1c09de9acc6832a80b1d5a02962599db0535d38af19'
- '3cf1ab72446cb9417de916e4cd732f2056fb74d2c6f03da6741b7bae8c415448'
- '55024fe0e2b491b5cb490a9f575bad3096d446f20f8d52778d778fd26a415d52'
- 'a095def10c3b7e6894a6d782c70cbe176c7b53f36386dcc4b1e5bc75424e29f0'
- 'e8a413e9102948b336f60041fc3cade33125faf56d8319ee65d9f3c63199a8e7'
- 'a157630c3bdc9565cca8240ee1e6539fc9cbc1e4642c40e0965e3609d1021bac'
- '099f668e1ad42ed9446b15675032a1186715d1fe9e4a1b24dfb787e68495d2b6'
- 'b5811c6adf10d6210e5685b4e999f0449ac492379d055226eeb140f00d9b8702'
- '204aaf81d51dc119cee1d1ff3ae3dd50af666af2f8b2a363fd1bf442d4dcee00'
- '916f4b14095ee4ec8a510391c883e9f01868e18d79a3d5cbeb13a104a793d45d'
- 'b9701b9ea509638ee1ed74bec38a22e6bd7358763497ce53c146d2faf9e97a61'
- '7e2341211ca14997b7a8a1f930f94db855291af597c568f680f80031c20d45b6'
- '2938fe4206514d9868047bd8f888a699fa2097ca69edab176453436d4259abaa'
- '13047698e03079b754957e1e548ce7505dfb2c73c9a31f87e061140603ab0e44'
- '3e55c79f19aaa6ef6b64a621c03dbb2eac3ad923916dc803f4c1bfe48ce89fbb'
- '709309dea043aa306c2fcf0960e0993a6db540c220de64cf92d6b85f1cca23c5'
- 'c374ea05d7e9f15e10c8f9dbd0cad6548e0f92aef7de33e5dbc27222e9407e7b'
- 'bb6e6721f33e6582a91025f3500e159a599fb856d699e9394093e1018c7925e0'
- 'b1515472c32927039b38f6c3a797cbc54a5a300b5d6fa54df9550174afa2b7f8'
- 'c652a4fe8a43dc68a818345db2b3acc560663b5b6c969324d4f23afb0fb96a94'
- '1e77bc6fb2ceb266f724818898bd42bec47512a5a7ede6660e0565ea1c58d619'
- 'e8842fca856eae598fb8fe15ed8d3cef13e61851217be66b8cc4087af8cee8ad'
- '122ade9931af8f64696375c9c66d00f64a90949616e00e9a00a7264c50c2e8a7'
- '3ce65326859c43983dad25ad2d4731488c488037796e39b6b5eda336e8bf81ef'
- 'ebee63e81fb952474c34b745913e8774b29c9cc65180d363a33d991e478aea2d'
- '00d9c29280a83e8458c33139d04a9b38c6fdba9d7cb9b420ca83bf6b10e6435d'
- 'f1c460d8b0e91e54a551397d755135d05a3728d81de596535bf8bda074455677'
- 'a5731b8f681111421277c6c1c43b3e1d303790d9f8aebd977a895b0ed7a73bc3'
- '5bca003ec3b67c7c78519aede1d82002579006ccfecce8f87b559df719f82e92'
- '1fc515a6816b8a750db513df0b3b9bf8dd8bd4c4e9051205521acadfdebeae0f'
- '7f228796e020c0779c52683f684197d50662ae890b1ae193ffa9acf157ccd143'
- '29c6d57ac3ec6018cadc6ba6cd9b90c9ed46e20049b970fdcc68ee2481a2ee41'
- '97221a017d8ee9de996277c5a794d973a0b5e8180c29c97b3652bd1984a7b5d0'
- 'ff37dacce4551b6ef9866435d586b014aae5fef5b6c3ae7ba839165514644765'
- '51f4bffa535d891f94d4a20ca2a4a42cc99189f3de78cee1c8d235e4a9d1721d'
- '224496b498b4f692ae3316a95b5c7c8b6230dcd5fee0ca163956a7acde243de9'
- '00d1dfb3b893db5d6a213a4edda622c7d64dcafa40b3019f15e070c164286632'
- '00ce705b49aaa356d9d9f0be3b80a3fe2810471cbe02fd0edc66349f3ca281de'
- 'c3896303d6cfebf314a3f6b8aeed0f6cb6ae421c4c0923b0121c76b3251314e5'
- '6561ae40c5899a9f7a12f1f0867bec47d47c7cc3c583574ffcecbbf6f8d8afbb'
- 'de758791b16b89a648c01867af7f51bc9bd44e40cbe868e439b753ff5d9572e5'
- 'baff64277f9aa62cf1eeed2284bb08c4f3078a8e6e7604e4fec228ca5fa9dd82'
- '53755809cc27fdbaf98752cd3da45b5c2bda62dd46fcc37570c6e237f7954ffa'
- '9f4eaba0b966fd30351fa66cac9a666b5ec1dc54035ddad94c61a2f43dcb2d62'
- '214a184495a3384eb452caef435256043bc51e35140a61b1f5fdff32603c8f7e'
- '3830cb94600ac658a6ff1f9f31bdbece64caf3ad23c62ae0a887d152970125f5'
- '249689688aad23d0d27ccdd08a0907fd85058d6a52ccd3467f756b07f5d059ee'
- '06d047b47befe6aaf1b1542fdd50e84ea38e0fef004b5095f6096f33fa1901a3'
- '069aa7382b40aecebf26ef53f3f4c49890314e0357925c84b3c15f1d0b913be0'
- '657b5305923b2a5de9eb96931aaaa28d6e997ace6c40793d905887798094258c'
- '2de7c7c1edfe3ae0480e22d988a564db3bb873050929ebb6e8361d7a1288ddda'
- '4297952eeeb02b5c4f2f750742614513fa6a0c8d291a9a0adcec1ec0098fcd78'
- 'e401e2cf7c0180a170d3dc3e91d7e98002bae7b013df72813b7bcf89b864fb3a'
- '6aeb4ec9b8ccc062b5ee8c609830c05cee3ed790fa90d7b2d8cf82a09e317c5c'
- '79f6c6ed4875f00fe702f69e9a6180a032d5a47f3e58e892e6ba0e2746b6fec8'
- '3cdd6872fae15dc8533b3f75ac36ad59ffb946a3f1b445d688629c621cebbe34'
- '4edd475ca95d31cfcea20a8e6268024f8128423bc7ae67edb535e6811c64668e'
- 'e46afe737bfc57aa31be1a441615fcc112e1ebf41d631c1929e00b81baca119d'
- 'bd1f245a362f85319e83965e8b825e66e686a4a0bf185ab8ec51fd335bc873c2'
- '08db79845b497f2ec8938854ffac904aeed747d98c0820ad0be9e5aa9377512b'
- 'e827778b8a8e6984b637c745c315a2e02ebc46af752651b7a70626ba545a84b6'
- 'a6445dd607093fdafb013e5896f60d78223549b38c96300fe239bcf5dbf2a8de'
- 'f2c44e5018719f644e194a4e8e43390bdc9926c533f79c41f0abf84879799d05'
- '330149a83684ddabe413d134d4c8efad4c88b18c2ab67165014deff5f7fffad2'
- 'd1b1f8a00935d77521bceb62535350444df3470fa45f4d33c3934051a1bb595b'
- '91fb1497b3a6ef0bb3a3d5baefdff801d8ff1cba27aaf742303415550814a09b'
- 'fca7183a7676f0f471878925c8fbec20b7a0bff01551c0ad2b34d4d8a826c876'
- '41d780f291847e19f632428bbf27c3f289414afd237546d2974da1b75384c25c'
- '17cfda4d50a3d3fd74f36c79dec78b5f89fe6b45712729d8bbdbddd7e8ea9a10'
- '66b2b53b077ddc2d5eb1d81faa99fa0f4f0db01520900ba948001e539bfe02d8'
- 'eb4a4315916fe3f8688c1da5bb5c249a1f402e61617452288d5b0668078c955c'
- '63708b1a7b61ae791df64bb4cefa01dc12236f96bb67fe6d0b2c513e11c81f3e'
- '9d5fca09d0161446a5cec30a0694cdc0656469403a008920a52a190051218b36')
diff --git a/pcr/openrc-net/autofs5.initd b/pcr/openrc-net/autofs5.initd
deleted file mode 100644
index 939444e02..000000000
--- a/pcr/openrc-net/autofs5.initd
+++ /dev/null
@@ -1,70 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/files/autofs5.initd,v 1.4 2013/11/10 15:53:29 tomwij Exp $
-
-DAEMON=/usr/sbin/automount
-PIDFILE=/var/run/autofs.pid
-DEVICE=autofs
-
-depend() {
- need localmount
- use ypbind nfs slapd portmap net
-}
-
-extra_started_commands="reload"
-
-start() {
- ebegin "Starting automounter"
-
- # Ensure autofs support is loaded
- grep -q autofs /proc/filesystems || modprobe -q autofs4
- if [ $? -ne 0 ]; then
- eend 1 "No autofs support available in kernel"
- return 1
- fi
-
- # Check misc device
- if [ -n "${USE_MISC_DEVICE}" -a "${USE_MISC_DEVICE}" = "yes" ]; then
- sleep 1
- if [ -e "/proc/misc" ]; then
- MINOR=$(awk "/${DEVICE}/ {print \$1}" /proc/misc)
- if [ -n "${MINOR}" -a ! -c "/dev/${DEVICE}" ]; then
- mknod -m 0600 "/dev/${DEVICE}" c 10 ${MINOR}
- if [ $? -ne 0 ]; then
- eend 1 "Could not create '/dev/${DEVICE}'"
- return 1
- fi
- fi
- fi
- if [ -x /sbin/restorecon -a -c "/dev/${DEVICE}" ]; then
- /sbin/restorecon "/dev/${DEVICE}"
- if [ $? -ne 0 ]; then
- eend 1 "Failed to execute '/sbin/restorecon \"/dev/${DEVICE}\"'"
- return 1
- fi
- fi
- else
- [ -c "/dev/${DEVICE}" ] && rm -rf "/dev/${DEVICE}"
- fi
-
- start-stop-daemon --start --exec ${DAEMON} -- -p ${PIDFILE} ${OPTIONS}
-
- eend $?
-}
-
-stop() {
- ebegin "Stopping automounter"
- start-stop-daemon --stop --quiet -R TERM/45 -p ${PIDFILE}
- eend $?
-}
-
-reload() {
- ebegin "Reloading automounter"
- if [ ! -r "${PIDFILE}" ]; then
- eend 1 "automount not running"
- else
- kill -s HUP $(cat "${PIDFILE}") 2> /dev/null
- eend $?
- fi
-}
diff --git a/pcr/openrc-net/dhcpd.conf2 b/pcr/openrc-net/dhcpd.conf2
deleted file mode 100644
index 5cd2eeca3..000000000
--- a/pcr/openrc-net/dhcpd.conf2
+++ /dev/null
@@ -1,28 +0,0 @@
-# /etc/conf.d/dhcpd: config file for /etc/init.d/dhcpd
-
-# If you require more than one instance of dhcpd you can create symbolic
-# links to dhcpd service like so
-# cd /etc/init.d
-# ln -s dhcpd dhcpd.foo
-# cd ../conf.d
-# cp dhcpd dhcpd.foo
-# Now you can edit dhcpd.foo and specify a different configuration file.
-# You'll also need to specify a pidfile in that dhcpd.conf file.
-# See the pid-file-name option in the dhcpd.conf man page for details.
-
-# If you wish to run dhcpd in a chroot, uncomment the following line
-# DHCPD_CHROOT="/var/lib/dhcp/chroot"
-
-# All file paths below are relative to the chroot.
-# You can specify a different chroot directory but MAKE SURE it's empty.
-
-# Specify a configuration file - the default is /etc/dhcp/dhcpd.conf
-# DHCPD_CONF="/etc/dhcp/dhcpd.conf"
-
-# Configure which interface or interfaces to for dhcpd to listen on.
-# List all interfaces space separated. If this is not specified then
-# we listen on all interfaces.
-# DHCPD_IFACE=""
-
-# Insert any other dhcpd options - see the man page for a full list.
-# DHCPD_OPTS=""
diff --git a/pcr/openrc-net/dhcpd.init5 b/pcr/openrc-net/dhcpd.init5
deleted file mode 100644
index 65148e08d..000000000
--- a/pcr/openrc-net/dhcpd.init5
+++ /dev/null
@@ -1,115 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcp/files/dhcpd.init5,v 1.6 2015/02/10 00:27:08 polynomial-c Exp $
-
-extra_commands="configtest"
-
-: ${DHCPD_CONF:=/etc/dhcp/${SVCNAME}.conf}
-
-depend() {
- need net
- use logger dns #@slapd@
-}
-
-get_var() {
- local var="$(sed -n 's/^[[:blank:]]\?'"$1"' "*\([^#";]\+\).*/\1/p' "${chroot}${DHCPD_CONF}")"
- echo ${var:-$2}
-}
-
-checkconfig() {
- set -- ${DHCPD_OPTS} ${chroot:+-chroot} ${chroot} -t
-
- dhcpd "$@" 1>/dev/null 2>&1
- local ret=$?
- if [ ${ret} -ne 0 ] ; then
- eerror "${SVCNAME} has detected a syntax error in your configuration files:"
- dhcpd "$@"
- fi
-
- return ${ret}
-}
-
-configtest() {
- local chroot=${DHCPD_CHROOT%/}
-
- ebegin "Checking ${SVCNAME} configuration"
- checkconfig
- eend $?
-}
-
-start() {
- local chroot=${DHCPD_CHROOT%/}
-
- # Work out our cffile if it's in our DHCPD_OPTS
- case " ${DHCPD_OPTS} " in
- *" -cf "*)
- DHCPD_CONF=" ${DHCPD_OPTS} "
- DHCPD_CONF="${DHCPD_CONF##* -cf }"
- DHCPD_CONF="${DHCPD_CONF%% *}"
- ;;
- *) DHCPD_OPTS="${DHCPD_OPTS} -cf ${DHCPD_CONF}"
- ;;
- esac
-
- if [ -n "${chroot}" ] ; then
- # the config test want's these to exist
- mkdir -p \
- "${chroot}"/var/run/dhcp \
- "${chroot}"/var/lib/dhcp \
- "${chroot}"/etc/dhcp
- fi
-
- # see comment in get_var() above
- if [ ! -f "${chroot}${DHCPD_CONF}" ] ; then
- eerror "${chroot}${DHCPD_CONF} does not exist"
- return 1
- fi
-
- checkconfig || return 1
-
- checkpath -d -o dhcp:dhcp "${chroot}"/var/run/dhcp "${chroot}"/var/lib/dhcp
-
- local leasefile="$(get_var lease-file-name /var/lib/dhcp/${SVCNAME}.leases)"
- checkpath -f -o dhcp:dhcp "${chroot}${leasefile}"
-
- # Setup LD_PRELOAD so name resolution works in our chroot.
- if [ -n "${chroot}" ] ; then
- checkpath -d -o root:root -m 755 "${chroot}"/dev "${chroot}"/etc "${chroot}"/proc
- cp -pP /etc/localtime /etc/resolv.conf "${chroot}"/etc/
- export LD_PRELOAD="${LD_PRELOAD} libresolv.so libnss_dns.so"
- if ! mountinfo -q "${chroot}/proc" ; then
- mount --bind /proc "${chroot}/proc"
- fi
- fi
-
- local pidfile="$(get_var pid-file-name /var/run/dhcp/${SVCNAME}.pid)"
-
- ebegin "Starting ${chroot:+chrooted }${SVCNAME}"
- start-stop-daemon --start --exec /usr/sbin/dhcpd \
- --pidfile "${chroot}/${pidfile}" \
- -- ${DHCPD_OPTS} -q -pf "${pidfile}" -lf "${leasefile}" \
- -user dhcp -group dhcp \
- ${chroot:+-chroot} ${chroot} ${DHCPD_IFACE}
- eend $? \
- && save_options dhcpd_chroot "${chroot}" \
- && save_options pidfile "${pidfile}"
-}
-
-stop() {
- local chroot="$(get_options dhcpd_chroot)"
- [ -z "$chroot" ] && chroot="$(get_options chroot)"
-
- ebegin "Stopping ${chroot:+chrooted }${SVCNAME}"
- start-stop-daemon --stop --exec /usr/sbin/dhcpd \
- --pidfile "${chroot}/$(get_options pidfile)"
- res=$?
-
- if [ ${res} -eq 0 ] && [ -n "${chroot}" ] ; then
- if mountinfo -q "${chroot}/proc" ; then
- umount "${chroot}/proc"
- fi
- fi
-
- eend $res
-}
diff --git a/pcr/openrc-net/dhcrelay.conf b/pcr/openrc-net/dhcrelay.conf
deleted file mode 100644
index 44699682d..000000000
--- a/pcr/openrc-net/dhcrelay.conf
+++ /dev/null
@@ -1,16 +0,0 @@
-# /etc/conf.d/dhcrelay: config file for /etc/init.d/dhcrelay
-
-# Configure which interface or interfaces to for dhcrelay to listen on
-# and send to.
-# List all interfaces space separated. If this is not specified then
-# we use all interfaces.
-#IFACE=""
-# If you have split net interfaces, you might want to depend on them
-# explicitly here.
-#rc_need=$(printf 'net.%s ' ${IFACE})
-
-# Insert any other options needed. See dhcrelay(8) for details.
-#DHCRELAY_OPTS=""
-
-# Space separated list of IPs to forward BOOTP/DHCP packets to.
-DHCRELAY_SERVERS=""
diff --git a/pcr/openrc-net/dhcrelay.init3 b/pcr/openrc-net/dhcrelay.init3
deleted file mode 100644
index fe4ec8c6d..000000000
--- a/pcr/openrc-net/dhcrelay.init3
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcp/files/dhcrelay.init3,v 1.3 2012/11/11 21:42:02 vapier Exp $
-
-depend() {
- need net
- use logger #@slapd@
-}
-
-start() {
- if [ -z "${DHCRELAY_SERVERS}" ] ; then
- eerror "No DHCRELAY_SERVERS specified in /etc/conf.d/${SVCNAME}"
- return 1
- fi
-
- checkpath -d /var/run/dhcp
-
- local iface_opts
- if [ -n "${IFACE}" ] ; then
- iface_opts=$(printf -- '-i %s ' ${IFACE})
- fi
-
- ebegin "Starting ${SVCNAME}"
- start-stop-daemon --start --exec /usr/sbin/dhcrelay \
- -- -q ${iface_opts} ${DHCRELAY_OPTS} ${DHCRELAY_SERVERS}
- eend $?
-}
-
-stop() {
- ebegin "Stopping ${SVCNAME}"
- start-stop-daemon --stop --pidfile /var/run/dhcp/${SVCNAME}.pid
- eend $?
-}
diff --git a/pcr/openrc-net/dhcrelay6.conf b/pcr/openrc-net/dhcrelay6.conf
deleted file mode 100644
index 4e8b8c6fe..000000000
--- a/pcr/openrc-net/dhcrelay6.conf
+++ /dev/null
@@ -1,8 +0,0 @@
-# /etc/conf.d/dhcrelay6: config file for /etc/init.d/dhcrelay6
-
-# Insert any other options needed. See dhcrelay(8) for details.
-# Make sure you specify the lower (-l)/upper (-u) interfaces.
-DHCRELAY_OPTS="-6 -l lower-iface -u upper-iface"
-
-# Space separated list of IPs to forward BOOTP/DHCP packets to.
-DHCRELAY_SERVERS=""
diff --git a/pcr/openrc-net/hostapd-conf.d b/pcr/openrc-net/hostapd-conf.d
deleted file mode 100644
index 7d05735eb..000000000
--- a/pcr/openrc-net/hostapd-conf.d
+++ /dev/null
@@ -1,9 +0,0 @@
-# Space separated List of interfaces which needs to be started before
-# hostapd
-INTERFACES="wlan0"
-
-# Space separated list of configuration files
-CONFIGS="/etc/hostapd/hostapd.conf"
-
-# Extra options to pass to hostapd, see hostapd(8)
-OPTIONS=""
diff --git a/pcr/openrc-net/hostapd-init.d b/pcr/openrc-net/hostapd-init.d
deleted file mode 100644
index d09002b66..000000000
--- a/pcr/openrc-net/hostapd-init.d
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/files/hostapd-init.d,v 1.4 2014/03/21 19:47:14 gurligebis Exp $
-
-pidfile="/run/${SVCNAME}.pid"
-command="/usr/sbin/hostapd"
-command_args="-P ${pidfile} -B ${OPTIONS} ${CONFIGS}"
-
-extra_started_commands="reload"
-
-depend() {
- local myneeds=
- for iface in ${INTERFACES}; do
- myneeds="${myneeds} net.${iface}"
- done
-
- [ -n "${myneeds}" ] && need ${myneeds}
- use logger
-}
-
-start_pre() {
- local file
-
- for file in ${CONFIGS}; do
- if [ ! -r "${file}" ]; then
- eerror "hostapd configuration file (${CONFIG}) not found"
- return 1
- fi
- done
-}
-
-reload() {
- start_pre || return 1
-
- ebegin "Reloading ${SVCNAME} configuration"
- kill -HUP $(cat ${pidfile}) > /dev/null 2>&1
- eend $?
-}
diff --git a/pcr/openrc-net/ip6tables-1.4.13.confd b/pcr/openrc-net/ip6tables-1.4.13.confd
deleted file mode 100644
index 3bb36989d..000000000
--- a/pcr/openrc-net/ip6tables-1.4.13.confd
+++ /dev/null
@@ -1,19 +0,0 @@
-# /etc/conf.d/ip6tables
-
-# Location in which iptables initscript will save set rules on
-# service shutdown
-IP6TABLES_SAVE="/var/lib/ip6tables/rules-save"
-
-# Options to pass to iptables-save and iptables-restore
-SAVE_RESTORE_OPTIONS="-c"
-
-# Save state on stopping iptables
-SAVE_ON_STOP="yes"
-
-# If you need to log iptables messages as soon as iptables starts,
-# AND your logger does NOT depend on the network, then you may wish
-# to uncomment the next line.
-# If your logger depends on the network, and you uncomment this line
-# you will create an unresolvable circular dependency during startup.
-# After commenting or uncommenting this line, you must run 'rc-update -u'.
-#rc_use="logger"
diff --git a/pcr/openrc-net/iptables-1.4.13-r1.init b/pcr/openrc-net/iptables-1.4.13-r1.init
deleted file mode 100644
index a63d07688..000000000
--- a/pcr/openrc-net/iptables-1.4.13-r1.init
+++ /dev/null
@@ -1,130 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/iptables/files/iptables-1.4.13-r1.init,v 1.3 2013/04/27 17:29:09 vapier Exp $
-
-extra_commands="check save panic"
-extra_started_commands="reload"
-
-iptables_name=${SVCNAME}
-case ${iptables_name} in
-iptables|ip6tables) ;;
-*) iptables_name="iptables" ;;
-esac
-
-iptables_bin="/sbin/${iptables_name}"
-case ${iptables_name} in
- iptables) iptables_proc="/proc/net/ip_tables_names"
- iptables_save=${IPTABLES_SAVE};;
- ip6tables) iptables_proc="/proc/net/ip6_tables_names"
- iptables_save=${IP6TABLES_SAVE};;
-esac
-
-depend() {
- need localmount #434774
- before net
-}
-
-set_table_policy() {
- local chains table=$1 policy=$2
- case ${table} in
- nat) chains="PREROUTING POSTROUTING OUTPUT";;
- mangle) chains="PREROUTING INPUT FORWARD OUTPUT POSTROUTING";;
- filter) chains="INPUT FORWARD OUTPUT";;
- *) chains="";;
- esac
- local chain
- for chain in ${chains} ; do
- ${iptables_bin} -t ${table} -P ${chain} ${policy}
- done
-}
-
-checkkernel() {
- if [ ! -e ${iptables_proc} ] ; then
- eerror "Your kernel lacks ${iptables_name} support, please load"
- eerror "appropriate modules and try again."
- return 1
- fi
- return 0
-}
-checkconfig() {
- if [ ! -f ${iptables_save} ] ; then
- eerror "Not starting ${iptables_name}. First create some rules then run:"
- eerror "/etc/init.d/${iptables_name} save"
- return 1
- fi
- return 0
-}
-
-start() {
- checkconfig || return 1
- ebegin "Loading ${iptables_name} state and starting firewall"
- ${iptables_bin}-restore ${SAVE_RESTORE_OPTIONS} < "${iptables_save}"
- eend $?
-}
-
-stop() {
- if [ "${SAVE_ON_STOP}" = "yes" ] ; then
- save || return 1
- fi
- checkkernel || return 1
- ebegin "Stopping firewall"
- local a
- for a in $(cat ${iptables_proc}) ; do
- set_table_policy $a ACCEPT
-
- ${iptables_bin} -F -t $a
- ${iptables_bin} -X -t $a
- done
- eend $?
-}
-
-reload() {
- checkkernel || return 1
- checkrules || return 1
- ebegin "Flushing firewall"
- local a
- for a in $(cat ${iptables_proc}) ; do
- ${iptables_bin} -F -t $a
- ${iptables_bin} -X -t $a
- done
- eend $?
-
- start
-}
-
-checkrules() {
- ebegin "Checking rules"
- ${iptables_bin}-restore --test ${SAVE_RESTORE_OPTIONS} < "${iptables_save}"
- eend $?
-}
-
-check() {
- # Short name for users of init.d script.
- checkrules
-}
-
-save() {
- ebegin "Saving ${iptables_name} state"
- checkpath -q -d "$(dirname "${iptables_save}")"
- checkpath -q -m 0600 -f "${iptables_save}"
- ${iptables_bin}-save ${SAVE_RESTORE_OPTIONS} > "${iptables_save}"
- eend $?
-}
-
-panic() {
- checkkernel || return 1
- if service_started ${iptables_name}; then
- rc-service ${iptables_name} stop
- fi
-
- local a
- ebegin "Dropping all packets"
- for a in $(cat ${iptables_proc}) ; do
- ${iptables_bin} -F -t $a
- ${iptables_bin} -X -t $a
-
- set_table_policy $a DROP
- done
- eend $?
-}
diff --git a/pcr/openrc-net/iptables-1.4.13.confd b/pcr/openrc-net/iptables-1.4.13.confd
deleted file mode 100644
index 7225374c3..000000000
--- a/pcr/openrc-net/iptables-1.4.13.confd
+++ /dev/null
@@ -1,19 +0,0 @@
-# /etc/conf.d/iptables
-
-# Location in which iptables initscript will save set rules on
-# service shutdown
-IPTABLES_SAVE="/var/lib/iptables/rules-save"
-
-# Options to pass to iptables-save and iptables-restore
-SAVE_RESTORE_OPTIONS="-c"
-
-# Save state on stopping iptables
-SAVE_ON_STOP="yes"
-
-# If you need to log iptables messages as soon as iptables starts,
-# AND your logger does NOT depend on the network, then you may wish
-# to uncomment the next line.
-# If your logger depends on the network, and you uncomment this line
-# you will create an unresolvable circular dependency during startup.
-# After commenting or uncommenting this line, you must run 'rc-update -u'.
-#rc_use="logger"
diff --git a/pcr/openrc-net/lighttpd.confd b/pcr/openrc-net/lighttpd.confd
deleted file mode 100644
index f3afb07a5..000000000
--- a/pcr/openrc-net/lighttpd.confd
+++ /dev/null
@@ -1,12 +0,0 @@
-# /etc/conf.d/lighttpd
-
-# Location of a shell used by the 'include_shell' directive
-# in the lighttpd's configuration file
-#export SHELL="/bin/bash"
-
-# Location of the lighttpd configuration file
-LIGHTTPD_CONF="/etc/lighttpd/lighttpd.conf"
-
-# Location of the lighttpd pid file
-LIGHTTPD_PID="$(/usr/bin/awk '/^server.pid-file/{s=$3};{sub("\"","",s)};END{print s}' ${LIGHTTPD_CONF})"
-
diff --git a/pcr/openrc-net/lighttpd.initd b/pcr/openrc-net/lighttpd.initd
deleted file mode 100644
index 43626c026..000000000
--- a/pcr/openrc-net/lighttpd.initd
+++ /dev/null
@@ -1,73 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/files/lighttpd.initd,v 1.22 2013/02/06 19:36:51 hwoarang Exp $
-
-extra_started_commands="reload graceful"
-
-depend() {
- need net
- use mysql logger spawn-fcgi ldap slapd netmount dns
- after famd
- after sshd
-}
-
-checkconfig() {
- if [ ! -f "${LIGHTTPD_CONF}" ] ; then
- ewarn "${LIGHTTPD_CONF} does not exist."
- return 1
- fi
-
- if [ -z "${LIGHTTPD_PID}" ] ; then
- ewarn "server.pid-file variable in ${LIGHTTPD_CONF}"
- ewarn "is not set. Falling back to lighttpd.pid"
- LIGHTTPD_PID="/run/lighttpd.pid"
- fi
- /usr/sbin/lighttpd -t -f ${LIGHTTPD_CONF} >/dev/null
-}
-
-start() {
- checkconfig || return 1
- checkpath -d -q -m 0750 -o lighttpd:lighttpd /run/lighttpd/
-
- ebegin "Starting lighttpd"
- start-stop-daemon --start --quiet --exec /usr/sbin/lighttpd \
- --pidfile "${LIGHTTPD_PID}" -- -f "${LIGHTTPD_CONF}"
- eend $?
-}
-
-stop() {
- local rv=0
- ebegin "Stopping lighttpd"
- start-stop-daemon --stop --quiet --pidfile "${LIGHTTPD_PID}"
- eend $?
-}
-
-reload() {
- if ! service_started "${SVCNAME}" ; then
- eerror "${SVCNAME} isn't running"
- return 1
- fi
- checkconfig || return 1
-
- ebegin "Re-opening lighttpd log files"
- start-stop-daemon --quiet --pidfile "${LIGHTTPD_PID}" \
- --signal HUP
- eend $?
-}
-
-graceful() {
- if ! service_started "${SVCNAME}" ; then
- eerror "${SVCNAME} isn't running"
- return 1
- fi
- checkconfig || return 1
-
- ebegin "Gracefully stopping lighttpd"
- start-stop-daemon --quiet --pidfile "${LIGHTTPD_PID}" \
- --signal INT
- if eend $? ; then
- rm -f "${LIGHTTPD_PID}"
- start
- fi
-}
diff --git a/pcr/openrc-net/mit-krb5kadmind.initd-r1 b/pcr/openrc-net/mit-krb5kadmind.initd-r1
deleted file mode 100644
index 7b28fb2ae..000000000
--- a/pcr/openrc-net/mit-krb5kadmind.initd-r1
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/sbin/runscript
-
-#---------------------------------------------------------------------------
-# This script starts/stops the MIT Kerberos 5 Admin daemon
-#---------------------------------------------------------------------------
-
-daemon="MIT Kerberos 5 Admin daemon"
-exec="/usr/sbin/kadmind"
-
-depend() {
- need mit-krb5kdc
- use net
-}
-
-start() {
- ebegin "Starting $daemon"
- start-stop-daemon --start --quiet --exec ${exec} 1>&2
- eend $? "Error starting $daemon"
-}
-
-stop() {
- ebegin "Stopping $daemon"
- start-stop-daemon --stop --quiet --exec ${exec} 1>&2
- eend $? "Error stopping $daemon"
-}
diff --git a/pcr/openrc-net/mit-krb5kdc.initd-r1 b/pcr/openrc-net/mit-krb5kdc.initd-r1
deleted file mode 100644
index 94f1f7937..000000000
--- a/pcr/openrc-net/mit-krb5kdc.initd-r1
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/sbin/runscript
-
-#---------------------------------------------------------------------------
-# This script starts/stops the MIT Kerberos 5 KDC
-#---------------------------------------------------------------------------
-
-daemon="MIT Kerberos 5 KDC"
-exec="/usr/sbin/krb5kdc"
-
-depend() {
- use net
-}
-
-start() {
- ebegin "Starting $daemon"
- start-stop-daemon --start --quiet --exec ${exec} 1>&2
- eend $? "Error starting $daemon"
-}
-
-stop() {
- ebegin "Stopping $daemon"
- start-stop-daemon --stop --quiet --exec ${exec} 1>&2
- eend $? "Error stopping $daemon"
-}
diff --git a/pcr/openrc-net/mit-krb5kpropd.initd-r1 b/pcr/openrc-net/mit-krb5kpropd.initd-r1
deleted file mode 100644
index d800d666a..000000000
--- a/pcr/openrc-net/mit-krb5kpropd.initd-r1
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/sbin/runscript
-
-#---------------------------------------------------------------------------
-# This script starts/stops the MIT Kerberos 5 kpropd
-#---------------------------------------------------------------------------
-
-daemon="MIT Kerberos 5 kpropd"
-exec="/usr/sbin/kpropd"
-
-depend() {
- use net mit-krb5kdc mit-krb5kadmind
-}
-
-start() {
- ebegin "Starting $daemon"
- start-stop-daemon --start --quiet --exec ${exec} -- -S 1>&2
- eend $? "Error starting $daemon"
-}
-
-stop() {
- ebegin "Stopping $daemon"
- start-stop-daemon --stop --quiet --exec ${exec} 1>&2
- eend $? "Error stopping $daemon"
-}
diff --git a/pcr/openrc-net/named.confd-r7 b/pcr/openrc-net/named.confd-r7
deleted file mode 100644
index 477a48061..000000000
--- a/pcr/openrc-net/named.confd-r7
+++ /dev/null
@@ -1,48 +0,0 @@
-# Set various named options here.
-#
-#OPTIONS=""
-
-# Set this to the number of processors you want bind to use.
-# Leave this unchanged if you want bind to automatically detect the number
-#CPU="1"
-
-# If you wish to run bind in a chroot:
-# 1) un-comment the CHROOT= assignment, below. You may use
-# a different chroot directory but MAKE SURE it's empty.
-# 2) run: emerge --config =<bind-version>
-#
-#CHROOT="/chroot/dns"
-
-# Uncomment to enable binmount of /usr/share/GeoIP
-#CHROOT_GEOIP="1"
-
-# Uncomment the line below to avoid that the init script mounts the needed paths
-# into the chroot directory.
-# You have to copy all needed config files by hand if you say CHROOT_NOMOUNT="1".
-#CHROOT_NOMOUNT="1"
-
-# Uncomment this option if you have setup your own chroot environment and you
-# don't want/need the chroot consistency check
-#CHROOT_NOCHECK=1
-
-# Default pid file location
-PIDFILE="${CHROOT}/run/named/named.pid"
-
-# Scheduling priority: 19 is the lowest and -20 is the highest.
-# Default: 0
-#NAMED_NICELEVEL="0"
-
-# Uncomment rc_named_use/rc_named_after for the database you need.
-# Its necessary to ensure the database backend will be started before named.
-
-# MySQL
-#rc_named_use="mysql"
-#rc_named_after="mysql"
-
-# PostgreSQL
-#rc_named_use="pg_autovacuum postgresql"
-#rc_named_after="pg_autovacuum postgresql"
-
-# LDAP
-#rc_named_use="ldap"
-#rc_named_after="ldap"
diff --git a/pcr/openrc-net/named.init-r13 b/pcr/openrc-net/named.init-r13
deleted file mode 100644
index 7f4955327..000000000
--- a/pcr/openrc-net/named.init-r13
+++ /dev/null
@@ -1,248 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-dns/bind/files/named.init-r13,v 1.1 2014/01/31 21:24:49 idl0r Exp $
-
-extra_commands="checkconfig checkzones"
-extra_started_commands="reload"
-
-depend() {
- need net
- use logger
- provide dns
-}
-
-NAMED_CONF=${CHROOT}/etc/bind/named.conf
-
-OPENSSL_LIBGOST=${OPENSSL_LIBGOST:-0}
-MOUNT_CHECK_TIMEOUT=${MOUNT_CHECK_TIMEOUT:-60}
-
-_mount() {
- local from
- local to
- local opts
- local ret=0
-
- if [ "${#}" -lt 3 ]; then
- eerror "_mount(): to few arguments"
- return 1
- fi
-
- from=$1
- to=$2
- shift 2
-
- opts="${*}"
- shift $#
-
- if [ -z "$(awk "\$2 == \"${to}\" { print \$2 }" /proc/mounts)" ]; then
- einfo "mounting ${from} to ${to}"
- mount ${from} ${to} ${opts}
- ret=$?
-
- eend $ret
- return $ret
- fi
-
- return 0
-}
-
-_umount() {
- local dir=$1
- local ret=0
-
- if [ -n "$(awk "\$2 == \"${dir}\" { print \$2 }" /proc/mounts)" ]; then
- ebegin "umounting ${dir}"
- umount ${dir}
- ret=$?
-
- eend $ret
- return $ret
- fi
-
- return 0
-}
-
-_get_pidfile() {
- # as suggested in bug #107724, bug 335398#c17
- [ -n "${PIDFILE}" ] || PIDFILE=${CHROOT}$(\
- /usr/sbin/named-checkconf -p ${CHROOT:+-t} ${CHROOT} ${NAMED_CONF#${CHROOT}} | grep 'pid-file' | cut -d\" -f2)
- [ -z "${PIDFILE}" ] && PIDFILE=${CHROOT}/run/named/named.pid
-}
-
-check_chroot() {
- if [ -n "${CHROOT}" ]; then
- [ ! -d "${CHROOT}" ] && return 1
- [ ! -d "${CHROOT}/dev" ] || [ ! -d "${CHROOT}/etc" ] || [ ! -d "${CHROOT}/var" ] && return 1
- [ ! -d "${CHROOT}/run" ] || [ ! -d "${CHROOT}/var/log" ] && return 1
- [ ! -d "${CHROOT}/etc/bind" ] || [ ! -d "${CHROOT}/var/bind" ] && return 1
- [ ! -d "${CHROOT}/var/log/named" ] && return 1
- [ ! -c "${CHROOT}/dev/null" ] || [ ! -c "${CHROOT}/dev/zero" ] && return 1
- [ ! -c "${CHROOT}/dev/random" ] && [ ! -c "${CHROOT}/dev/urandom" ] && return 1
- [ "${CHROOT_GEOIP:-0}" -eq 1 ] && [ ! -d "${CHROOT}/usr/share/GeoIP" ] && return 1
- if [ ${OPENSSL_LIBGOST:-0} -eq 1 ]; then
- if [ -d "/usr/lib64" ]; then
- [ ! -d "${CHROOT}/usr/lib64/engines" ] && return 1
- elif [ -d "/usr/lib" ]; then
- [ ! -d "${CHROOT}/usr/lib/engines" ] && return 1
- fi
- fi
- fi
-
- return 0
-}
-
-checkconfig() {
- ebegin "Checking named configuration"
-
- if [ ! -f "${NAMED_CONF}" ] ; then
- eerror "No ${NAMED_CONF} file exists!"
- return 1
- fi
-
- /usr/sbin/named-checkconf ${CHROOT:+-t} ${CHROOT} ${NAMED_CONF#${CHROOT}} || {
- eerror "named-checkconf failed! Please fix your config first."
- return 1
- }
-
- eend 0
- return 0
-}
-
-checkzones() {
- ebegin "Checking named configuration and zones"
- /usr/sbin/named-checkconf -z -j ${CHROOT:+-t} ${CHROOT} ${NAMED_CONF#${CHROOT}}
- eend $?
-}
-
-start() {
- local piddir
-
- ebegin "Starting ${CHROOT:+chrooted }named"
-
- if [ -n "${CHROOT}" ]; then
- if [ ${CHROOT_NOCHECK:-0} -eq 0 ]; then
- check_chroot || {
- eend 1
- eerror "Your chroot dir ${CHROOT} is inconsistent, please run 'emerge --config net-dns/bind' first"
- return 1
- }
- fi
-
- if [ ${OPENSSL_LIBGOST:-0} -eq 1 ]; then
- if [ ! -e /usr/lib/engines/libgost.so ]; then
- eend 1
- eerror "Couldn't find /usr/lib/engines/libgost.so but bind has been built with openssl and libgost support"
- return 1
- fi
- cp -Lp /usr/lib/engines/libgost.so "${CHROOT}/usr/lib/engines/libgost.so" || {
- eend 1
- eerror "Couldn't copy /usr/lib/engines/libgost.so into '${CHROOT}/usr/lib/engines/'"
- return 1
- }
- fi
- cp -Lp /etc/localtime "${CHROOT}/etc/localtime"
-
- if [ "${CHROOT_NOMOUNT:-0}" -eq 0 ]; then
- einfo "Mounting chroot dirs"
- _mount /etc/bind ${CHROOT}/etc/bind -o bind
- _mount /var/bind ${CHROOT}/var/bind -o bind
- _mount /var/log/named ${CHROOT}/var/log/named -o bind
- if [ "${CHROOT_GEOIP:-0}" -eq 1 ]; then
- _mount /usr/share/GeoIP ${CHROOT}/usr/share/GeoIP -o bind
- fi
- fi
- fi
-
- checkconfig || { eend 1; return 1; }
-
- # create piddir (usually /run/named) if necessary, bug 334535
- _get_pidfile
- piddir="${PIDFILE%/*}"
- checkpath -q -d -o root:named -m 0770 "${piddir}" || {
- eend 1
- return 1
- }
-
- # In case someone have $CPU set in /etc/conf.d/named
- if [ -n "${CPU}" ] && [ "${CPU}" -gt 0 ]; then
- CPU="-n ${CPU}"
- fi
-
- start-stop-daemon --start --pidfile ${PIDFILE} \
- --nicelevel ${NAMED_NICELEVEL:-0} \
- --exec /usr/sbin/named \
- -- -u named ${CPU} ${OPTIONS} ${CHROOT:+-t} ${CHROOT}
- eend $?
-}
-
-stop() {
- local reported=0
-
- ebegin "Stopping ${CHROOT:+chrooted }named"
-
- # Workaround for now, until openrc's restart has been fixed.
- # openrc doesn't care about a restart() function in init scripts.
- if [ "${RC_CMD}" = "restart" ]; then
- if [ -n "${CHROOT}" -a ${CHROOT_NOCHECK:-0} -eq 0 ]; then
- check_chroot || {
- eend 1
- eerror "Your chroot dir ${CHROOT} is inconsistent, please run 'emerge --config net-dns/bind' first"
- return 1
- }
- fi
-
- checkconfig || { eend 1; return 1; }
- fi
-
- # -R 10, bug 335398
- _get_pidfile
- start-stop-daemon --stop --retry 10 --pidfile $PIDFILE \
- --exec /usr/sbin/named
-
- if [ -n "${CHROOT}" ] && [ "${CHROOT_NOMOUNT:-0}" -eq 0 ]; then
- ebegin "Umounting chroot dirs"
-
- # just to be sure everything gets clean
- while fuser -s ${CHROOT} 2>/dev/null; do
- if [ "${reported}" -eq 0 ]; then
- einfo "Waiting until all named processes are stopped (max. ${MOUNT_CHECK_TIMEOUT} seconds)"
- elif [ "${reported}" -eq "${MOUNT_CHECK_TIMEOUT}" ]; then
- eerror "Waiting until all named processes are stopped failed!"
- eend 1
- break
- fi
- sleep 1
- reported=$((reported+1))
- done
-
- [ "${CHROOT_GEOIP:-0}" -eq 1 ] && _umount ${CHROOT}/usr/share/GeoIP
- _umount ${CHROOT}/etc/bind
- _umount ${CHROOT}/var/log/named
- _umount ${CHROOT}/var/bind
- fi
-
- eend $?
-}
-
-reload() {
- local ret
-
- ebegin "Reloading named.conf and zone files"
-
- checkconfig || { eend 1; return 1; }
-
- _get_pidfile
- if [ -n "${PIDFILE}" ]; then
- start-stop-daemon --pidfile $PIDFILE --signal HUP
- ret=$?
- else
- ewarn "Unable to determine the pidfile... this is"
- ewarn "a fallback mode. Please check your installation!"
-
- $RC_SERVICE restart
- ret=$?
- fi
-
- eend $ret
-}
diff --git a/pcr/openrc-net/nfs.confd b/pcr/openrc-net/nfs.confd
deleted file mode 100644
index 9dc14058c..000000000
--- a/pcr/openrc-net/nfs.confd
+++ /dev/null
@@ -1,38 +0,0 @@
-# /etc/conf.d/nfs
-
-# If you wish to set the port numbers for lockd,
-# please see /etc/sysctl.conf
-
-# Optional services to include in default `/etc/init.d/nfs start`
-# For NFSv4 users, you'll want to add "rpc.idmapd" here.
-NFS_NEEDED_SERVICES=""
-
-# Options to pass to rpc.nfsd
-OPTS_RPC_NFSD="8"
-
-# Options to pass to rpc.mountd
-# ex. OPTS_RPC_MOUNTD="-p 32767"
-OPTS_RPC_MOUNTD=""
-
-# Options to pass to rpc.statd
-# ex. OPTS_RPC_STATD="-p 32765 -o 32766"
-OPTS_RPC_STATD=""
-
-# Options to pass to rpc.idmapd
-OPTS_RPC_IDMAPD=""
-
-# Options to pass to rpc.gssd
-OPTS_RPC_GSSD=""
-
-# Options to pass to rpc.svcgssd
-OPTS_RPC_SVCGSSD=""
-
-# Options to pass to rpc.rquotad (requires sys-fs/quota)
-OPTS_RPC_RQUOTAD=""
-
-# Timeout (in seconds) for exportfs
-EXPORTFS_TIMEOUT=30
-
-# Options to set in the nfsd filesystem (/proc/fs/nfsd/).
-# Format is <option>=<value>. Multiple options are allowed.
-#OPTS_NFSD="nfsv4leasetime=30 max_block_size=4096"
diff --git a/pcr/openrc-net/nfs.initd b/pcr/openrc-net/nfs.initd
deleted file mode 100644
index e4239b70c..000000000
--- a/pcr/openrc-net/nfs.initd
+++ /dev/null
@@ -1,163 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfs.initd,v 1.28 2014/06/20 06:21:22 vapier Exp $
-
-extra_started_commands="reload"
-
-# This variable is used for controlling whether or not to run exportfs -ua;
-# see stop() for more information
-restarting=no
-
-# The binary locations
-exportfs=/usr/sbin/exportfs
- mountd=/usr/sbin/rpc.mountd
- nfsd=/usr/sbin/rpc.nfsd
-smnotify=/usr/sbin/sm-notify
-
-depend() {
- local myneed=""
- # XXX: no way to detect NFSv4 is desired and so need rpc.idmapd
- myneed="${myneed} $(
- awk '!/^[[:space:]]*#/ {
- # clear the path to avoid spurious matches
- $1 = "";
- if ($0 ~ /[(][^)]*sec=(krb|spkm)[^)]*[)]/) {
- print "rpc.svcgssd"
- exit 0
- }
- }' /etc/exports /etc/exports.d/*.exports 2>/dev/null
- )"
- config /etc/exports /etc/exports.d/*.exports
- need portmap rpc.statd ${myneed} ${NFS_NEEDED_SERVICES}
- use ypbind net dns rpc.rquotad rpc.idmapd rpc.svcgssd
- after quota
-}
-
-mkdir_nfsdirs() {
- local d
- for d in v4recovery v4root ; do
- d="/var/lib/nfs/${d}"
- [ ! -d "${d}" ] && mkdir -p "${d}"
- done
-}
-
-waitfor_exportfs() {
- local pid=$1
- ( sleep ${EXPORTFS_TIMEOUT:-30}; kill -9 ${pid} 2>/dev/null ) &
- wait $1
-}
-
-mount_nfsd() {
- if [ -e /proc/modules ] ; then
- # Make sure nfs support is loaded in the kernel #64709
- if ! grep -qs nfsd /proc/filesystems ; then
- modprobe -q nfsd
- fi
- # Restart idmapd if needed #220747
- if grep -qs nfsd /proc/modules ; then
- killall -q -HUP rpc.idmapd
- fi
- fi
-
- # This is the new "kernel 2.6 way" to handle the exports file
- if grep -qs nfsd /proc/filesystems ; then
- if ! mountinfo -q /proc/fs/nfsd ; then
- ebegin "Mounting nfsd filesystem in /proc"
- mount -t nfsd -o nodev,noexec,nosuid nfsd /proc/fs/nfsd
- eend $?
- fi
-
- local o
- for o in ${OPTS_NFSD} ; do
- echo "${o#*=}" > "/proc/fs/nfsd/${o%%=*}"
- done
- fi
-}
-
-start_it() {
- ebegin "Starting NFS $1"
- shift
- "$@"
- eend $?
- ret=$((ret + $?))
-}
-start() {
- mount_nfsd
- mkdir_nfsdirs
-
- # Exportfs likes to hang if networking isn't working.
- # If that's the case, then try to kill it so the
- # bootup process can continue.
- if grep -qs '^[[:space:]]*/' /etc/exports /etc/exports.d/*.exports ; then
- ebegin "Exporting NFS directories"
- ${exportfs} -r &
- waitfor_exportfs $!
- eend $?
- fi
-
- local ret=0
- start_it mountd ${mountd} ${OPTS_RPC_MOUNTD}
- start_it daemon ${nfsd} ${OPTS_RPC_NFSD}
- [ -x "${smnotify}" ] && start_it smnotify ${smnotify} ${OPTS_SMNOTIFY}
- return ${ret}
-}
-
-stop() {
- local ret=0
-
- ebegin "Stopping NFS mountd"
- start-stop-daemon --stop --exec ${mountd}
- eend $?
- ret=$((ret + $?))
-
- # nfsd sets its process name to [nfsd] so don't look for $nfsd
- ebegin "Stopping NFS daemon"
- start-stop-daemon --stop --name nfsd --user root --signal 2
- eend $?
- ret=$((ret + $?))
- # in case things don't work out ... #228127
- rpc.nfsd 0
-
- # When restarting the NFS server, running "exportfs -ua" probably
- # isn't what the user wants. Running it causes all entries listed
- # in xtab to be removed from the kernel export tables, and the
- # xtab file is cleared. This effectively shuts down all NFS
- # activity, leaving all clients holding stale NFS filehandles,
- # *even* when the NFS server has restarted.
- #
- # That's what you would want if you were shutting down the NFS
- # server for good, or for a long period of time, but not when the
- # NFS server will be running again in short order. In this case,
- # then "exportfs -r" will reread the xtab, and all the current
- # clients will be able to resume NFS activity, *without* needing
- # to umount/(re)mount the filesystem.
- if [ "${restarting}" = no -o "${RC_CMD}" = "restart" ] ; then
- ebegin "Unexporting NFS directories"
- # Exportfs likes to hang if networking isn't working.
- # If that's the case, then try to kill it so the
- # shutdown process can continue.
- ${exportfs} -ua &
- waitfor_exportfs $!
- eend $?
- fi
-
- return ${ret}
-}
-
-reload() {
- # Exportfs likes to hang if networking isn't working.
- # If that's the case, then try to kill it so the
- # bootup process can continue.
- ebegin "Reloading /etc/exports"
- ${exportfs} -r 1>&2 &
- waitfor_exportfs $!
- eend $?
-}
-
-restart() {
- # See long comment in stop() regarding "restarting" and exportfs -ua
- restarting=yes
- svc_stop
- svc_start
-}
diff --git a/pcr/openrc-net/nfsclient.confd b/pcr/openrc-net/nfsclient.confd
deleted file mode 100644
index 8a995571e..000000000
--- a/pcr/openrc-net/nfsclient.confd
+++ /dev/null
@@ -1,18 +0,0 @@
-# You need to decide which nfs protocol version you want to use.
-# If you are unsure, leave these alone.
-#
-# If you are using only nfsv4, uncomment this line:
-#
-#rc_need="!rpc.statd"
-#
-# If you are using only nfsv3, uncomment this line:
-#
-#rc_need="!rpc.idmapd"
-#
-# You will need to set the dependencies in the nfsclient script to match
-# the network configuration tools you are using. This should be done in
-# this file by following the examples below, and not by changing the
-# service script itself. See /etc/conf.d/netmount for more examples.
-#
-# This is a safe default.
-rc_after="net"
diff --git a/pcr/openrc-net/nfsclient.initd b/pcr/openrc-net/nfsclient.initd
deleted file mode 100644
index 72ba9a963..000000000
--- a/pcr/openrc-net/nfsclient.initd
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfsclient.initd,v 1.5 2015/02/05 04:32:41 williamh Exp $
-
-[ -e /etc/conf.d/nfs ] && . /etc/conf.d/nfs
-
-depend() {
- local opts myneed=""
- if [ -e /etc/fstab ] ; then
- for opts in $(fstabinfo -o -t nfs,nfs4) ; do
- case $opts in
- *sec=krb*|*sec=spkm*) myneed="$myneed rpc.gssd" ;;
- esac
- done
- fi
- config /etc/fstab
- need portmap rpc.statd rpc.idmapd ${myneed}
- use ypbind dns
-}
-
-start() {
- if [ -x /usr/sbin/sm-notify ] ; then
- ebegin "Starting NFS sm-notify"
- /usr/sbin/sm-notify ${OPTS_SMNOTIFY}
- eend $?
- fi
-
- # Make sure nfs support is loaded in the kernel #64709
- if [ -e /proc/modules ] && ! grep -qs 'nfs$' /proc/filesystems ; then
- modprobe -q nfs
- fi
- return 0
-}
diff --git a/pcr/openrc-net/nginx.initd-r2 b/pcr/openrc-net/nginx.initd-r2
deleted file mode 100644
index 903670955..000000000
--- a/pcr/openrc-net/nginx.initd-r2
+++ /dev/null
@@ -1,89 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/nginx/files/nginx.initd-r2,v 1.1 2013/05/13 12:18:11 dev-zero Exp $
-
-extra_commands="configtest"
-extra_started_commands="upgrade reload"
-
-description="Robust, small and high performance http and reverse proxy server"
-description_configtest="Run nginx' internal config check."
-description_upgrade="Upgrade the nginx binary without losing connections."
-description_reload="Reload the nginx configuration without losing connections."
-
-nginx_config=${nginx_config:-/etc/nginx/nginx.conf}
-
-command="/usr/sbin/nginx"
-command_args="-c ${nginx_config}"
-pidfile=${pidfile:-/run/nginx.pid}
-user=${user:-nginx}
-group=${group:-nginx}
-
-depend() {
- need net
- use dns logger netmount
-}
-
-start_pre() {
- if [ "${RC_CMD}" != "restart" ]; then
- configtest || return 1
- fi
-}
-
-stop_pre() {
- if [ "${RC_CMD}" = "restart" ]; then
- configtest || return 1
- fi
-}
-
-stop_post() {
- rm -f ${pidfile}
-}
-
-reload() {
- configtest || return 1
- ebegin "Refreshing nginx' configuration"
- kill -HUP `cat ${pidfile}` &>/dev/null
- eend $? "Failed to reload nginx"
-}
-
-upgrade() {
- configtest || return 1
- ebegin "Upgrading nginx"
-
- einfo "Sending USR2 to old binary"
- kill -USR2 `cat ${pidfile}` &>/dev/null
-
- einfo "Sleeping 3 seconds before pid-files checking"
- sleep 3
-
- if [ ! -f ${pidfile}.oldbin ]; then
- eerror "File with old pid not found"
- return 1
- fi
-
- if [ ! -f ${pidfile} ]; then
- eerror "New binary failed to start"
- return 1
- fi
-
- einfo "Sleeping 3 seconds before WINCH"
- sleep 3 ; kill -WINCH `cat ${pidfile}.oldbin`
-
- einfo "Sending QUIT to old binary"
- kill -QUIT `cat ${pidfile}.oldbin`
-
- einfo "Upgrade completed"
- eend $? "Upgrade failed"
-}
-
-configtest() {
- ebegin "Checking nginx' configuration"
- ${command} -c ${nginx_config} -t -q
-
- if [ $? -ne 0 ]; then
- ${command} -c ${nginx_config} -t
- fi
-
- eend $? "failed, please correct errors above"
-}
diff --git a/pcr/openrc-net/openntpd.conf.d-20080406-r6 b/pcr/openrc-net/openntpd.conf.d-20080406-r6
deleted file mode 100644
index ccd454596..000000000
--- a/pcr/openrc-net/openntpd.conf.d-20080406-r6
+++ /dev/null
@@ -1,7 +0,0 @@
-# /etc/conf.d/ntpd: config file for openntpd's ntpd
-
-# See ntpd(8) man page ... some popular options:
-# -s Set the time immediately at startup
-# (Note: may cause up to a 15 second startup delay
-# if ntp servers not reachable)
-NTPD_OPTS=""
diff --git a/pcr/openrc-net/openntpd.init.d-20080406-r6 b/pcr/openrc-net/openntpd.init.d-20080406-r6
deleted file mode 100644
index 2f452e0fd..000000000
--- a/pcr/openrc-net/openntpd.init.d-20080406-r6
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/openntpd/files/openntpd.init.d-20080406-r6,v 1.1 2013/12/02 13:32:12 ottxor Exp $
-
-name="OpenNTPD"
-command="/usr/sbin/ntpd"
-pidfile="/run/ntpd.pid"
-command_args="-p ${pidfile} ${NTPD_OPTS}"
-
-depend() {
- need net
- after ntp-client
- use dns logger
-}
diff --git a/pcr/openrc-net/openvpn-2.1.conf b/pcr/openrc-net/openvpn-2.1.conf
deleted file mode 100644
index 72510c34a..000000000
--- a/pcr/openrc-net/openvpn-2.1.conf
+++ /dev/null
@@ -1,18 +0,0 @@
-# OpenVPN automatically creates an /etc/resolv.conf (or sends it to
-# resolvconf) if given DNS information by the OpenVPN server.
-# Set PEER_DNS="no" to stop this.
-PEER_DNS="yes"
-
-# OpenVPN can run in many modes. Most people will want the init script
-# to automatically detect the mode and try and apply a good default
-# configuration and setup scripts. However, there are cases where the
-# OpenVPN configuration looks like a client, but it's really a peer or
-# something else. DETECT_CLIENT controls this behaviour.
-DETECT_CLIENT="yes"
-
-# If DETECT_CLIENT is no and you have your own scripts to re-enter the openvpn
-# init script (ie, it first becomes "inactive" and the script then starts the
-# script again to make it "started") then you can state this below.
-# In other words, unless you understand service dependencies and are a
-# competent shell scripter, don't set this.
-RE_ENTER="no"
diff --git a/pcr/openrc-net/openvpn-2.1.init b/pcr/openrc-net/openvpn-2.1.init
deleted file mode 100644
index d65e6f8bd..000000000
--- a/pcr/openrc-net/openvpn-2.1.init
+++ /dev/null
@@ -1,133 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-VPNDIR=${VPNDIR:-/etc/openvpn}
-VPN=${SVCNAME#*.}
-if [ -n "${VPN}" ] && [ ${SVCNAME} != "openvpn" ]; then
- VPNPID="/var/run/openvpn.${VPN}.pid"
-else
- VPNPID="/var/run/openvpn.pid"
-fi
-VPNCONF="${VPNDIR}/${VPN}.conf"
-
-depend() {
- need localmount net
- use dns
- after bootmisc
-}
-
-checkconfig() {
- # Linux has good dynamic tun/tap creation
- if [ $(uname -s) = "Linux" ] ; then
- if [ ! -e /dev/net/tun ]; then
- if ! modprobe tun ; then
- eerror "TUN/TAP support is not available" \
- "in this kernel"
- return 1
- fi
- fi
- if [ -h /dev/net/tun ] && [ -c /dev/misc/net/tun ]; then
- ebegin "Detected broken /dev/net/tun symlink, fixing..."
- rm -f /dev/net/tun
- ln -s /dev/misc/net/tun /dev/net/tun
- eend $?
- fi
- return 0
- fi
-
- # Other OS's don't, so we rely on a pre-configured interface
- # per vpn instance
- local ifname=$(sed -n -e 's/[[:space:]]*dev[[:space:]][[:space:]]*\([^[:space:]]*\).*/\1/p' "${VPNCONF}")
- if [ -z ${ifname} ] ; then
- eerror "You need to specify the interface that this openvpn" \
- "instance should use" \
- "by using the dev option in ${VPNCONF}"
- return 1
- fi
-
- if ! ifconfig "${ifname}" >/dev/null 2>/dev/null ; then
- # Try and create it
- echo > /dev/"${ifname}" >/dev/null
- fi
- if ! ifconfig "${ifname}" >/dev/null 2>/dev/null ; then
- eerror "${VPNCONF} requires interface ${ifname}" \
- "but that does not exist"
- return 1
- fi
-}
-
-start() {
- # If we are re-called by the openvpn gentoo-up.sh script
- # then we don't actually want to start openvpn
- [ "${IN_BACKGROUND}" = "true" ] && return 0
-
- ebegin "Starting ${SVCNAME}"
-
- checkconfig || return 1
-
- local args="" reenter=${RE_ENTER:-no}
- # If the config file does not specify the cd option, we do
- # But if we specify it, we override the config option which we do not want
- if ! grep -q "^[ ]*cd[ ].*" "${VPNCONF}" ; then
- args="${args} --cd ${VPNDIR}"
- fi
-
- # We mark the service as inactive and then start it.
- # When we get an authenticated packet from the peer then we run our script
- # which configures our DNS if any and marks us as up.
- if [ "${DETECT_CLIENT:-yes}" = "yes" ] && \
- grep -q "^[ ]*remote[ ].*" "${VPNCONF}" ; then
- reenter="yes"
- args="${args} --up-delay --up-restart"
- args="${args} --script-security 2"
- args="${args} --up /etc/openvpn/up.sh"
- args="${args} --down-pre --down /etc/openvpn/down.sh"
-
- # Warn about setting scripts as we override them
- if grep -Eq "^[ ]*(up|down)[ ].*" "${VPNCONF}" ; then
- ewarn "WARNING: You have defined your own up/down scripts"
- ewarn "As you're running as a client, we now force Gentoo specific"
- ewarn "scripts to be run for up and down events."
- ewarn "These scripts will call /etc/openvpn/${SVCNAME}-{up,down}.sh"
- ewarn "where you can put your own code."
- fi
-
- # Warn about the inability to change ip/route/dns information when
- # dropping privs
- if grep -q "^[ ]*user[ ].*" "${VPNCONF}" ; then
- ewarn "WARNING: You are dropping root privileges!"
- ewarn "As such openvpn may not be able to change ip, routing"
- ewarn "or DNS configuration."
- fi
- else
- # So we're a server. Run as openvpn unless otherwise specified
- grep -q "^[ ]*user[ ].*" "${VPNCONF}" || args="${args} --user openvpn"
- grep -q "^[ ]*group[ ].*" "${VPNCONF}" || args="${args} --group openvpn"
- fi
-
- # Ensure that our scripts get the PEER_DNS variable
- [ -n "${PEER_DNS}" ] && args="${args} --setenv PEER_DNS ${PEER_DNS}"
-
- [ "${reenter}" = "yes" ] && mark_service_inactive "${SVCNAME}"
- start-stop-daemon --start --exec /usr/sbin/openvpn --pidfile "${VPNPID}" \
- -- --config "${VPNCONF}" --writepid "${VPNPID}" --daemon \
- --setenv SVCNAME "${SVCNAME}" ${args}
- eend $? "Check your logs to see why startup failed"
-}
-
-stop() {
- # If we are re-called by the openvpn gentoo-down.sh script
- # then we don't actually want to stop openvpn
- if [ "${IN_BACKGROUND}" = "true" ] ; then
- mark_service_inactive "${SVCNAME}"
- return 0
- fi
-
- ebegin "Stopping ${SVCNAME}"
- start-stop-daemon --stop --quiet \
- --exec /usr/sbin/openvpn --pidfile "${VPNPID}"
- eend $?
-}
-
-# vim: set ts=4 :
diff --git a/pcr/openrc-net/polipo.initd b/pcr/openrc-net/polipo.initd
deleted file mode 100644
index 9074050c2..000000000
--- a/pcr/openrc-net/polipo.initd
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2011 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/polipo/files/Attic/polipo.initd,v 1.7 2015/01/12 16:16:12 bircoph dead $
-
-depend() {
- need net
-}
-
-checkconfig() {
- { polipo -v || return 1 ; } | {
- local retvalue=0
- local name type value desc
- while read name type value desc ; do
- case ${name} in
- configFile)
- if [ "${value}" = "(none)" ] ; then
- eerror "Unable to read configuration file /etc/polipo/config"
- retvalue=1
- fi
- ;;
- daemonise)
- if [ "${value}" != "false" ] ; then
- eerror "Configuration option not supported by this init script: ${name}=${value}"
- retvalue=1
- fi
- ;;
- pidFile)
- if [ "${value}" != "(none)" ] ; then
- eerror "Configuration option not supported by this init script: ${name}=${value}"
- retvalue=1
- fi
- ;;
- esac
- done
- return ${retvalue}
- }
-}
-
-start() {
- checkconfig || return 1
-
- ebegin "Starting Polipo HTTP proxy"
- start-stop-daemon --start --user polipo \
- --background --pidfile /var/run/polipo.pid --make-pidfile \
- --exec /usr/bin/polipo
- eend $?
-}
-
-stop() {
- ebegin "Stopping Polipo HTTP proxy"
- start-stop-daemon --stop --pidfile /var/run/polipo.pid
- eend $?
-}
diff --git a/pcr/openrc-net/postfix.rc6.2.7 b/pcr/openrc-net/postfix.rc6.2.7
deleted file mode 100644
index aecd8e71f..000000000
--- a/pcr/openrc-net/postfix.rc6.2.7
+++ /dev/null
@@ -1,86 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/files/postfix.rc6.2.7,v 1.2 2012/03/07 10:27:37 eras Exp $
-
-extra_started_commands="reload abort flush"
-
-description_reload="Re-read configuration files. Running processes terminate at their earliest convenience."
-description_abort="Stop the Postfix mail system abruptly. Running processes are signaled to stop immediately."
-description_flush="Force delivery: attempt to deliver every message in the deferred mail queue."
-
-# Please read http://www.postfix.org/MULTI_INSTANCE_README.html for multi instance support
-CONF_DIR="/etc/postfix"
-CONF_OPT="${SVCNAME##*.}"
-if [ -n ${CONF_OPT} -a ${SVCNAME} != "postfix" ]; then
- CONF_DIR="${CONF_DIR}.${CONF_OPT}"
-fi
-if [ "${CONF_DIR}" = "/etc/postfix" ]; then
- CONF_PARAM=""
- CONF_MESSAGE=""
-else
- CONF_PARAM="-c ${CONF_DIR}"
- CONF_MESSAGE="(${CONF_DIR})"
-fi
-
-depend() {
- use logger dns ypbind amavisd antivirus postfix_greylist net saslauthd
- if [ "${SVCNAME}" = "postfix" ]; then
- provide mta
- fi
-}
-
-start() {
- if [ ! -z "${CONF_PARAM}" ]; then
- einfo "Please consider updating your config for postmulti support."
- fi
- ebegin "Starting postfix ${CONF_MESSAGE}"
- if [ ! -d ${CONF_DIR} ]; then
- eend 1 "${CONF_DIR} does not exist"
- return 1
- fi
- /usr/sbin/postfix ${CONF_PARAM} start >/dev/null 2>&1
- eend $?
-}
-
-stop() {
- ebegin "Stopping postfix ${CONF_MESSAGE}"
- /usr/sbin/postfix ${CONF_PARAM} stop >/dev/null 2>&1
- eend
-}
-
-status() {
- local _retval
- einfon ""
- /usr/sbin/postfix ${CONF_PARAM} status
- _retval=$?
- if [ x${_retval} = 'x0' ]; then
- mark_service_started "${SVCNAME}"
- eend 0
- else
- mark_service_stopped "${SVCNAME}"
- eend 3
- fi
-}
-
-reload() {
- ebegin "Reloading postfix ${CONF_MESSAGE}"
- /usr/sbin/postfix ${CONF_PARAM} reload >/dev/null 2>&1
- eend $?
-}
-
-abort() {
- ebegin "Aborting postfix ${CONF_MESSAGE}"
-
- if service_started "${SVCNAME}"; then
- mark_service_stopped "${SVCNAME}"
- fi
- /usr/sbin/postfix ${CONF_PARAM} abort >/dev/null 2>&1
- eend $?
-}
-
-flush() {
- ebegin "Flushing postfix ${CONF_MESSAGE}"
- /usr/sbin/postfix ${CONF_PARAM} flush >/dev/null 2>&1
- eend $?
-}
diff --git a/pcr/openrc-net/privoxy.initd b/pcr/openrc-net/privoxy.initd
deleted file mode 100644
index 84d6186d9..000000000
--- a/pcr/openrc-net/privoxy.initd
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/privoxy/files/privoxy.initd,v 1.2 2007/11/14 05:14:56 mrness Exp $
-
-CONFFILE=/etc/${SVCNAME}/config
-PIDFILE=/var/run/${SVCNAME}.pid
-
-depend() {
- need net
-}
-
-start() {
- if [ ! -f "${CONFFILE}" ]; then
- eerror "Configuration file ${CONFFILE} not found!"
- return 1
- fi
-
- ebegin "Starting privoxy"
- start-stop-daemon --start --quiet --exec /usr/sbin/privoxy --pidfile "${PIDFILE}" \
- -- --pidfile "${PIDFILE}" --user privoxy.privoxy "${CONFFILE}" #2>/dev/null
- eend $?
-}
-
-stop() {
- ebegin "Stopping privoxy"
- start-stop-daemon --stop --quiet --pidfile "${PIDFILE}"
- eend $?
-}
diff --git a/pcr/openrc-net/quota.confd b/pcr/openrc-net/quota.confd
deleted file mode 100644
index 6e66c88dd..000000000
--- a/pcr/openrc-net/quota.confd
+++ /dev/null
@@ -1,20 +0,0 @@
-# /etc/conf.d/quota: config file for /etc/init.d/quota
-
-# Note: if your console is hooked up to a serial terminal,
-# you prob want to drop the '-v' from the OPTS vars below.
-
-
-# Run quotacheck ?
-RUN_QUOTACHECK="yes"
-
-
-# Options for quotacheck
-QUOTACHECK_OPTS="-avug"
-
-
-# Options for quotaon
-QUOTAON_OPTS="-avug"
-
-
-# Options for quotaoff
-QUOTAOFF_OPTS="-avug"
diff --git a/pcr/openrc-net/quota.rc7 b/pcr/openrc-net/quota.rc7
deleted file mode 100644
index 23f8c1536..000000000
--- a/pcr/openrc-net/quota.rc7
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License, v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/quota/files/quota.rc7,v 1.2 2012/12/08 19:50:27 vapier Exp $
-
-extra_started_commands="check"
-description_check="Running quotacheck with quota being offline"
-
-depend() {
- need localmount
- use portmap
-}
-
-start() {
- if [ "${RUN_QUOTACHECK}" = "yes" ] ; then
- ebegin "Checking quotas (may take a while)"
- quotacheck ${QUOTACHECK_OPTS}
- eend $?
- fi
-
- ebegin "Starting quota"
- quotaon ${QUOTAON_OPTS}
- eend $?
-}
-
-stop() {
- ebegin "Stopping quota"
- quotaoff ${QUOTAOFF_OPTS}
- eend $?
-}
-
-check() {
- ebegin "Checking quota"
- quotaoff ${QUOTAOFF_OPTS} && \
- quotacheck ${QUOTACHECK_OPTS} && \
- quotaon ${QUOTAON_OPTS}
- eend $?
-}
diff --git a/pcr/openrc-net/rpc.gssd.initd b/pcr/openrc-net/rpc.gssd.initd
deleted file mode 100644
index f1b8f8774..000000000
--- a/pcr/openrc-net/rpc.gssd.initd
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/rpc.gssd.initd,v 1.11 2008/10/26 09:02:47 vapier Exp $
-
-[ -e /etc/conf.d/nfs ] && . /etc/conf.d/nfs
-
-depend() {
- use ypbind net
- need portmap rpc.pipefs
- after quota
-}
-
-start() {
- ebegin "Starting gssd"
- start-stop-daemon --start --exec /usr/sbin/rpc.gssd -- ${OPTS_RPC_GSSD}
- eend $?
-}
-
-stop() {
- ebegin "Stopping gssd"
- start-stop-daemon --stop --exec /usr/sbin/rpc.gssd
- eend $?
-}
diff --git a/pcr/openrc-net/rpc.idmapd.initd b/pcr/openrc-net/rpc.idmapd.initd
deleted file mode 100644
index 52838b5da..000000000
--- a/pcr/openrc-net/rpc.idmapd.initd
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/rpc.idmapd.initd,v 1.8 2009/03/14 18:43:18 vapier Exp $
-
-[ -e /etc/conf.d/nfs ] && . /etc/conf.d/nfs
-
-rpc_bin=/usr/sbin/rpc.idmapd
-
-depend() {
- use ypbind net
- need portmap rpc.pipefs
- after quota
-}
-
-start() {
- ebegin "Starting idmapd"
- ${rpc_bin} ${OPTS_RPC_IDMAPD}
- eend $? "make sure DNOTIFY support is enabled ..."
-}
-
-stop() {
- ebegin "Stopping idmapd"
- start-stop-daemon --stop --exec ${rpc_bin}
- eend $?
-}
diff --git a/pcr/openrc-net/rpc.pipefs.initd b/pcr/openrc-net/rpc.pipefs.initd
deleted file mode 100644
index ebae3b915..000000000
--- a/pcr/openrc-net/rpc.pipefs.initd
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/rpc.pipefs.initd,v 1.3 2014/06/20 04:33:57 vapier Exp $
-
-MNT="/var/lib/nfs/rpc_pipefs"
-
-mount_pipefs() {
- local fstype=rpc_pipefs
-
- # if things are already mounted, nothing to do
- mountinfo -q ${MNT} && return 0
-
- # if rpc_pipefs is not available, try to load sunrpc for it #219566
- grep -qs ${fstype} /proc/filesystems || modprobe -q sunrpc
- # if still not available, the `mount` will issue an error for the user
-
- # now just do it for kicks
- mkdir -p ${MNT}
- mount -t ${fstype} ${fstype} ${MNT}
-}
-
-start() {
- ebegin "Setting up RPC pipefs"
- mount_pipefs
- eend $? "make sure you have NFS/SUNRPC enabled in your kernel"
-}
-
-stop() {
- ebegin "Unmounting RPC pipefs"
- umount ${MNT}
- eend $?
-}
diff --git a/pcr/openrc-net/rpc.rquotad.initd b/pcr/openrc-net/rpc.rquotad.initd
deleted file mode 100644
index f657fc469..000000000
--- a/pcr/openrc-net/rpc.rquotad.initd
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/quota/files/rpc.rquotad.initd,v 1.1 2007/03/25 12:09:39 vapier Exp $
-
-[ -e /etc/conf.d/nfs ] && source /etc/conf.d/nfs
-
-rpc_bin=/usr/sbin/rpc.rquotad
-
-depend() {
- use ypbind net
- need portmap
- after quota
-}
-
-start() {
- ebegin "Starting rpc.rquotad"
- ${rpc_bin} ${OPTS_RPC_RQUOTAD}
- eend $?
-}
-
-stop() {
- ebegin "Stopping rpc.rquotad"
- start-stop-daemon --stop --quiet --exec ${rpc_bin}
- eend $?
-}
diff --git a/pcr/openrc-net/rpc.statd.initd b/pcr/openrc-net/rpc.statd.initd
deleted file mode 100644
index c82041a4d..000000000
--- a/pcr/openrc-net/rpc.statd.initd
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/rpc.statd.initd,v 1.9 2015/02/02 13:47:41 radhermit Exp $
-
-[ -e /etc/conf.d/nfs ] && . /etc/conf.d/nfs
-
-rpc_bin=/sbin/rpc.statd
-rpc_pid=/var/run/rpc.statd.pid
-
-depend() {
- use ypbind net
- need portmap
- after quota
-}
-
-start() {
- # Don't start rpc.statd if already started by someone else ...
- # Don't try and kill it if it's already dead ...
- if killall -q -0 ${rpc_bin} ; then
- return 0
- fi
-
- ebegin "Starting NFS statd"
- start-stop-daemon --start --exec ${rpc_bin} -- --no-notify ${OPTS_RPC_STATD}
- eend $?
-}
-
-stop() {
- ebegin "Stopping NFS statd"
- start-stop-daemon --stop --exec ${rpc_bin} --pidfile /var/run/rpc.statd.pid
- eend $?
-}
diff --git a/pcr/openrc-net/rpc.svcgssd.initd b/pcr/openrc-net/rpc.svcgssd.initd
deleted file mode 100644
index 74383e24d..000000000
--- a/pcr/openrc-net/rpc.svcgssd.initd
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/rpc.svcgssd.initd,v 1.5 2008/10/26 09:02:47 vapier Exp $
-
-[ -e /etc/conf.d/nfs ] && . /etc/conf.d/nfs
-
-depend() {
- use ypbind net
- need portmap rpc.pipefs
- after quota
-}
-
-start() {
- ebegin "Starting svcgssd"
- start-stop-daemon --start --exec /usr/sbin/rpc.svcgssd -- ${OPTS_RPC_SVCGSSD}
- eend $?
-}
-
-stop() {
- ebegin "Stopping svcgssd"
- start-stop-daemon --stop --exec /usr/sbin/rpc.svcgssd
- eend $?
-}
diff --git a/pcr/openrc-net/rpc.yppasswdd-r1 b/pcr/openrc-net/rpc.yppasswdd-r1
deleted file mode 100644
index a14762516..000000000
--- a/pcr/openrc-net/rpc.yppasswdd-r1
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-nds/ypserv/files/rpc.yppasswdd-r1,v 1.4 2004/07/24 06:26:28 eradicator Exp $
-
-depend() {
- need net portmap ypserv
-}
-
-start() {
- ebegin "Starting rpc.yppasswdd"
- YOPTS=""
- if [ -n "${YPPASSWDD_OPTS}" ]; then YOPTS="-- ${YPPASSWDD_OPTS}"; fi
- start-stop-daemon --start --quiet --exec /usr/sbin/rpc.yppasswdd ${YOPTS}
- eend $?
-}
-
-stop() {
- ebegin "Stopping rpc.yppasswdd"
- start-stop-daemon --stop --quiet --exec /usr/sbin/rpc.yppasswdd
- eend $?
-}
diff --git a/pcr/openrc-net/rpc.yppasswdd.confd b/pcr/openrc-net/rpc.yppasswdd.confd
deleted file mode 100644
index 0d6673630..000000000
--- a/pcr/openrc-net/rpc.yppasswdd.confd
+++ /dev/null
@@ -1,7 +0,0 @@
-# -e chsh allows changing shell through ypchsh,
-# -e chfn allows changing GECOS ("finger") information through ypchfn,
-# -D <dir> allows specification of directory with yp/NIS sources
-# if other than /etc.
-#YPPASSWDD_OPTS="-e chsh -e chfn -D /var/yp/source"
-
-
diff --git a/pcr/openrc-net/rpc.ypxfrd-2.23 b/pcr/openrc-net/rpc.ypxfrd-2.23
deleted file mode 100644
index b1526aa69..000000000
--- a/pcr/openrc-net/rpc.ypxfrd-2.23
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-nds/ypserv/files/rpc.ypxfrd-2.23,v 1.1 2011/04/21 14:18:40 jer Exp $
-
-depend() {
- need net portmap ypserv
-}
-
-start() {
- ebegin "Starting rpc.ypxfrd"
- YOPTS=""
- if [ -n "${YPXFRD_OPTS}" ]; then YOPTS="-- ${YPXFRD_OPTS}"; fi
- start-stop-daemon --start --quiet --pidfile /var/run/ypxfrd.pid --exec /usr/sbin/rpc.ypxfrd ${YOPTS}
- eend $?
-}
-
-stop() {
- ebegin "Stopping rpc.ypxfrd"
- start-stop-daemon --stop --quiet --pidfile /var/run/ypxfrd.pid --exec /usr/sbin/rpc.ypxfrd
- eend $?
-}
diff --git a/pcr/openrc-net/rpc.ypxfrd.confd b/pcr/openrc-net/rpc.ypxfrd.confd
deleted file mode 100644
index 73cfc47e7..000000000
--- a/pcr/openrc-net/rpc.ypxfrd.confd
+++ /dev/null
@@ -1,3 +0,0 @@
-# Command line options to pass to rpc.ypxfrd
-# eg: you can pass --port <number> to use a non-standard port
-YPXFRD_OPTS=""
diff --git a/pcr/openrc-net/rpcbind.initd b/pcr/openrc-net/rpcbind.initd
deleted file mode 100644
index 995ca71d0..000000000
--- a/pcr/openrc-net/rpcbind.initd
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-nds/rpcbind/files/rpcbind.initd,v 1.1 2007/12/29 09:13:55 vapier Exp $
-
-depend() {
- use net
- before inetd xinetd
- provide portmap
-}
-
-start() {
- ebegin "Starting rpcbind"
- start-stop-daemon --start --quiet --exec /sbin/rpcbind -- ${RPCBIND_OPTS}
- eend $?
-}
-
-stop() {
- ebegin "Stopping rpcbind"
- start-stop-daemon --stop --quiet --exec /sbin/rpcbind
- eend $?
-}
diff --git a/pcr/openrc-net/rsyncd.conf.d b/pcr/openrc-net/rsyncd.conf.d
deleted file mode 100644
index c3d897ed2..000000000
--- a/pcr/openrc-net/rsyncd.conf.d
+++ /dev/null
@@ -1,5 +0,0 @@
-# /etc/conf.d/rsyncd: config file for /etc/init.d/rsyncd
-
-# see man pages for rsync or run `rsync --help`
-# for valid cmdline options
-#RSYNC_OPTS=""
diff --git a/pcr/openrc-net/rsyncd.init.d-r1 b/pcr/openrc-net/rsyncd.init.d-r1
deleted file mode 100644
index d2e608e49..000000000
--- a/pcr/openrc-net/rsyncd.init.d-r1
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/rsync/files/rsyncd.init.d-r1,v 1.1 2012/03/22 22:01:21 idl0r Exp $
-
-command="/usr/bin/rsync"
-command_args="--daemon ${RSYNC_OPTS}"
-pidfile="/var/run/${SVCNAME}.pid"
-
-depend() {
- use net
-}
diff --git a/pcr/openrc-net/samba4.confd b/pcr/openrc-net/samba4.confd
deleted file mode 100644
index 58b2c7827..000000000
--- a/pcr/openrc-net/samba4.confd
+++ /dev/null
@@ -1,38 +0,0 @@
-# Add "winbind" to the daemon_list if you also want winbind to start.
-# Replace "smbd nmbd" by "samba4" if you want the active directory domain controller part or the ntvfs
-# file server part or the rpc proxy to start.
-# Note that samba4 controls 'smbd' by itself, thus it can't be started manually. You can, however,
-# tweak the behaviour of a samba4-controlled smbd by modifying your '/etc/samba/smb.conf' file
-# accordingly.
-daemon_list="smbd nmbd"
-
-#----------------------------------------------------------------------------
-# Daemons calls: <daemon_name>_<command_option>
-#----------------------------------------------------------------------------
-my_service_name="samba"
-my_service_PRE="unset TMP TMPDIR"
-my_service_POST=""
-
-#----------------------------------------------------------------------------
-# Daemons calls: <daemon_name>_<command_option>
-#----------------------------------------------------------------------------
-smbd_start_options="-D"
-smbd_start="start-stop-daemon --start --exec /usr/sbin/smbd -- ${smbd_start_options}"
-smbd_stop="start-stop-daemon --stop --exec /usr/sbin/smbd"
-smbd_reload="killall -HUP smbd"
-
-nmbd_start_options="-D"
-nmbd_start="start-stop-daemon --start --exec /usr/sbin/nmbd -- ${nmbd_start_options}"
-nmbd_stop="start-stop-daemon --stop --exec /usr/sbin/nmbd"
-nmbd_reload="killall -HUP nmbd"
-
-samba4_start_options=""
-samba4_start="start-stop-daemon --start --exec /usr/sbin/samba -- ${samba4_start_options}"
-samba4_stop="start-stop-daemon --stop --exec /usr/sbin/samba"
-samba4_reload="killall -HUP samba"
-
-winbind_start_options=""
-winbind_start="start-stop-daemon --start --exec /usr/sbin/winbindd -- ${winbind_start_options}"
-winbind_stop="start-stop-daemon --stop --exec /usr/sbin/winbindd"
-winbind_reload="killall -HUP winbindd"
-
diff --git a/pcr/openrc-net/samba4.initd-r1 b/pcr/openrc-net/samba4.initd-r1
deleted file mode 100644
index 6401dfbe0..000000000
--- a/pcr/openrc-net/samba4.initd-r1
+++ /dev/null
@@ -1,56 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/files/4.1/samba4.initd-r1,v 1.3 2014/03/13 15:35:07 polynomial-c Exp $
-
-extra_started_commands="reload"
-piddir="/var/run/samba"
-
-depend() {
- after slapd
- need net
- use cupsd
-}
-
-DAEMONNAME="${SVCNAME##samba.}"
-[ "${DAEMONNAME}" != "samba" ] && daemon_list=${DAEMONNAME}
-
-signal_do() {
- local signal="$1"
- [ -z "${signal}" ] && return 0
-
- local result=0 last_result=0 daemon= cmd_exec=
- for daemon in ${daemon_list} ; do
- eval cmd_exec=\$${daemon}_${signal}
- if [ -n "${cmd_exec}" ]; then
- ebegin "${my_service_name} -> ${signal}: ${daemon}"
- #echo ${cmd} '->' ${!cmd}
- ${cmd_exec} > /dev/null
- last_result=$?
- eend ${last_result}
- fi
- result=$(( ${result} + ${last_result} ))
- done
- return ${result}
-}
-
-start() {
- ${my_service_PRE}
- [ -d "${piddir}" ] || mkdir -p "${piddir}"
- signal_do start && return 0
-
- eerror "Error: starting services (see system logs)"
- signal_do stop
- return 1
-}
-stop() {
- ${my_service_PRE}
- if signal_do stop ; then
- ${my_service_POST}
- return 0
- fi
-}
-reload() {
- ${my_service_PRE}
- signal_do reload
-}
diff --git a/pcr/openrc-net/saslauthd2.rc7 b/pcr/openrc-net/saslauthd2.rc7
deleted file mode 100644
index d6b453e92..000000000
--- a/pcr/openrc-net/saslauthd2.rc7
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/cyrus-sasl/files/saslauthd2.rc7,v 1.1 2013/07/13 12:01:10 pacho Exp $
-
-depend() {
- need net
-}
-
-start() {
- ebegin "Starting saslauthd"
- start-stop-daemon --start --quiet --exec /usr/sbin/saslauthd \
- -- ${SASLAUTHD_OPTS}
- eend $?
-}
-
-stop() {
- ebegin "Stopping saslauthd"
- start-stop-daemon --stop --quiet --pidfile /run/saslauthd/saslauthd.pid
- eend $?
-}
diff --git a/pcr/openrc-net/slapd-confd-2.4.28-r1 b/pcr/openrc-net/slapd-confd-2.4.28-r1
deleted file mode 100644
index ef19899a3..000000000
--- a/pcr/openrc-net/slapd-confd-2.4.28-r1
+++ /dev/null
@@ -1,26 +0,0 @@
-# conf.d file for openldap
-#
-# To enable both the standard unciphered server and the ssl encrypted
-# one uncomment this line or set any other server starting options
-# you may desire.
-
-# If you have multiple slapd instances per #376699, this will provide a default config
-INSTANCE="openldap${SVCNAME#slapd}"
-
-# If you use the classical configuration file:
-OPTS_CONF="-f /etc/${INSTANCE}/slapd.conf"
-# Uncomment this instead to use the new slapd.d configuration directory for openldap 2.3
-#OPTS_CONF="-F /etc/${INSTANCE}/slapd.d"
-# (the OPTS_CONF variable is also passed to slaptest during startup)
-
-OPTS="${OPTS_CONF} -h 'ldaps:// ldap:// ldapi://%2fvar%2frun%2fopenldap%2fslapd.sock'"
-# Optional connectionless LDAP:
-#OPTS="${OPTS_CONF} -h 'ldaps:// ldap:// ldapi://%2fvar%2frun%2fopenldap%2fslapd.sock cldap://'"
-
-# If you change the above listen statement to bind on a specific IP for
-# listening, you should ensure that interface is up here (change eth0 as
-# needed).
-#rc_need="net.eth0"
-
-# Specify the kerberos keytab file
-#KRB5_KTNAME=/etc/openldap/krb5-ldap.keytab
diff --git a/pcr/openrc-net/slapd-initd-2.4.28-r1 b/pcr/openrc-net/slapd-initd-2.4.28-r1
deleted file mode 100644
index 48946d6ef..000000000
--- a/pcr/openrc-net/slapd-initd-2.4.28-r1
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-nds/openldap/files/slapd-initd-2.4.28-r1,v 1.4 2012/05/27 07:22:43 robbat2 Exp $
-
-extra_commands="checkconfig"
-
-[ -z "$INSTANCE" ] && INSTANCE="openldap${SVCNAME#slapd}"
-
-depend() {
- need net
- before dbus hald avahi-daemon
- provide ldap
-}
-
-start() {
- checkpath -q -d /var/run/openldap/ -o ldap:ldap
- if ! checkconfig -Q ; then
- eerror "There is a problem with your slapd.conf!"
- return 1
- fi
- ebegin "Starting ldap-server"
- [ -n "$KRB5_KTNAME" ] && export KRB5_KTNAME
- eval start-stop-daemon --start --pidfile /var/run/openldap/${SVCNAME}.pid --exec /usr/lib/openldap/slapd -- -u ldap -g ldap "${OPTS}"
- eend $?
-}
-
-stop() {
- ebegin "Stopping ldap-server"
- start-stop-daemon --stop --signal 2 --quiet --pidfile /var/run/openldap/${SVCNAME}.pid
- eend $?
-}
-
-checkconfig() {
- /usr/sbin/slaptest -u "$@" ${OPTS_CONF}
-}
diff --git a/pcr/openrc-net/slpd-init b/pcr/openrc-net/slpd-init
deleted file mode 100644
index bbc0eac1a..000000000
--- a/pcr/openrc-net/slpd-init
+++ /dev/null
@@ -1,89 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/openslp/files/slpd-init,v 1.5 2012/02/09 08:19:35 robbat2 Exp $
-
-depend() {
- need net
-}
-
-#
-# Does nothing if a route exists that supports multicast traffic.
-# If no routes supporting multicast traffic exists, the function
-# tries to add one. A 0 is returned on success and a 1 on failure.
-# One parameter must be passed in. This variable determins verbosity.
-# If parameter is non-zero debugging will appear.
-#
-multicast_route_set() {
- PING_OPTIONS_1='-c1 -w1'
- PING_OPTIONS_2='-c1 -i1'
- MULTICAST_ADDRESS='239.255.255.253'
- TMP_FILE=/tmp/route.check
- PING_ERROR_NO_ROUTE='unreachable'
-
- MSG_FAILED_TO_FIND='Failed to Detect Multicast Route'
- MSG_SUCCESS_ON_FIND='Multicast Route Enabled'
- MSG_ADDING_ROUTE='Attempting to Add Multicast Route ...'
- MSG_FAILED_TO_ADD=' FAILED - Route NOT Added.'
- MSG_SUCCES_ON_ADD=' SUCCESS - Route Added.'
-
- CMD_GET_INTERFACE="netstat -i | awk 'BEGIN{}(NR>2)&&(!/^lo*/){print \$1;exit}'"
- CMD_ADD_ROUTE="route add -net 224.0.0.0 netmask 240.0.0.0"
-
- ping $PING_OPTIONS_1 $MULTICAST_ADDRESS 2> $TMP_FILE 1> /dev/null
- if [ $? = 2 ]; then
- ping $PING_OPTIONS_2 $MULTICAST_ADDRESS 2> $TMP_FILE 1> /dev/null
- fi
-
- grep $PING_ERROR_NO_ROUTE $TMP_FILE > /dev/null 2>&1
- err_unreachable_found=$?
-
- #If errors, add route. Otherwise, do nothing
- if [ -s $TMP_FILE ] && [ $err_unreachable_found = 0 ]; then
-
- if [ $1 != 0 ]; then
- echo $MSG_FAILED_TO_FIND
- echo $MSG_ADDING_ROUTE
- fi
-
- $CMD_ADD_ROUTE `eval $CMD_GET_INTERFACE` > /dev/null 2>&1
- retval=$?
- if [ $1 != 0 ]; then
-
- if [ $retval = 0 ]; then
- echo $MSG_SUCCES_ON_ADD
- else
- echo $MSG_FAILED_TO_ADD
- fi
- fi
- else
- if [ $1 != 0 ]; then
- echo -n $MSG_SUCCESS_ON_FIND
- fi
- retval=0
- fi
-
- rm -f $TMP_FILE # Clean up
- return $retval
-}
-
-checkconfig() {
- multicast_route_set 0
- if [ $? -ne 0 ]; then
- eerror "No route available for multicast traffic!"
- return 1
- fi
-}
-
-start() {
- checkconfig || return 1
- ebegin "Starting slpd"
- start-stop-daemon --start --quiet --exec /usr/sbin/slpd --pidfile /var/run/slpd.pid
- eend $?
-}
-
-stop() {
- ebegin "Stopping slpd"
- start-stop-daemon --stop --quiet --pidfile /var/run/slpd.pid
- eend $?
-}
diff --git a/pcr/openrc-net/squid.confd-r1 b/pcr/openrc-net/squid.confd-r1
deleted file mode 100644
index f17bfe06f..000000000
--- a/pcr/openrc-net/squid.confd-r1
+++ /dev/null
@@ -1,13 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/files/squid.confd-r1,v 1.1 2013/01/11 15:25:49 eras Exp $
-
-# Config file for /etc/init.d/squid
-
-SQUID_OPTS="-YC"
-
-# Kerberos keytab file to use. This is required if you enable kerberos authentication.
-SQUID_KEYTAB=""
-
-# Use max_filedescriptors setting in squid.conf to determine the maximum number
-# of filedescriptors squid can open.
diff --git a/pcr/openrc-net/squid.initd-r4 b/pcr/openrc-net/squid.initd-r4
deleted file mode 100644
index 0b5741955..000000000
--- a/pcr/openrc-net/squid.initd-r4
+++ /dev/null
@@ -1,118 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/files/squid.initd-r4,v 1.1 2014/01/18 22:16:27 eras Exp $
-
-extra_started_commands="reload rotate"
-
-depend() {
- use dns net
-}
-
-checkconfig() {
- if [ ! -f /etc/squid/${SVCNAME}.conf ]; then
- eerror "You need to create /etc/squid/${SVCNAME}.conf first."
- eerror "An example can be found in /etc/squid/squid.conf.default"
- return 1
- fi
-
- local PIDFILE=$(awk '/^[ \t]*pid_filename[ \t]+/ { print $2 }' < /etc/squid/${SVCNAME}.conf)
- [ -z ${PIDFILE} ] && PIDFILE=/run/squid.pid
- if [ /run/${SVCNAME}.pid != ${PIDFILE} ]; then
- eerror "/etc/squid/${SVCNAME}.conf must set pid_filename to"
- eerror " /run/${SVCNAME}.pid"
- eerror "CAUTION: http_port, cache_dir and *_log parameters must be different than"
- eerror " in any other instance of squid."
- return 1
- fi
-
- # Maximum file descriptors squid can open is determined by:
- # a basic default of N=1024
- # ... altered by ./configure --with-filedescriptors=N
- # ... overridden on production by squid.conf max_filedescriptors (if,
- # and only if, setrlimit() RLIMIT_NOFILE is able to be built+used).
- # Since we do not configure hard coded # of filedescriptors anymore,
- # there is no need for ulimit calls in the init script.
- # Use max_filedescriptors in squid.conf instead.
-
- local CACHE_SWAP=$(awk '/^[ \t]*cache_dir[ \t]+/ { if ( $2 == "rock" ) printf "%s/rock ", $3; else if ( $2 == "coss" ) printf "%s/stripe ", $3; else printf "%s/00 ", $3; }' < /etc/squid/${SVCNAME}.conf)
- [ -z "$CACHE_SWAP" ] && CACHE_SWAP="/var/cache/squid/00"
-
- local x
- for x in $CACHE_SWAP ; do
- if [ ! -e $x ] ; then
- ebegin "Initializing cache directory ${x%/*}"
- local ORIG_UMASK=$(umask)
- umask 027
-
- if ! (mkdir -p ${x%/*} && chown squid ${x%/*}) ; then
- eend 1
- return 1
- fi
-
- local INIT_CACHE_RESPONSE="$(/usr/sbin/squid -z -N -f /etc/squid/${SVCNAME}.conf 2>&1)"
- if [ $? != 0 ] || echo "$INIT_CACHE_RESPONSE" | grep -q "erminated abnormally" ; then
- umask $ORIG_UMASK
- eend 1
- echo "$INIT_CACHE_RESPONSE"
- return 1
- fi
-
- umask $ORIG_UMASK
- eend 0
- break
- fi
- done
-
- return 0
-}
-
-start() {
- checkconfig || return 1
- checkpath -d -q -m 0750 -o squid:squid /run/${SVCNAME}
-
- ebegin "Starting ${SVCNAME}"
- KRB5_KTNAME="${SQUID_KEYTAB}" /usr/sbin/squid ${SQUID_OPTS} -f /etc/squid/${SVCNAME}.conf
- eend $? && sleep 1
-}
-
-stop() {
- ebegin "Stopping ${SVCNAME}"
- if /usr/sbin/squid -k shutdown -f /etc/squid/${SVCNAME}.conf ; then
- # Now we have to wait until squid has _really_ stopped.
- sleep 1
- if [ -f /run/${SVCNAME}.pid ] ; then
- einfon "Waiting for squid to shutdown ."
- cnt=0
- while [ -f /run/${SVCNAME}.pid ] ; do
- cnt=$(expr $cnt + 1)
- if [ $cnt -gt 60 ] ; then
- # Waited 120 seconds now. Fail.
- echo
- eend 1 "Failed."
- break
- fi
- sleep 2
- echo -n "."
- done
- echo
- fi
- else
- eerror "Squid shutdown failed, probably service is already down."
- fi
- eend 0
-}
-
-reload() {
- checkconfig || return 1
- ebegin "Reloading ${SVCNAME}"
- /usr/sbin/squid -k reconfigure -f /etc/squid/${SVCNAME}.conf
- eend $?
-}
-
-rotate() {
- service_started ${SVCNAME} || return 1
- ebegin "Rotating ${SVCNAME} logs"
- /usr/sbin/squid -k rotate -f /etc/squid/${SVCNAME}.conf
- eend $?
-}
diff --git a/pcr/openrc-net/sshd.confd b/pcr/openrc-net/sshd.confd
deleted file mode 100644
index 28952b4a2..000000000
--- a/pcr/openrc-net/sshd.confd
+++ /dev/null
@@ -1,21 +0,0 @@
-# /etc/conf.d/sshd: config file for /etc/init.d/sshd
-
-# Where is your sshd_config file stored?
-
-SSHD_CONFDIR="/etc/ssh"
-
-
-# Any random options you want to pass to sshd.
-# See the sshd(8) manpage for more info.
-
-SSHD_OPTS=""
-
-
-# Pid file to use (needs to be absolute path).
-
-#SSHD_PIDFILE="/var/run/sshd.pid"
-
-
-# Path to the sshd binary (needs to be absolute path).
-
-#SSHD_BINARY="/usr/sbin/sshd"
diff --git a/pcr/openrc-net/sshd.rc6.4 b/pcr/openrc-net/sshd.rc6.4
deleted file mode 100644
index 1b872bc87..000000000
--- a/pcr/openrc-net/sshd.rc6.4
+++ /dev/null
@@ -1,87 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/openssh/files/sshd.rc6.4,v 1.3 2013/04/24 03:13:03 vapier Exp $
-
-extra_commands="checkconfig"
-extra_started_commands="reload"
-
-SSHD_CONFDIR=${SSHD_CONFDIR:-/etc/ssh}
-SSHD_CONFIG=${SSHD_CONFIG:-${SSHD_CONFDIR}/sshd_config}
-SSHD_PIDFILE=${SSHD_PIDFILE:-/var/run/${SVCNAME}.pid}
-SSHD_BINARY=${SSHD_BINARY:-/usr/sbin/sshd}
-
-depend() {
- use logger dns
- if [ "${rc_need+set}" = "set" ]; then
- : # Do nothing, the user has explicitly set rc_need
- else
- warn_addr=''
- for x in $(awk '/^ListenAddress/{ print $2 }' "$SSHD_CONFIG" 2>/dev/null) ; do
- case "$x" in
- 0.0.0.0|0.0.0.0:*) ;;
- ::|\[::\]*) ;;
- *) warn_addr="${warn_addr} $x" ;;
- esac
- done
- unset x
- if [ "${warn_addr:+set}" = "set" ]; then
- need net
- ewarn "You are binding an interface in ListenAddress statement in your sshd_config!"
- ewarn "You must add rc_need=\"net.FOO\" to your /etc/conf.d/sshd"
- ewarn "where FOO is the interface(s) providing the following address(es):"
- ewarn "${warn_addr}"
- fi
- unset warn_addr
- fi
-}
-
-checkconfig() {
- if [ ! -d /var/empty ] ; then
- mkdir -p /var/empty || return 1
- fi
-
- if [ ! -e "${SSHD_CONFDIR}"/sshd_config ] ; then
- eerror "You need an ${SSHD_CONFDIR}/sshd_config file to run sshd"
- eerror "There is a sample file in /usr/share/doc/openssh"
- return 1
- fi
-
- ssh-keygen -A || return 1
-
- [ "${SSHD_PIDFILE}" != "/var/run/sshd.pid" ] \
- && SSHD_OPTS="${SSHD_OPTS} -o PidFile=${SSHD_PIDFILE}"
- [ "${SSHD_CONFDIR}" != "/etc/ssh" ] \
- && SSHD_OPTS="${SSHD_OPTS} -f ${SSHD_CONFDIR}/sshd_config"
-
- "${SSHD_BINARY}" -t ${SSHD_OPTS} || return 1
-}
-
-start() {
- checkconfig || return 1
-
- ebegin "Starting ${SVCNAME}"
- start-stop-daemon --start --exec "${SSHD_BINARY}" \
- --pidfile "${SSHD_PIDFILE}" \
- -- ${SSHD_OPTS}
- eend $?
-}
-
-stop() {
- if [ "${RC_CMD}" = "restart" ] ; then
- checkconfig || return 1
- fi
-
- ebegin "Stopping ${SVCNAME}"
- start-stop-daemon --stop --exec "${SSHD_BINARY}" \
- --pidfile "${SSHD_PIDFILE}" --quiet
- eend $?
-}
-
-reload() {
- checkconfig || return 1
- ebegin "Reloading ${SVCNAME}"
- start-stop-daemon --signal HUP \
- --exec "${SSHD_BINARY}" --pidfile "${SSHD_PIDFILE}"
- eend $?
-}
diff --git a/pcr/openrc-net/tor.confd b/pcr/openrc-net/tor.confd
deleted file mode 100644
index 4195bf323..000000000
--- a/pcr/openrc-net/tor.confd
+++ /dev/null
@@ -1,3 +0,0 @@
-#
-# Set the file limit
-rc_ulimit="-n 30000"
diff --git a/pcr/openrc-net/tor.initd-r6 b/pcr/openrc-net/tor.initd-r6
deleted file mode 100644
index c31eac12f..000000000
--- a/pcr/openrc-net/tor.initd-r6
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/tor/files/Attic/tor.initd-r6,v 1.7 2015/03/20 12:46:13 blueness dead $
-
-extra_commands="checkconfig"
-extra_started_commands="reload"
-
-PIDFILE=/var/run/tor/tor.pid
-CONFFILE=/etc/tor/torrc
-
-depend() {
- need net
-}
-
-checkconfig() {
- # first check that it exists
- if [ ! -f ${CONFFILE} ] ; then
- eerror "You need to setup ${CONFFILE} first"
- eerror "Example is in ${CONFFILE}.sample"
- return 1
- fi
-
- # now verify whether the configuration is valid
- /usr/bin/tor --verify-config -f ${CONFFILE} > /dev/null 2>&1
- if [ $? -eq 0 ] ; then
- einfo "Tor configuration (${CONFFILE}) is valid."
- return 0
- else
- eerror "Tor configuration (${CONFFILE}) not valid."
- /usr/bin/tor --verify-config -f ${CONFFILE}
- return 1
- fi
-}
-
-start() {
- checkconfig || return 1
- checkpath -d -m 0755 -o tor:tor /var/run/tor
- ebegin "Starting Tor"
- HOME=/var/lib/tor
- start-stop-daemon --start --pidfile "${PIDFILE}" --quiet --exec /usr/bin/tor -- -f "${CONFFILE}" --runasdaemon 1 --PidFile "${PIDFILE}" > /dev/null 2>&1
- eend $?
-}
-
-stop() {
- ebegin "Stopping Tor"
- start-stop-daemon --stop --pidfile "${PIDFILE}" --exec /usr/bin/tor -- --PidFile "${PIDFILE}"
- eend $?
-}
-
-reload() {
- if [ ! -f ${PIDFILE} ]; then
- eerror "${SVCNAME} isn't running"
- return 1
- fi
- checkconfig || return 1
- ebegin "Reloading Tor configuration"
- start-stop-daemon --signal HUP --pidfile ${PIDFILE}
- eend $?
-}
diff --git a/pcr/openrc-net/transmission-daemon.confd.4 b/pcr/openrc-net/transmission-daemon.confd.4
deleted file mode 100644
index 8f3b1317a..000000000
--- a/pcr/openrc-net/transmission-daemon.confd.4
+++ /dev/null
@@ -1,14 +0,0 @@
-# This is the transmission-daemon configuration file. For other options and
-# better explanation, take a look at transmission-daemon manual page Note: it's
-# better to configure some settings (like username/password) in
-# /var/lib/transmission/config/settings.json to avoid other users see it with `ps`
-
-TRANSMISSION_OPTIONS="--encryption-preferred"
-
-# Run daemon as another user (username or username:groupname)
-# If you change this setting, chown -R /var/lib/transmission/config <and download directory, check web settings>
-#runas_user=transmission
-
-# Location of logfile (should be writeable for runas_user user)
-# Set logfile=syslog to use syslog for logging
-#logfile=/var/log/transmission/transmission.log
diff --git a/pcr/openrc-net/transmission-daemon.initd.9 b/pcr/openrc-net/transmission-daemon.initd.9
deleted file mode 100644
index 3c4914c58..000000000
--- a/pcr/openrc-net/transmission-daemon.initd.9
+++ /dev/null
@@ -1,73 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/transmission/files/transmission-daemon.initd.9,v 1.1 2013/09/07 12:10:01 ssuominen Exp $
-
-extra_started_commands="reload"
-description="Transmission is a fast, easy and free bittorrent client"
-description_start="Start transmission-daemon server and web interface"
-description_stop="Stop transmission-daemon server and web interface"
-description_reload="Reload transmission-daemon settings"
-
-rundir=${rundir:-/var/run/transmission}
-pidfile=${pidfile:-${rundir}/transmission.pid}
-config_dir=${config_dir:-/var/lib/transmission/config}
-download_dir=${download_dir:-/var/lib/transmission/downloads}
-logfile=${logfile:-/var/log/transmission/transmission.log}
-runas_user=${runas_user:-transmission:transmission}
-
-SSD_OPTIONS=""
-
-depend() {
- need net
-}
-
-check_config() {
- if [ ! -d "${rundir}" ]; then
- mkdir "${rundir}"
- if [ -n "${runas_user}" ]; then
- chown -R ${runas_user} "${rundir}"
- fi
- fi
-
- # In case no config directory option passed use default
- if ! $(echo ${TRANSMISSION_OPTIONS} | grep -q -e '\B-g' -e '\B--config-dir'); then
- TRANSMISSION_OPTIONS="${TRANSMISSION_OPTIONS} --config-dir ${config_dir}"
- # put download dir location on first run (and take it from config later)
- if [ ! -f ${config_dir}/settings.json ]; then
- TRANSMISSION_OPTIONS="${TRANSMISSION_OPTIONS} --download-dir ${download_dir}"
- fi
- fi
-
- if [ -n "${runas_user}" ]; then
- if [ -f /etc/init.d/sysfs ]; then
- SSD_OPTIONS="${SSD_OPTIONS} --user ${runas_user}"
- else
- SSD_OPTIONS="${SSD_OPTIONS} --chuid ${runas_user}"
- fi
- fi
-}
-
-start() {
- check_config
-
- ebegin "Starting transmission daemon"
- start-stop-daemon --start --quiet --pidfile ${pidfile} ${SSD_OPTIONS} \
- --exec /usr/bin/transmission-daemon -- --pid-file ${pidfile} \
- $(test ${logfile} != "syslog" && echo --logfile ${logfile}) \
- ${TRANSMISSION_OPTIONS}
- eend $?
-}
-
-stop() {
- ebegin "Stopping transmission daemon"
- start-stop-daemon --stop --quiet --retry TERM/45/QUIT/15 --pidfile ${pidfile}
- eend $?
-}
-
-reload() {
- ebegin "Reloading transmission configuration"
- start-stop-daemon --signal HUP --pidfile ${pidfile}
- eend $?
-}
-
diff --git a/pcr/openrc-net/ufw-2.initd b/pcr/openrc-net/ufw-2.initd
deleted file mode 100644
index 1ffd1c596..000000000
--- a/pcr/openrc-net/ufw-2.initd
+++ /dev/null
@@ -1,137 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/ufw/files/ufw-2.initd,v 1.2 2012/06/13 21:14:52 thev00d00 Exp $
-
-depend() {
- before net
- provide firewall
-}
-
-start() {
- ebegin "Starting ufw"
- _source_file || { eend $?; return $?; }
-
- local enabled_in_cfg ret
- _check_if_enabled_in_cfg
- enabled_in_cfg=$?
-
- # Avoid "Firewall already started, use 'force-reload'" message that
- # appears if `ufw enable' had been run before start().
- if _status_quiet; then
- eend 0
- return
- fi
-
- # The ufw_start function does the same: if ufw is disabled using `ufw disable',
- # ufw_start would not start ufw and return 0, so let's handle this case.
- case $enabled_in_cfg in
- 0)
- ufw_start
- ret=$?
- eend $ret "Failed to start ufw."
- ;;
- 1)
- # see /etc/conf.d/<name>
- if [ "${ufw_nonfatal_if_disabled:-no}" != "yes" ]; then
- ret=1
- eend $ret "Not starting firewall (not enabled), use \"ufw enable\" first."
- else
- ret=0
- eend 0
- fi
- ;;
- 2)
- ret=1
- eend $ret "Failed to start ufw."
- ;;
- esac
-
- return $ret
-}
-
-stop() {
- ebegin "Stopping ufw"
- _source_file || { eend $?; return $?; }
- local enabled_in_cfg ret
- _check_if_enabled_in_cfg
- enabled_in_cfg=$?
-
- # Same as above (unless --force is passed to ufw_stop).
- case $enabled_in_cfg in
- 0)
- ufw_stop
- ret=$?
- ;;
- 1)
- einfo "INFO: ufw is configured to be disabled"
- ufw_stop --force
- ret=$?
- ;;
- 2)
- ret=1
- ;;
- esac
-
- eend $ret "Failed to stop ufw."
- return $ret
-}
-
-_status_quiet() {
- # return values: 0 - started, 1 - stopped, 2 - error
- # Does not execute _source_file.
- local ret
- ufw_status > /dev/null
- ret=$?
- # Return values for ufw_status come from /usr/share/ufw/ufw-init-functions.
- case $ret in
- 0) return 0 ;;
- 3) return 1 ;;
- *) return 2 ;;
- esac
-}
-
-_source_file() {
- local sourced_f="/usr/share/ufw/ufw-init-functions"
- if [ ! -f "$sourced_f" ]; then
- eerror "Cannot find file $sourced_f!"
- return 1
- fi
-
- local _path=$PATH
- if ! . "$sourced_f"; then
- # PATH can be broken here, fix it...
- PATH=$_path
- eerror "Error sourcing file $sourced_f"
- return 1
- fi
-
- if [ -z "$PATH" ]; then
- PATH=$_path
- else
- PATH="${PATH}:${_path}"
- fi
- return 0
-}
-
-_check_if_enabled_in_cfg() {
- # Check if user has enabled the firewall with "ufw enable".
- # Return 0 if firewall enabled in configuration file, 1 otherwise, 2 on error.
-
- local sourced_f="/etc/ufw/ufw.conf"
- if [ ! -f "$sourced_f" ]; then
- eerror "Cannot find file $sourced_f!"
- return 2
- fi
-
- if ! . "$sourced_f"; then
- eerror "Error sourcing file $sourced_f"
- return 2
- fi
-
- if [ "$ENABLED" = "yes" ] || [ "$ENABLED" = "YES" ]; then
- return 0
- else
- return 1
- fi
-}
diff --git a/pcr/openrc-net/ufw.confd b/pcr/openrc-net/ufw.confd
deleted file mode 100644
index 900d3bf67..000000000
--- a/pcr/openrc-net/ufw.confd
+++ /dev/null
@@ -1,5 +0,0 @@
-# If equals to "yes", warnings that firewall is disabled
-# (using `ufw disable') will be suppressed and the service
-# will be considered started.
-# Default if unset or another value is "no".
-ufw_nonfatal_if_disabled=no
diff --git a/pcr/openrc-net/vsftpd-checkconfig.sh b/pcr/openrc-net/vsftpd-checkconfig.sh
deleted file mode 100644
index e1d1e5231..000000000
--- a/pcr/openrc-net/vsftpd-checkconfig.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/sh
-
-VSFTPD_CONF="${VSFTPD_CONF:-/etc/vsftpd/vsftpd.conf}"
-
-if [ ! -e ${VSFTPD_CONF} ] ; then
- echo "Please setup ${VSFTPD_CONF} before starting vsftpd" >&2
- echo "There are sample configurations in /usr/share/doc/vsftpd" >&2
- exit 1
-fi
-
-if egrep -iq "^ *background *= *yes" "${VSFTPD_CONF}" ; then
- echo "${VSFTPD_CONF} must not set background=YES" >&2
- exit 1
-fi
-
-has_ip=false has_ipv6=false ip_error=true
-egrep -iq "^ *listen *= *yes" "${VSFTPD_CONF}" && has_ip=true
-egrep -iq "^ *listen_ipv6 *= *yes" "${VSFTPD_CONF}" && has_ipv6=true
-if ${has_ip} && ! ${has_ipv6} ; then
- ip_error=false
-elif ! ${has_ip} && ${has_ipv6} ; then
- ip_error=false
-fi
-if ${ip_error} ; then
- echo "${VSFTPD_CONF} must contain listen=YES or listen_ipv6=YES" >&2
- echo "but not both" >&2
- exit 1
-fi
-
diff --git a/pcr/openrc-net/vsftpd.init b/pcr/openrc-net/vsftpd.init
deleted file mode 100644
index e1c26c7d8..000000000
--- a/pcr/openrc-net/vsftpd.init
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License, v2
-# $Header: /var/cvsroot/gentoo-x86/net-ftp/vsftpd/files/vsftpd.init,v 1.9 2015/01/31 13:07:47 hwoarang Exp $
-
-VSFTPD_NAME=${SVCNAME##*.}
-if [ -n "${VSFTPD_NAME}" -a "${SVCNAME}" != "vsftpd" ]; then
- VSFTPD_PID="/var/run/vsftpd.${VSFTPD_NAME}.pid"
- VSFTPD_CONF_DEFAULT="/etc/vsftpd/${VSFTPD_NAME}.conf"
-else
- VSFTPD_PID="/var/run/vsftpd.pid"
- VSFTPD_CONF_DEFAULT="/etc/vsftpd/vsftpd.conf"
-fi
-VSFTPD_CONF=${VSFTPD_CONF:-${VSFTPD_CONF_DEFAULT}}
-VSFTPD_EXEC=${VSFTPD_EXEC:-/usr/sbin/vsftpd}
-
-depend() {
- need net
- use dns logger
-}
-
-checkconfig() {
- VSFTPD_CONF="${VSFTPD_CONF}" \
- /usr/libexec/vsftpd-checkconfig.sh || return 1
-}
-
-start() {
- checkconfig || return 1
- ebegin "Starting ${SVCNAME}"
- start-stop-daemon --start --exec ${VSFTPD_EXEC} \
- --background --make-pidfile --pidfile "${VSFTPD_PID}" \
- -- "${VSFTPD_CONF}"
- eend $?
-}
-
-stop() {
- ebegin "Stopping ${SVCNAME}"
- local retval=0
- if [ -f ${VSFTPD_PID} ]; then
- start-stop-daemon --stop --pidfile ${VSFTPD_PID} || retval=1
- pkill --full ${VSFTPD_CONF}
- else
- ewarn "Couldn't find ${VSFTPD_PID} trying to stop using the config filename ${VSFTPD_CONF}"
- pgrep --full ${VSFTPD_CONF} > ${VSFTPD_PID}
- start-stop-daemon --stop --pidfile ${VSFTPD_PID} || retval=1
- pkill --full ${VSFTPD_CONF}
- fi
- eend ${retval}
-}
-
-# vim: ts=4
diff --git a/pcr/openrc-net/xinetd.confd b/pcr/openrc-net/xinetd.confd
deleted file mode 100644
index ae211f3d8..000000000
--- a/pcr/openrc-net/xinetd.confd
+++ /dev/null
@@ -1,3 +0,0 @@
-# /etc/conf.d/xinetd: config file for /etc/init.d/xinetd
-
-XINETD_OPTS="-stayalive -reuse"
diff --git a/pcr/openrc-net/xinetd.rc6 b/pcr/openrc-net/xinetd.rc6
deleted file mode 100644
index 2f90775c0..000000000
--- a/pcr/openrc-net/xinetd.rc6
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/xinetd/files/xinetd.rc6,v 1.24 2011/10/11 01:26:08 vapier Exp $
-
-extra_started_commands="reload dump check"
-
-depend() {
- use net
-}
-
-start() {
- ebegin "Starting xinetd"
- start-stop-daemon --start --exec /usr/sbin/xinetd -- \
- -pidfile /var/run/xinetd.pid ${XINETD_OPTS}
- eend $?
-}
-
-stop() {
- ebegin "Stopping xinetd"
- start-stop-daemon --stop --quiet --pidfile /var/run/xinetd.pid
- eend $?
-}
-
-do_sig() {
- local sig=$1 ; shift
- ebegin "$*"
- start-stop-daemon --signal ${sig} --pidfile /var/run/xinetd.pid
- eend $?
-}
-reload() { do_sig HUP "Reloading configuration" ; }
-dump() { do_sig USR1 "Dumping configuration" ; }
-check() { do_sig IOT "Performing Consistency Check" ; }
diff --git a/pcr/openrc-net/ypbind.confd-r1 b/pcr/openrc-net/ypbind.confd-r1
deleted file mode 100644
index 91cdc60c1..000000000
--- a/pcr/openrc-net/ypbind.confd-r1
+++ /dev/null
@@ -1,4 +0,0 @@
-# Config file for /etc/init.d/ypbind
-
-# Set any command line options you want to pass to ypbind.
-YPBIND_OPTS=""
diff --git a/pcr/openrc-net/ypbind.initd b/pcr/openrc-net/ypbind.initd
deleted file mode 100644
index f227a4172..000000000
--- a/pcr/openrc-net/ypbind.initd
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-nds/ypbind/files/ypbind.initd,v 1.6 2009/02/24 17:25:01 drizzt Exp $
-
-depend() {
- need net portmap
- use ypserv domainname
-}
-
-start() {
- ebegin "Starting ypbind"
- if [ -n "${YPBIND_OPTS}" ]; then
- YOPTS="-- ${YPBIND_OPTS}"
- fi
- start-stop-daemon --start --quiet --exec /usr/sbin/ypbind ${YOPTS}
- local ret=$?
- if [ $ret -eq 0 ] ; then
- notfound=1
- for i in 0 1 2 3 4 5 6 7 8 9
- do
- ypwhich >/dev/null 2>&1 && { notfound=0; break; }
- sleep 1
- done
- if [ $notfound -eq 1 ] ; then
- eend 1 "No NIS server found"
- else
- eend 0
- fi
- else
- eend $ret
- fi
-}
-
-stop() {
- ebegin "Stopping ypbind"
- start-stop-daemon --stop --quiet --exec /usr/sbin/ypbind
- eend $?
- # Remove binding files, if ypbind "forgets" it
- rm -f /var/yp/binding/*
-}
diff --git a/pcr/openrc-net/ypserv b/pcr/openrc-net/ypserv
deleted file mode 100644
index be1dc42e1..000000000
--- a/pcr/openrc-net/ypserv
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-nds/ypserv/files/ypserv,v 1.4 2006/04/10 20:00:18 eradicator Exp $
-
-depend() {
- need net portmap
- use domainname
-}
-
-start() {
- ebegin "Starting NIS Server"
- YOPTS=""
- if [ -n "${YPSERV_OPTS}" ]; then YOPTS="-- ${YPSERV_OPTS}"; fi
- start-stop-daemon --start --quiet --exec /usr/sbin/ypserv ${YOPTS}
- eend $?
-}
-
-stop() {
- ebegin "Stopping NIS Server"
- start-stop-daemon --stop --quiet --exec /usr/sbin/ypserv
- eend $?
-}
diff --git a/pcr/openrc-net/ypserv.confd b/pcr/openrc-net/ypserv.confd
deleted file mode 100644
index 0ae9756dc..000000000
--- a/pcr/openrc-net/ypserv.confd
+++ /dev/null
@@ -1,4 +0,0 @@
-# Config file for /etc/init.d/ypserv
-
-# Command line options to pass to ypserv:
-YPSERV_OPTS=""
diff --git a/pcr/polkit-consolekit/PKGBUILD b/pcr/polkit-consolekit/PKGBUILD
index 47f184bf1..104e81b20 100644
--- a/pcr/polkit-consolekit/PKGBUILD
+++ b/pcr/polkit-consolekit/PKGBUILD
@@ -1,26 +1,23 @@
-# Maintainer : freaj <freaj@riseup.net>
-# Maintainer (Manjaro): artoo <artoo@manjaro.org>
-# Contributor (Manjaro): kozec <kozec at kozec.com>
-# Contributor (Manjaro): Lukas Jirkovsky <l.jirkovsky@gmail.com>
-# Contributor (Manjaro): Jan de Groot <jgc@archlinux.org>
+# Maintainer (Arch): kozec <kozec at kozec.com>
+# Contributor (Arch): Lukas Jirkovsky <l.jirkovsky@gmail.com>
+# Contributor (Arch): Jan de Groot <jgc@archlinux.org>
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
pkgname=polkit-consolekit
-pkgver=0.112
-pkgrel=3
-pkgdesc="PolyciKit with ConsoleKit support for non-systemd systems"
+pkgver=0.113
+pkgrel=2
+pkgdesc="PolicyKit with ConsoleKit support for non-systemd systems"
arch=('i686' 'x86_64')
license=('LGPL')
url="http://www.freedesktop.org/wiki/Software/polkit"
-depends=('glib2' 'pam' 'expat' 'js17')
-makedepends=('intltool' 'gtk-doc' 'gobject-introspection' 'python2')
+depends=('glib2' 'pam' 'expat' 'js185')
+makedepends=('intltool' 'gtk-doc' 'gobject-introspection')
provides=("polkit=$pkgver")
conflicts=('polkit')
options=('!libtool')
install=polkit.install
source=(http://www.freedesktop.org/software/polkit/releases/polkit-$pkgver.tar.gz
polkit.pam)
-sha256sums=('d695f43cba4748a822fbe864dd32c4887c5da1c71694a47693ace5e88fcf6af6'
- 'a35af3210bff1a8f2c04add47ed131a17df9eafbbc6f1671f97021be3ab1ff34')
build() {
cd "$srcdir/polkit-$pkgver"
@@ -42,3 +39,6 @@ package() {
install -m644 "$srcdir/polkit.pam" "$pkgdir/etc/pam.d/polkit-1"
}
+
+md5sums=('4b77776c9e4f897dcfe03b2c34198edf'
+ '6564f95878297b954f0572bc1610dd15')
diff --git a/pcr/spl-git/PKGBUILD b/pcr/spl-git/PKGBUILD
new file mode 100644
index 000000000..46700cc8c
--- /dev/null
+++ b/pcr/spl-git/PKGBUILD
@@ -0,0 +1,68 @@
+# Maintainer (Arch): Jesus Alvarez <jeezusjr at gmail dot com>
+# Contributor (Arch): Kyle Fuller <inbox at kylefuller dot co dot uk>
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
+#
+# This PKGBUILD was generated by the archzfs build scripts located at
+#
+# http://github.com/demizer/archzfs
+#
+# The build script generates and updates the pkgver and _kernel* variables.
+#
+pkgname="spl-git"
+pkgver=0.6.4.2_r0_g04974ca_4.1.6_1
+pkgrel=1
+license=('GPL')
+
+# Used incase the i686 and x86_64 linux packages get out of sync with the
+# PKGREL. This occurred on January 31, 2014 where i686 was versioned at
+# 3.12.9-1 and x86_64 was versioned at 3.12.9-2.
+_kernel_version_x32="4.1.6-1"
+_kernel_version_x32_full="4.1.6-gnu-1"
+_kernel_version_x64="4.1.6-1"
+_kernel_version_x64_full="4.1.6-gnu-1"
+
+if [[ $CARCH == "i686" ]]; then
+ _kernel_version=${_kernel_version_x32}
+ _kernel_version_full=${_kernel_version_x32_full}
+else
+ _kernel_version=${_kernel_version_x64}
+ _kernel_version_full=${_kernel_version_x64_full}
+fi
+
+pkgdesc="Solaris Porting Layer kernel modules."
+depends=("spl-utils-git" "linux=${_kernel_version}")
+makedepends=("git" "linux-headers=${_kernel_version}")
+arch=("i686" "x86_64")
+url="http://zfsonlinux.org/"
+source=("git+https://github.com/zfsonlinux/spl.git#commit=04974ca1")
+groups=("archzfs-git")
+md5sums=('SKIP')
+replaces=("spl")
+provides=("spl")
+conflicts=("spl" "spl-lts")
+install=spl.install
+
+build() {
+ cd "${srcdir}/spl"
+ ./autogen.sh
+
+ _at_enable=""
+ [ "${CARCH}" == "i686" ] && _at_enable="--enable-atomic-spinlocks"
+
+ ./configure --prefix=/usr \
+ --libdir=/usr/lib \
+ --sbindir=/usr/bin \
+ --with-linux=/usr/lib/modules/${_kernel_version_full}/build \
+ --with-config=kernel \
+ ${_at_enable}
+
+ make
+}
+
+package() {
+ cd "${srcdir}/spl"
+ make DESTDIR="${pkgdir}" install
+
+ mv "${pkgdir}/lib" "${pkgdir}/usr/"
+ sed -i "s+${srcdir}++" ${pkgdir}/usr/src/spl-*/${_kernel_version_full}/Module.symvers
+}
diff --git a/pcr/spl-git/spl.install b/pcr/spl-git/spl.install
new file mode 100644
index 000000000..e316e7542
--- /dev/null
+++ b/pcr/spl-git/spl.install
@@ -0,0 +1,37 @@
+post_install() {
+ check_hostid
+ run_depmod
+}
+
+post_remove() {
+ run_depmod
+}
+
+post_upgrade() {
+ check_hostid
+ run_depmod
+}
+
+check_hostid() {
+ # Check /etc/hostid to see if it set to the sentinel value, see
+ # https://wiki.archlinux.org/index.php/ZFS for more information.
+ HOSTID=$(hostid)
+ if [ "0x$HOSTID" == "0xffffffff" ]; then
+ # Generate a new hostid
+ : >/etc/hostid
+ HOSTID=$(hostid)
+ # hostid is 4 byte little endian
+ printf $(echo -n $HOSTID | sed 's/\(..\)\(..\)\(..\)\(..\)/\\x\4\\x\3\\x\2\\x\1/') >/etc/hostid
+ fi
+}
+
+run_depmod() {
+ echo ">>> Updating module dependencies. Please wait ..."
+
+ _kernel_version_x32_full="4.1.6-gnu-1"
+ _kernel_version_x64_full="4.1.6-gnu-1"
+
+ [[ $CARCH == "i686" ]] && _kernel_version_full=${_kernel_version_x32_full} || _kernel_version_full=${_kernel_version_x64_full}
+
+ depmod ${_kernel_version_full}
+}
diff --git a/pcr/spl-utils-git/PKGBUILD b/pcr/spl-utils-git/PKGBUILD
new file mode 100644
index 000000000..d076a5813
--- /dev/null
+++ b/pcr/spl-utils-git/PKGBUILD
@@ -0,0 +1,49 @@
+# Maintainer (Arch): Jesus Alvarez <jeezusjr at gmail dot com>
+# Contributor (Arch): Kyle Fuller <inbox at kylefuller dot co dot uk>
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
+#
+# This PKGBUILD was generated by the archzfs build scripts located at
+#
+# http://github.com/demizer/archzfs
+#
+# The build script generates and updates the pkgver and _kernel* variables.
+#
+pkgname="spl-utils-git"
+pkgver=0.6.4.2_r0_g04974ca_4.1.6_1
+pkgrel=1
+license=('GPL')
+pkgdesc="Solaris Porting Layer kernel module support files."
+makedepends=("git")
+arch=("i686" "x86_64")
+url="http://zfsonlinux.org/"
+source=("git+https://github.com/zfsonlinux/spl.git#commit=04974ca1"
+ "spl-utils.hostid")
+groups=("archzfs-git")
+md5sums=('SKIP'
+ 'a54f0041a9e15b050f25c463f1db7449')
+replaces=("spl-utils")
+provides=("spl-utils")
+conflicts=("spl-utils" "spl-utils-lts")
+
+build() {
+ cd "${srcdir}/spl"
+ ./autogen.sh
+
+ _at_enable=""
+ [ "${CARCH}" == "i686" ] && _at_enable="--enable-atomic-spinlocks"
+
+ ./configure --prefix=/usr \
+ --libdir=/usr/lib \
+ --sbindir=/usr/bin \
+ --with-config=user \
+ ${_at_enable}
+
+ make
+}
+
+package() {
+ cd "${srcdir}/spl"
+ make DESTDIR="${pkgdir}" install
+
+ install -D -m644 "${srcdir}"/spl-utils.hostid "${pkgdir}"/etc/hostid
+}
diff --git a/pcr/thermald/PKGBUILD b/pcr/thermald/PKGBUILD
new file mode 100644
index 000000000..f17c32ffe
--- /dev/null
+++ b/pcr/thermald/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer (Arch): hadrons123 <piruthiviraj at gmail dot com>
+# Contributor (Arch): WonderWoofy <sugar.and.scruffy@gmail.com>,wallnuss <v dot churavy at gmail dot com>
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
+
+pkgname=thermald
+_pkgname=thermal_daemon
+pkgver=1.4.3
+pkgrel=1
+pkgdesc="The Linux Thermal Daemon program from 01.org"
+arch=('i686' 'x86_64')
+url='https://github.com/01org/thermal_daemon'
+license=('GPL2')
+makedepends=('systemd')
+depends=('dbus-glib>=0.94' 'libxml2>=2.4')
+backup=('etc/thermald/thermal-conf.xml')
+conflicts=('thermald')
+provides=('thermald')
+source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz"
+ 'modules-load-thermald.conf')
+sha256sums=('566595eb2c56679d463be5a65d612de90968248054122bb390d0bc902ba7b762'
+ '0155e1eb459306d251a5a049ffc6c11e144fa8caa75901ac5fa20bd52e05d515')
+build() {
+ cd "${_pkgname}-${pkgver}"
+ ./autogen.sh
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --sbindir=/usr/bin
+ make
+}
+
+package() {
+ cd "${_pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+ install -Dm644 "${srcdir}/modules-load-thermald.conf" "${pkgdir}/usr/lib/modules-load.d/thermald.conf"
+
+ # Remove Upstart related files
+ rm -r "${pkgdir}/etc/init"
+}
diff --git a/pcr/thermald/modules-load-thermald.conf b/pcr/thermald/modules-load-thermald.conf
new file mode 100644
index 000000000..a8b98118a
--- /dev/null
+++ b/pcr/thermald/modules-load-thermald.conf
@@ -0,0 +1,2 @@
+msr
+coretemp
diff --git a/pcr/xf86-video-qxl/PKGBUILD b/pcr/xf86-video-qxl/PKGBUILD
index 8c827e6fc..2f2d6c6ba 100644
--- a/pcr/xf86-video-qxl/PKGBUILD
+++ b/pcr/xf86-video-qxl/PKGBUILD
@@ -5,7 +5,7 @@
pkgname=xf86-video-qxl
pkgver=0.1.4
-pkgrel=3
+pkgrel=3.1
pkgdesc='Xorg X11 qxl video driver'
arch=('x86_64' 'i686')
url='http://www.x.org'
@@ -17,11 +17,11 @@ makedepends=('xorg-server-devel' 'X-ABI-VIDEODRV_VERSION=19' 'spice-protocol'
'xf86dgaproto' 'xproto' 'fontsproto' 'randrproto' 'renderproto'
'videoproto' 'resourceproto' 'scrnsaverproto')
conflicts=('xf86-video-qxl-git' 'X-ABI-VIDEODRV_VERSION<19' 'X-ABI-VIDEODRV_VERSION>=20')
-#validpgpkeys=('94A9F75661F77A6168649B23A9D8C21429AC6C82')
-source=("http://xorg.freedesktop.org/releases/individual/driver/${pkgname}-${pkgver}.tar.bz2" #{,.sig}
+validpgpkeys=('94A9F75661F77A6168649B23A9D8C21429AC6C82')
+source=("http://xorg.freedesktop.org/releases/individual/driver/${pkgname}-${pkgver}.tar.bz2"{,.sig}
'fix-cast.patch')
sha256sums=('e57ad22f0b1daf8979e722be0cc38d351bfcc2e41568edc566d2bade5a621105'
- #'SKIP'
+ 'SKIP'
'30b09971562d82b5bc9dc26e43514ff38e5eaa680c15471194f07c9129e1e0ed')
prepare() {
@@ -38,8 +38,8 @@ build() {
cd "${srcdir}/${pkgname}-${pkgver}/"
./configure \
+ --enable-xspice \
--prefix=/usr
- #--enable-xspice \
make
}
diff --git a/pcr/zfs-utils-git/PKGBUILD b/pcr/zfs-utils-git/PKGBUILD
new file mode 100644
index 000000000..dc032e2c5
--- /dev/null
+++ b/pcr/zfs-utils-git/PKGBUILD
@@ -0,0 +1,64 @@
+# Maintainer (Arch): Jesus Alvarez <jeezusjr at gmail dot com>
+# Contributor (Arch): Kyle Fuller <inbox at kylefuller dot co dot uk>
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
+#
+# This PKGBUILD was generated by the archzfs build scripts located at
+#
+# http://github.com/demizer/archzfs
+#
+# The build script generates and updates the pkgver and _kernel* variables.
+#
+pkgname="zfs-utils-git"
+pkgver=0.6.4.2_r0_g44b5ec8_4.1.6_1
+pkgrel=1
+license=('CDDL')
+pkgdesc="Kernel module support files for the Zettabyte File System."
+depends=("spl-git")
+makedepends=("git")
+arch=("i686" "x86_64")
+url="http://zfsonlinux.org/"
+source=("git+https://github.com/zfsonlinux/zfs.git#commit=44b5ec8f"
+ "zfs-utils.bash-completion-r1"
+ "zfs-utils.initcpio.install"
+ "zfs-utils.initcpio.hook")
+groups=("archzfs-git")
+md5sums=('SKIP'
+ '9ddb0c8a94861f929d0fa741fdc49950'
+ '9ef4841abb85dee611828cc7e6f5c6fe'
+ '62ba32c6853c315ff231c396cf8bfdbb')
+replaces=("zfs-utils")
+provides=("zfs-utils")
+conflicts=("zfs-utils" "zfs-utils-lts")
+
+build() {
+ cd "${srcdir}/zfs"
+ ./autogen.sh
+
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --sbindir=/usr/bin \
+ --libdir=/usr/lib \
+ --datadir=/usr/share \
+ --includedir=/usr/include \
+ --with-udevdir=/lib/udev \
+ --libexecdir=/usr/lib/zfs \
+ --with-config=user
+ make
+}
+
+package() {
+ cd "${srcdir}/zfs"
+ make DESTDIR="${pkgdir}" install
+
+ # Remove uneeded files
+ rm -r "${pkgdir}"/etc/init.d
+ rm -r "${pkgdir}"/usr/lib/dracut
+
+ # move module tree /lib -> /usr/lib
+ cp -r "${pkgdir}"/{lib,usr}
+ rm -r "${pkgdir}"/lib
+
+ install -D -m644 "${srcdir}"/zfs-utils.initcpio.hook "${pkgdir}"/usr/lib/initcpio/hooks/zfs
+ install -D -m644 "${srcdir}"/zfs-utils.initcpio.install "${pkgdir}"/usr/lib/initcpio/install/zfs
+ install -D -m644 "${srcdir}"/zfs-utils.bash-completion-r1 "${pkgdir}"/usr/share/bash-completion/completions/zfs
+}
diff --git a/pcr/zfs-utils-git/zfs-utils.bash-completion-r1 b/pcr/zfs-utils-git/zfs-utils.bash-completion-r1
new file mode 100644
index 000000000..b1aded368
--- /dev/null
+++ b/pcr/zfs-utils-git/zfs-utils.bash-completion-r1
@@ -0,0 +1,391 @@
+# Copyright (c) 2013, Aneurin Price <aneurin.price@gmail.com>
+
+# Permission is hereby granted, free of charge, to any person
+# obtaining a copy of this software and associated documentation
+# files (the "Software"), to deal in the Software without
+# restriction, including without limitation the rights to use,
+# copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following
+# conditions:
+
+# The above copyright notice and this permission notice shall be
+# included in all copies or substantial portions of the Software.
+
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+# OTHER DEALINGS IN THE SOFTWARE.
+
+#if [[ -w /dev/zfs ]]; then
+ __ZFS_CMD="zfs"
+ __ZPOOL_CMD="zpool"
+#else
+# __ZFS_CMD="sudo zfs"
+# __ZPOOL_CMD="sudo zpool"
+#fi
+
+__zfs_get_commands()
+{
+ $__ZFS_CMD 2>&1 | awk '/^\t[a-z]/ {print $1}' | cut -f1 -d '|' | uniq
+}
+
+__zfs_get_properties()
+{
+ $__ZFS_CMD get 2>&1 | awk '$2 == "YES" || $2 == "NO" {print $1}'; echo all name space
+}
+
+__zfs_get_editable_properties()
+{
+ $__ZFS_CMD get 2>&1 | awk '$2 == "YES" {print $1"="}'
+}
+
+__zfs_get_inheritable_properties()
+{
+ $__ZFS_CMD get 2>&1 | awk '$3 == "YES" {print $1}'
+}
+
+__zfs_list_datasets()
+{
+ $__ZFS_CMD list -H -o name -t filesystem,volume
+}
+
+__zfs_list_filesystems()
+{
+ $__ZFS_CMD list -H -o name -t filesystem
+}
+
+__zfs_match_snapshot()
+{
+ local base_dataset=${cur%@*}
+ if [[ $base_dataset != $cur ]]
+ then
+ $__ZFS_CMD list -H -o name -t snapshot -d 1 $base_dataset
+ else
+ $__ZFS_CMD list -H -o name -t filesystem,volume | awk '{print $1"@"}'
+ fi
+}
+
+__zfs_match_explicit_snapshot()
+{
+ local base_dataset=${cur%@*}
+ if [[ $base_dataset != $cur ]]
+ then
+ $__ZFS_CMD list -H -o name -t snapshot -d 1 $base_dataset
+ fi
+}
+
+__zfs_match_multiple_snapshots()
+{
+ local existing_opts=$(expr "$cur" : '\(.*\)[%,]')
+ if [[ $existing_opts ]]
+ then
+ local base_dataset=${cur%@*}
+ if [[ $base_dataset != $cur ]]
+ then
+ local cur=${cur##*,}
+ if [[ $cur =~ ^%|%.*% ]]
+ then
+ # correct range syntax is start%end
+ return 1
+ fi
+ local range_start=$(expr "$cur" : '\(.*%\)')
+ $__ZFS_CMD list -H -o name -t snapshot -d 1 $base_dataset | sed 's$.*@$'$range_start'$g'
+ fi
+ else
+ __zfs_match_explicit_snapshot; __zfs_list_datasets
+ fi
+}
+
+__zfs_list_volumes()
+{
+ $__ZFS_CMD list -H -o name -t volume
+}
+
+__zfs_argument_chosen()
+{
+ local word property
+ for word in $(seq $((COMP_CWORD-1)) -1 2)
+ do
+ local prev="${COMP_WORDS[$word]}"
+ if [[ ${COMP_WORDS[$word-1]} != -[tos] ]]
+ then
+ if [[ "$prev" == [^,]*,* ]] || [[ "$prev" == *[@:]* ]]
+ then
+ return 0
+ fi
+ for property in $@
+ do
+ if [[ $prev == "$property" ]]
+ then
+ return 0
+ fi
+ done
+ fi
+ done
+ return 1
+}
+
+__zfs_complete_ordered_arguments()
+{
+ local list1=$1
+ local list2=$2
+ local cur=$3
+ local extra=$4
+ if __zfs_argument_chosen $list1
+ then
+ COMPREPLY=($(compgen -W "$list2 $extra" -- "$cur"))
+ else
+ COMPREPLY=($(compgen -W "$list1 $extra" -- "$cur"))
+ fi
+}
+
+__zfs_complete_multiple_options()
+{
+ local options=$1
+ local cur=$2
+
+ COMPREPLY=($(compgen -W "$options" -- "${cur##*,}"))
+ local existing_opts=$(expr "$cur" : '\(.*,\)')
+ if [[ $existing_opts ]]
+ then
+ COMPREPLY=( "${COMPREPLY[@]/#/${existing_opts}}" )
+ fi
+}
+
+__zfs_complete_switch()
+{
+ local options=$1
+ if [[ ${cur:0:1} == - ]]
+ then
+ COMPREPLY=($(compgen -W "-{$options}" -- "$cur"))
+ return 0
+ else
+ return 1
+ fi
+}
+
+__zfs_complete()
+{
+ local cur prev cmd cmds
+ COMPREPLY=()
+ # Don't split on colon
+ _get_comp_words_by_ref -n : -c cur -p prev -w COMP_WORDS -i COMP_CWORD
+ cmd="${COMP_WORDS[1]}"
+
+ if [[ ${prev##*/} == zfs ]]
+ then
+ cmds=$(__zfs_get_commands)
+ COMPREPLY=($(compgen -W "$cmds -?" -- "$cur"))
+ return 0
+ fi
+
+ case "${cmd}" in
+ clone)
+ case "${prev}" in
+ -o)
+ COMPREPLY=($(compgen -W "$(__zfs_get_editable_properties)" -- "$cur"))
+ ;;
+ *)
+ if ! __zfs_complete_switch "o,p"
+ then
+ if __zfs_argument_chosen
+ then
+ COMPREPLY=($(compgen -W "$(__zfs_list_datasets)" -- "$cur"))
+ else
+ COMPREPLY=($(compgen -W "$(__zfs_match_snapshot)" -- "$cur"))
+ fi
+ fi
+ ;;
+ esac
+ ;;
+ get)
+ case "${prev}" in
+ -d)
+ COMPREPLY=($(compgen -W "" -- "$cur"))
+ ;;
+ -t)
+ __zfs_complete_multiple_options "filesystem volume snapshot all" "$cur"
+ ;;
+ -s)
+ __zfs_complete_multiple_options "local default inherited temporary none" "$cur"
+ ;;
+ -o)
+ __zfs_complete_multiple_options "name property value source received all" "$cur"
+ ;;
+ *)
+ if ! __zfs_complete_switch "H,r,p,d,o,t,s"
+ then
+ if __zfs_argument_chosen $(__zfs_get_properties)
+ then
+ COMPREPLY=($(compgen -W "$(__zfs_match_explicit_snapshot) $(__zfs_list_datasets)" -- "$cur"))
+ else
+ __zfs_complete_multiple_options "$(__zfs_get_properties)" "$cur"
+ fi
+ fi
+ ;;
+ esac
+ ;;
+ inherit)
+ if ! __zfs_complete_switch "r"
+ then
+ __zfs_complete_ordered_arguments "$(__zfs_get_inheritable_properties)" "$(__zfs_match_explicit_snapshot) $(__zfs_list_datasets)" $cur
+ fi
+ ;;
+ list)
+ case "${prev}" in
+ -d)
+ COMPREPLY=($(compgen -W "" -- "$cur"))
+ ;;
+ -t)
+ __zfs_complete_multiple_options "filesystem volume snapshot all" "$cur"
+ ;;
+ -o)
+ __zfs_complete_multiple_options "$(__zfs_get_properties)" "$cur"
+ ;;
+ -s|-S)
+ COMPREPLY=($(compgen -W "$(__zfs_get_properties)" -- "$cur"))
+ ;;
+ *)
+ if ! __zfs_complete_switch "H,r,d,o,t,s,S"
+ then
+ COMPREPLY=($(compgen -W "$(__zfs_match_explicit_snapshot) $(__zfs_list_datasets)" -- "$cur"))
+ fi
+ ;;
+ esac
+ ;;
+ promote)
+ COMPREPLY=($(compgen -W "$(__zfs_list_filesystems)" -- "$cur"))
+ ;;
+ rollback)
+ if ! __zfs_complete_switch "r,R,f"
+ then
+ COMPREPLY=($(compgen -W "$(__zfs_match_snapshot)" -- "$cur"))
+ fi
+ ;;
+ send)
+ if ! __zfs_complete_switch "d,n,P,p,R,v,i,I"
+ then
+ COMPREPLY=($(compgen -W "$(__zfs_match_snapshot)" -- "$cur"))
+ fi
+ ;;
+ snapshot)
+ case "${prev}" in
+ -o)
+ COMPREPLY=($(compgen -W "$(__zfs_get_editable_properties)" -- "$cur"))
+ ;;
+ *)
+ if ! __zfs_complete_switch "o,r"
+ then
+ COMPREPLY=($(compgen -W "$(__zfs_list_datasets | awk '{print $1"@"}')" -- "$cur"))
+ fi
+ ;;
+ esac
+ ;;
+ set)
+ __zfs_complete_ordered_arguments "$(__zfs_get_editable_properties)" "$(__zfs_match_explicit_snapshot) $(__zfs_list_datasets)" $cur
+ ;;
+ upgrade)
+ case "${prev}" in
+ -a|-V|-v)
+ COMPREPLY=($(compgen -W "" -- "$cur"))
+ ;;
+ *)
+ if ! __zfs_complete_switch "a,V,v,r"
+ then
+ COMPREPLY=($(compgen -W "$(__zfs_list_filesystems)" -- "$cur"))
+ fi
+ ;;
+ esac
+ ;;
+ destroy)
+ if ! __zfs_complete_switch "d,f,n,p,R,r,v"
+ then
+ __zfs_complete_multiple_options "$(__zfs_match_multiple_snapshots)" $cur
+ fi
+ ;;
+ *)
+ COMPREPLY=($(compgen -W "$(__zfs_match_explicit_snapshot) $(__zfs_list_datasets)" -- "$cur"))
+ ;;
+ esac
+ __ltrim_colon_completions "$cur"
+ return 0
+}
+
+__zpool_get_commands()
+{
+ $__ZPOOL_CMD 2>&1 | awk '/^\t[a-z]/ {print $1}' | uniq
+}
+
+__zpool_get_properties()
+{
+ $__ZPOOL_CMD get 2>&1 | awk '$2 == "YES" || $2 == "NO" {print $1}'; echo all
+}
+
+__zpool_get_editable_properties()
+{
+ $__ZPOOL_CMD get 2>&1 | awk '$2 == "YES" {print $1"="}'
+}
+
+__zpool_list_pools()
+{
+ $__ZPOOL_CMD list -H -o name
+}
+
+__zpool_complete()
+{
+ local cur prev cmd cmds
+ COMPREPLY=()
+ cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ cmd="${COMP_WORDS[1]}"
+
+ if [[ ${prev##*/} == zpool ]]
+ then
+ cmds=$(__zpool_get_commands)
+ COMPREPLY=($(compgen -W "$cmds" -- "$cur"))
+ return 0
+ fi
+
+ case "${cmd}" in
+ get)
+ __zfs_complete_ordered_arguments "$(__zpool_get_properties)" "$(__zpool_list_pools)" $cur
+ return 0
+ ;;
+ import)
+ if [[ $prev == -d ]]
+ then
+ _filedir -d
+ else
+ COMPREPLY=($(compgen -W "$(__zpool_list_pools) -d" -- "$cur"))
+ fi
+ return 0
+ ;;
+ set)
+ __zfs_complete_ordered_arguments "$(__zpool_get_editable_properties)" "$(__zpool_list_pools)" $cur
+ return 0
+ ;;
+ add|attach|clear|create|detach|offline|online|remove|replace)
+ local pools="$(__zpool_list_pools)"
+ if __zfs_argument_chosen $pools
+ then
+ _filedir
+ else
+ COMPREPLY=($(compgen -W "$pools" -- "$cur"))
+ fi
+ return 0
+ ;;
+ *)
+ COMPREPLY=($(compgen -W "$(__zpool_list_pools)" -- "$cur"))
+ return 0
+ ;;
+ esac
+
+}
+
+complete -F __zfs_complete zfs
+complete -F __zpool_complete zpool
diff --git a/pcr/zfs-utils-git/zfs-utils.initcpio.hook b/pcr/zfs-utils-git/zfs-utils.initcpio.hook
new file mode 100644
index 000000000..3a928944d
--- /dev/null
+++ b/pcr/zfs-utils-git/zfs-utils.initcpio.hook
@@ -0,0 +1,100 @@
+ZPOOL_FORCE=""
+ZPOOL_IMPORT_FLAGS=""
+
+zfs_get_bootfs () {
+ for zfs_dataset in $(/usr/bin/zpool list -H -o bootfs); do
+ case ${zfs_dataset} in
+ "" | "-")
+ # skip this line/dataset
+ ;;
+ "no pools available")
+ return 1
+ ;;
+ *)
+ ZFS_DATASET=${zfs_dataset}
+ return 0
+ ;;
+ esac
+ done
+ return 1
+}
+
+zfs_mount_handler () {
+ local node=$1
+ if [ "$ZFS_DATASET" = "bootfs" ] ; then
+ if ! zfs_get_bootfs ; then
+ # Lets import everything and try again
+ /usr/bin/zpool import $ZPOOL_IMPORT_FLAGS -N -a $ZPOOL_FORCE
+ if ! zfs_get_bootfs ; then
+ echo "ZFS: Cannot find bootfs."
+ return 1
+ fi
+ fi
+ fi
+
+ local pool="${ZFS_DATASET%%/*}"
+ local rwopt_exp=${rwopt:-ro}
+
+ if ! "/usr/bin/zpool" list -H $pool 2>&1 > /dev/null ; then
+ if [ "$rwopt_exp" != "rw" ]; then
+ msg "ZFS: Importing pool $pool readonly."
+ ZPOOL_IMPORT_FLAGS="$ZPOOL_IMPORT_FLAGS -o readonly=on"
+ else
+ msg "ZFS: Importing pool $pool."
+ fi
+
+ if ! "/usr/bin/zpool" import $ZPOOL_IMPORT_FLAGS -N $pool $ZPOOL_FORCE ; then
+ echo "ZFS: Unable to import pool $pool."
+ return 1
+ fi
+ fi
+
+ local mountpoint=$("/usr/bin/zfs" get -H -o value mountpoint $ZFS_DATASET)
+ if [ "$mountpoint" = "legacy" ] ; then
+ mount -t zfs -o ${rwopt_exp} "$ZFS_DATASET" "$node"
+ else
+ mount -o zfsutil,${rwopt_exp} -t zfs "$ZFS_DATASET" "$node"
+ fi
+}
+
+run_hook() {
+ # Force import the pools, useful if the pool has not properly been exported
+ # using 'zpool export <pool>'
+ [[ $zfs_force == 1 ]] && ZPOOL_FORCE='-f'
+ [[ "$zfs_import_dir" != "" ]] && ZPOOL_IMPORT_FLAGS="$ZPOOL_IMPORT_FLAGS -d $zfs_import_dir"
+
+ if [ "$root" = 'zfs' ]; then
+ mount_handler='zfs_mount_handler'
+ fi
+
+ case $zfs in
+ "")
+ # skip this line/dataset
+ ;;
+ auto|bootfs)
+ ZFS_DATASET='bootfs'
+ mount_handler="zfs_mount_handler"
+ ;;
+ *)
+ ZFS_DATASET=$zfs
+ mount_handler="zfs_mount_handler"
+ ;;
+ esac
+
+ if [ ! -f "/etc/hostid" ] ; then
+ echo "ZFS: No hostid found on kernel command line or /etc/hostid. ZFS pools may not import correctly."
+ fi
+
+ # Allow up to 10 seconds for zfs device to show up
+ for i in 1 2 3 4 5 6 7 8 9 10; do
+ [ -c "/dev/zfs" ] && break
+ sleep 1
+ done
+}
+
+
+run_latehook () {
+ /usr/bin/zpool import -N -a $ZPOOL_FORCE
+}
+
+# vim:set ts=4 sw=4 ft=sh et:
diff --git a/pcr/zfs-utils-git/zfs-utils.initcpio.install b/pcr/zfs-utils-git/zfs-utils.initcpio.install
new file mode 100644
index 000000000..c128d1006
--- /dev/null
+++ b/pcr/zfs-utils-git/zfs-utils.initcpio.install
@@ -0,0 +1,104 @@
+#!/bin/bash
+
+build() {
+ map add_module \
+ zavl \
+ znvpair \
+ zunicode \
+ zcommon \
+ zfs \
+ zpios \
+ spl \
+ splat \
+ zlib_deflate
+
+ map add_binary \
+ arcstat.py \
+ dbufstat.py \
+ fsck.zfs \
+ mount.zfs \
+ zdb \
+ zed \
+ zfs \
+ zhack \
+ zinject \
+ zpios \
+ zpool \
+ zstreamdump \
+ ztest \
+ splat \
+ hostid \
+ /lib/udev/vdev_id \
+ /lib/udev/zvol_id
+
+ map add_file \
+ /lib/udev/rules.d/60-zvol.rules \
+ /lib/udev/rules.d/69-vdev.rules \
+ /lib/udev/rules.d/90-zfs.rules
+
+ map add_dir \
+ /etc/zfs/zed.d
+
+ add_runscript
+
+ # allow mount(8) to "autodetect" ZFS
+ echo 'zfs' >>"$BUILDROOT/etc/filesystems"
+
+ [[ -f /etc/zfs/zpool.cache ]] && add_file "/etc/zfs/zpool.cache"
+ [[ -f /etc/modprobe.d/zfs.conf ]] && add_file "/etc/modprobe.d/zfs.conf"
+ [[ -f /etc/hostid ]] && add_file "/etc/hostid"
+}
+
+help() {
+ cat<<HELPEOF
+This hook allows you to use ZFS as your root filesystem.
+
+Command Line Setup:
+
+ You can append the following arguments to your kernel parameters list. See
+ https://wiki.archlinux.org/index.php/Kernel_parameters for more information.
+
+ To use ZFS as your boot filesystem:
+
+ zfs=bootfs or zfs=auto or root=zfs
+
+ To use a pool or dataset:
+
+ zfs=<pool/dataset>
+
+ To force importing of a ZFS pool:
+
+ zfs_force=1
+
+ If set to 1, this will use "zpool import -f" when attempting to import
+ pools.
+
+ To search for devices in a directory other than "/dev":
+
+ zfs_import_dir=/dev/disk/by-uuid
+ or
+ zfs_import_dir=/dev/disk/by-partuuid
+ or
+ zfs_import_dir=/dev/disk/by-path
+ etc.
+
+ Following initcpio convention, the 'rw' option must be specified to load the
+ pool as read/write. Pools are loaded as read only by default.
+
+Examples:
+
+ To use bootfs on your pool, use
+
+ zfs=bootfs rw
+
+ This will setup your root using tank/root zfs pool.
+
+ zfs=tank/root rw
+
+If you want to set properties for zfs-on-linux module, you should add them to
+/etc/modprobe.d/zfs.conf and then rebuild initcpio.
+
+HELPEOF
+}
+
+# vim: set ts=4 sw=4 ft=sh et: