diff options
Diffstat (limited to 'pcr')
229 files changed, 4246 insertions, 7466 deletions
diff --git a/pcr/base91/PKGBUILD b/pcr/base91/PKGBUILD new file mode 100644 index 000000000..424f638e7 --- /dev/null +++ b/pcr/base91/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Luke R. <g4jc@openmailbox.org> GPG: rsa4096/3EAE8697 +# Contributor (Arch): Christian Hesse <mail@eworm.de> +# Contributor (Arch): Christoph Zeiler <rabyteNOSPAM _at_ gmx.d0t.net> +# Contributor (Arch): Nathan Owe <ndowens04+AUR at gmail.com> +# Contributor (Arch): Daniel J Griffiths <ghost1227@archlinux.us> + +pkgname=base91 +pkgver=0.6.0 +pkgrel=6 +pkgdesc='An advanced method for encoding binary data to ASCII text' +arch=('i686' 'x86_64') +url='http://base91.sourceforge.net/' +license=('BSD') +source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz") +sha512sums=('0785178bcf556c02c03dfb467eb936fa84d92f070827f05d356bca4e8558a2f73462228f157dc8242e31305d8a61bfbabf92706974fc3bbec21c4076adc0e37e') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + + sed -i '/^\(C\|LD\)FLAGS/s/=/+=/' Makefile + make +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver} + + make prefix='/usr' DESTDIR="${pkgdir}" install + install -D -m0644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +}
\ No newline at end of file diff --git a/pcr/cjdns-git/PKGBUILD b/pcr/cjdns-git/PKGBUILD index 8526539ac..4daf53970 100644 --- a/pcr/cjdns-git/PKGBUILD +++ b/pcr/cjdns-git/PKGBUILD @@ -6,7 +6,7 @@ _pkgname=cjdns pkgname=$_pkgname-git -pkgver=0.3.3403 +pkgver=0.3.3408 pkgrel=1 pkgdesc='A routing engine designed for security, scalability, speed and ease of use' url='https://github.com/cjdelisle/cjdns' diff --git a/pcr/cmix/PKGBUILD b/pcr/cmix/PKGBUILD new file mode 100644 index 000000000..e46b8d14f --- /dev/null +++ b/pcr/cmix/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Luke R. <g4jc@openmailbox.org> GPG: rsa4096/3EAE8697 + +pkgname=cmix +pkgver=7 +pkgrel=1 +pkgdesc="cmix is a lossless data compression program aimed at optimizing compression ratio at the cost of high CPU/memory usage." +arch=('i686' 'x86_64') +url="http://www.byronknoll.com/cmix.html" +license=('GPL3') +makedepends=('gcc') +source=("http://www.byronknoll.com/$pkgname-v$pkgver.zip") +sha512sums=('1c4f18b1fc81874d19ba136633c9b3896c1d87a1a25bcb972951b71756dcfe0ea57eb6a54ee4ce6928aaf185408e7d68262fde28d6750a7ea38272d687704df6') + +build() { + cd $pkgname + make +} + +package() { + cd $pkgname + msg "Install $pkgname in /usr/bin" + mkdir -p $pkgdir/usr/bin + install -D -m 755 "$srcdir/$pkgname/$pkgname" \ + "$pkgdir/usr/bin/$pkgname" + install -D -m0444 $srcdir/$pkgname/COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +}
\ No newline at end of file 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..e49739393 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.r7490.368867d pkgrel=1 pkgdesc='A GameCube / Wii / Triforce emulator' arch=('x86_64') diff --git a/pcr/emacs-git/PKGBUILD b/pcr/emacs-git/PKGBUILD index f036e9c44..cfaa5e813 100644 --- a/pcr/emacs-git/PKGBUILD +++ b/pcr/emacs-git/PKGBUILD @@ -7,14 +7,14 @@ # pkgname=emacs-git -pkgver=25.0.50.r121790 +pkgver=25.0.50.r122479 pkgrel=1 pkgdesc="GNU Emacs. Official git trunk." arch=('i686' 'x86_64') url="http://www.gnu.org/software/emacs/" license=('GPL') depends=('librsvg' 'gpm' 'giflib' 'libxpm' 'libotf' 'm17n-lib' - 'gtk3' 'hicolor-icon-theme' 'desktop-file-utils' + 'gtk3' 'cairo' 'hicolor-icon-theme' 'desktop-file-utils' 'alsa-lib' 'imagemagick' 'gnutls') makedepends=('git') conflicts=('emacs') @@ -53,6 +53,7 @@ build() { --with-sound=alsa \ --without-gconf \ --with-x-toolkit=gtk3 \ + --with-cairo \ --with-xft # Using "make" instead of "make bootstrap" makes incremental diff --git a/pcr/firejail/001-addmoresecurity-firefox.patch b/pcr/firejail/001-addmoresecurity-firefox.patch new file mode 100644 index 000000000..4a7641e9a --- /dev/null +++ b/pcr/firejail/001-addmoresecurity-firefox.patch @@ -0,0 +1,35 @@ +*** firefox.profile 2015-07-02 06:53:18.000000000 -0400 +--- firefox-patched.profile 2015-08-21 22:14:06.891765532 -0400 +*************** +*** 2,9 **** + include /etc/firejail/disable-mgmt.inc + include /etc/firejail/disable-secret.inc + include /etc/firejail/disable-common.inc .mozilla + caps.drop all + seccomp + netfilter +! noroot +! +--- 2,21 ---- + include /etc/firejail/disable-mgmt.inc + include /etc/firejail/disable-secret.inc + include /etc/firejail/disable-common.inc .mozilla ++ blacklist ${HOME}/.bash_history ++ blacklist ${HOME}/.ssh ++ blacklist ${HOME}/.sylpheed-2.0 ++ blacklist ${HOME}/.gnupg ++ blacklist ${HOME}/.mcabber ++ blacklist ${HOME}/.weechat ++ blacklist ${HOME}/.purple ++ blacklist ${HOME}/*.kdb ++ blacklist ${HOME}/*.dat ++ blacklist ${HOME}/*.key ++ blacklist ${HOME}/.electrum* ++ blacklist ${HOME}/.config/ ++ blacklist ${HOME}/.thumnails/ ++ blacklist ${HOME}/.zsh_history + caps.drop all + seccomp + netfilter +! noroot +\ No newline at end of file diff --git a/pcr/firejail/PKGBUILD b/pcr/firejail/PKGBUILD index 00503d8ad..d0efc4613 100644 --- a/pcr/firejail/PKGBUILD +++ b/pcr/firejail/PKGBUILD @@ -3,30 +3,50 @@ pkgname=firejail pkgver=0.9.28 -pkgrel=1 +pkgrel=2 pkgdesc="Linux namespaces sandbox program" -arch=(i686 x86_64) +arch=('i686' 'x86_64' 'armv7h') license=(GPL2) url=https://l3net.wordpress.com/projects/firejail/ -backup=(etc/firejail/login.users) -source=("https://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgname-$pkgver-rc1.tar.bz2" +source=("https://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgname-$pkgver.tar.bz2" 'PKGBUILD' -'PKGBUILD.sig') +'PKGBUILD.sig' +'001-addmoresecurity-firefox.patch' +"$pkgname.install") +install=("$pkgname.install") validpgpkeys=('CB6E213A349B8DF9E96B622AC3F4FFCF3EAE8697') # PKGBUILD Maintainer's key -sha512sums=('11343f51e1985483896a65dc21c4d9f82fe863649b817bab3cf748a198f67687114966558abb6029e0055984ce59262022f33a9bf74ba27ed2425592b32e5432' +sha512sums=('a0c6715cbaf1043f2ea92b33da5884b6ed0993b3e5d03a3edd181b6663a696a2a60a44e0ad39fc9fcfd50d79eb5acb2f0f33452467bf50912f558ec23ebfc125' + 'SKIP' + 'SKIP' + 'b1ce36df78882e9e3a9b9a6b043ce0c11b4de71cf400abf19ee808d45081f9bfc6a56911bc5befae9ac374e88fb1a57326770781b3aedb2fdd54a95e8443a441' + 'f573592cc977cc739d2913f75ebe1ab2642d1d7d638706c56bca792dce6014d88c8789341ddeae59307aa94f72f3ab178299652b71a62804b1b674433a89ec21') +whirlpoolsums=('84792b384d4e578347a859354d5639be24c3b370c3c6c07d245bbd35b7d6adcac8f5f382e92dec55a3a53cc68ea00fb7071be01aa390b37df5e0768f00efd90e' 'SKIP' -'SKIP') -whirlpoolsums=('02f9c641e91b4959383f3d61e03cc467a85f5bd7bdec52b137c061cec144573f7f3ecab47fa390aac6f497423fdac3adfd992e2851b32f9435c0e746fba730ca' 'SKIP' -'SKIP') +'66ba5f7ca349c63170bd7ac83b7bc0c9472ad5bb18c243842f969f40475ebbb84c37bd3b837f21058294dc5da14674d07b74026dbcc324324fb94b6a8abfee4f' +'8f6848ad73bb498cb6a4f754a55094629443e7f56d669990e8e3f33415ba723d7ba47eb65737dd3ed918299665bf9bd455c25b5005caa74bb8c8dbb5e02ab4dc') prepare() { - cd "${srcdir}/${pkgname}-${pkgver}-rc1" + cd "${srcdir}/${pkgname}-${pkgver}" sed -i '\|bash -c "if \[ ! -f /etc/firejail/login\.users | s|bash -c ".*"$|install -c -m 0644 etc/login.users $(DESTDIR)/etc/firejail/\.|' Makefile.in ## Fix "backup entry file not in packag" warning. + patch ${srcdir}/${pkgname}-${pkgver}/etc/firefox.profile $srcdir/001-addmoresecurity-firefox.patch ## Add additional blacklists to FireFox profile for more security + + ## Remove non-libre program profiles. + rm ${srcdir}/${pkgname}-${pkgver}/etc/dropbox.profile + sed -i 's|install -c -m 0644 etc/dropbox.profile $(DESTDIR)/etc/firejail/.||' ${srcdir}/${pkgname}-${pkgver}/Makefile + sed -i 's|install -c -m 0644 etc/dropbox.profile $(DESTDIR)/etc/firejail/.||' ${srcdir}/${pkgname}-${pkgver}/Makefile.in + + rm ${srcdir}/${pkgname}-${pkgver}/etc/chromium.profile + sed -i 's|install -c -m 0644 etc/chromium.profile $(DESTDIR)/etc/firejail/.||' ${srcdir}/${pkgname}-${pkgver}/Makefile + sed -i 's|install -c -m 0644 etc/chromium.profile $(DESTDIR)/etc/firejail/.||' ${srcdir}/${pkgname}-${pkgver}/Makefile.in + + rm ${srcdir}/${pkgname}-${pkgver}/etc/chromium-browser.profile + sed -i 's|install -c -m 0644 etc/chromium-browser.profile $(DESTDIR)/etc/firejail/.||' ${srcdir}/${pkgname}-${pkgver}/Makefile + sed -i 's|install -c -m 0644 etc/chromium-browser.profile $(DESTDIR)/etc/firejail/.||' ${srcdir}/${pkgname}-${pkgver}/Makefile.in } build() { - cd "${srcdir}/${pkgname}-${pkgver}-rc1" + cd "${srcdir}/${pkgname}-${pkgver}" # fix build export CFLAGS=${CFLAGS/-fsanitize=undefined/} ./configure --prefix=/usr @@ -34,6 +54,6 @@ build() { } package() { - cd "${srcdir}/${pkgname}-${pkgver}-rc1" + cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install -}
\ No newline at end of file +} diff --git a/pcr/firejail/PKGBUILD.sig b/pcr/firejail/PKGBUILD.sig Binary files differindex 3704c880c..b245ce73e 100644 --- a/pcr/firejail/PKGBUILD.sig +++ b/pcr/firejail/PKGBUILD.sig diff --git a/pcr/firejail/firejail.install b/pcr/firejail/firejail.install new file mode 100644 index 000000000..e154e7dd7 --- /dev/null +++ b/pcr/firejail/firejail.install @@ -0,0 +1,119 @@ +pre_upgrade() { +echo "Checking 26 firejail profiles for user modification, backing up as needed..." + FilesToCheck=( +'/etc/firejail/audacious.profile' +'/etc/firejail/clementine.profile' +'/etc/firejail/deadbeef.profile' +'/etc/firejail/deluge.profile' +'/etc/firejail/disable-common.inc' +'/etc/firejail/disable-mgmt.inc' +'/etc/firejail/disable-secret.inc' +'/etc/firejail/empathy.profile' +'/etc/firejail/evince.profile' +'/etc/firejail/filezilla.profile' +'/etc/firejail/firefox.profile' +'/etc/firejail/generic.profile' +'/etc/firejail/gnome-mplayer.profile' +'/etc/firejail/login.users' +'/etc/firejail/midori.profile' +'/etc/firejail/opera.profile' +'/etc/firejail/pidgin.profile' +'/etc/firejail/qbittorrent.profile' +'/etc/firejail/quassel.profile' +'/etc/firejail/rhythmbox.profile' +'/etc/firejail/server.profile' +'/etc/firejail/thunderbird.profile' +'/etc/firejail/totem.profile' +'/etc/firejail/transmission-gtk.profile' +'/etc/firejail/transmission-qt.profile' +'/etc/firejail/vlc.profile' +'/etc/firejail/xchat.profile') + +OriginalFileHashes=( +'53d86924bad531072cf279faa63e0a6a6c6ccb22aeae2ba7ddfc7dcab8b09b7a563aeab758cbcbf13ec5f7319066bb0fec3ba2356177e3b8449c58ee5929a766' +'2c13c77de38d6a7c6513ee754e6cd3ca446019b0716b3db2fb90bb3befcc1bfa2de80a06255048e5f82571de076690ddd8c543ab12104f6843a520e7de042147' +'9572631ca9551866c2af91f0fed148e2be6d9ec34dff7773d6589c7245d61e6d17f7421176cbfdeadc08289b0a0c4d74453e2d79eb847355506657e98440b924' +'f730544fdc1a2db051cb73c02722c7f87f4d4536db6f853d1852ee19f527c17abb1ed91879a2b593d2704f8e63e99c4a46640187fe882d4aaced4f7c03c06c46' +'fa89a0ccaa3d3018273b2b66cb3b6e21f0b4582ecde7139a2db3523497a4da14af8ccb969707a32f7ce2f4083405a942ce9af4212948469bd1b0cd8b438e525a' +'d0808badde2e695b77900cf13f89503e23dc2a233e2489e8590551adef061390bdb77c815a7fb59a48a103340ea288832d00dd0a8ce78bd24595ca2f352c9f8f' +'52f550486c4baa03c1327d75765c0edcc3397113fab4190e7644c53112810e5bbcc89cfc8b2c1147a724366a5dffd69dce334daaf4f3ae8e754e35bc38daeedc' +'33251ba45f3f18397956ec28c6ba55e94c8638bf5b1c1de2c49d5383fc2d519f21b5e757e22f747811c1335e745607968aac1fdd93438276223c6b4c5b2bd954' +'8f7f282ada4b557b78b33dd788753daf46b10dbdd2f7f72c25fc787ca98cf99d8a45c0db54d60fa0b1bd912cbbda95bb845d373c865e9b1884b1d3e480ec2b85' +'1088d1921b3c335789fc38e05fe7a898c9615f8fb769d388b6c6d02280891dc64b8b648351b2d5edff62298b46ed21792c0ffc611858697ae02455c5ae8993a7' +'c7b3bca2f1f9fa0a2769754fc8c341a5e2a9e67613a3329e59797a93dcb5fc41c4c8d08196c41d236e4878bd48fcd44fd1737aa6971a4df2a192da522b96cac4' +'a60b88a35228f3f8b4a3acd3dce527f3b873b095f1cf28a701baa5b310ad8b85e36ad633c8ddf8c2378a1d40c634164ada63764da1f9750507e55717affe8f46' +'16777da4a6552b7a39909d7faae0aff13a7e82887409a548433a0575443cf45fa28ecfdd8d43e146a6afa5a5a7298c64aa878bc6d82d2a7b8a2ca666cdb8d2c4' +'672fa8b25ed28a07efb41fad6415c9fa96ce4bf4f4a1a6412595afb309ef6c1e67033ee256f997c32e9abe25bd6a100160ff12f2235c9be289c223547d03ca95' +'6aa7ee675b9607313056f9ab70085e9bac7c1cc3b88f3134da3bb7052100b39ed6553b261044be3f87c283543f1231eda1145392536f2a02cf97ba7d5657e969' +'1864b178483193f7a5360685573ce1c60f383924a2dd34dcd218f063b4ce6a12ca4a065a9881f685c11f7ce63cc75b822836491fcbe042c0825d432bc4fb58df' +'8be0eef7d351f68343ec3cb14dbafab0bcac604b216f5f18f3624be1270c2a223b5a4560197c0e565c40005f28a640743736d873bf3bc47dcb3df6e5746e9031' +'16ed951fafad9d07c294b80be98f694fdc47dd525c8373ac83317cb0f1665bfa70111a7eaeeda09eff3544b45507277c12c9d8618958ec38b17e1307daccca70' +'c89b5fcd02d17fcb65661bcd8ac7d230f11b8ed0c50db864bd70e4d077bac1a210526bfc4ced54dbd5e5fc62520b5b9d51c3ede841c1fc1a29afceece9062303' +'8eb8ed39164a8d2a50c06447da745be719eb02005dcdc483d5751a8e2f2390f7329845f3e9022c6fb71814f67b31aa7468fe958d2783c67276e3fc3120bef04b' +'bcc313205c260117e40fac28fc1a282b5f36a97bd7252780c628bfc48971ec2aadd99209442600d3b52b78e932982549baf0c9ba1e791f3ea7fe451e7e7a03a3' +'d739970917e87e89dc746e749f0c8bfe6cce22dd1864d2f115758627f934916aabe5d01c3c5cbe60866a1c0a1d6908df2cd1126d1d78301216678f9ab13f2a9a' +'8a65f7e84c2071869a64a493fe6ce74ef77b50f8f34c6b6cdd4e987740a3628cbf2dd02791ff89d53b7b01c1857ab4d8dba8fd5b30e82ccecb294d6bcf4e4bf3' +'25800523958101d249b96c994fb33bb1e2c646f6af4af6adcedf9aab993a5ae3d3a72dcc340cbabcb9bc0d07cb64155ae21ba6ce87a984594741b1bb806a0b75' +'a2ad0be0e77719ad5bea6167692629f5c8cc5cfaecbdf98ecf32ddd8877aac443ddd20a7201adab202b3497394c700c69de533eb493f8203ebb36b887f78d258' +'a28765a1d99dadcf4bf47774b18305167f81d136b8588420b675ee998f5d0077018d9142269968912b5e4a91559ab3a9e4fe9e8c4b0ed11cb4faa543042fb63d' +'f4ee69f5ef1487ae2b269e43c9bc61fefac168134611bcd10f3dfc2b259430815391a3e89724e8f4830d4a9effe8827ec49237453421f4ffb4f276c0362043ef') + +## Uses above arrays to check if file's original hash matches, if not the file was edited, so we save a backup and notify the user. + +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[0]} | awk '{print $1}')" = ${OriginalFileHashes[0]} ]] || { cat "${FilesToCheck[0]}" > "${FilesToCheck[0]}.pacsave" ; echo "Backup saved: ${FilesToCheck[0]}.pacsave"; } + +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[1]} | awk '{print $1}')" = ${OriginalFileHashes[1]} ]] || { cat "${FilesToCheck[1]}" > "${FilesToCheck[1]}.pacsave" ; echo "Backup saved: ${FilesToCheck[1]}.pacsave"; } + +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[2]} | awk '{print $1}')" = ${OriginalFileHashes[2]} ]] || { cat "${FilesToCheck[2]}" > "${FilesToCheck[2]}.pacsave" ; echo "Backup saved: ${FilesToCheck[2]}.pacsave"; } + +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[3]} | awk '{print $1}')" = ${OriginalFileHashes[3]} ]] || { cat "${FilesToCheck[3]}" > "${FilesToCheck[3]}.pacsave" ; echo "Backup saved: ${FilesToCheck[3]}.pacsave"; } + +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[4]} | awk '{print $1}')" = ${OriginalFileHashes[4]} ]] || { cat "${FilesToCheck[4]}" > "${FilesToCheck[4]}.pacsave" ; echo "Backup saved: ${FilesToCheck[4]}.pacsave"; } + +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[5]} | awk '{print $1}')" = ${OriginalFileHashes[5]} ]] || { cat "${FilesToCheck[5]}" > "${FilesToCheck[5]}.pacsave" ; echo "Backup saved: ${FilesToCheck[5]}.pacsave"; } + +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[6]} | awk '{print $1}')" = ${OriginalFileHashes[6]} ]] || { cat "${FilesToCheck[6]}" > "${FilesToCheck[6]}.pacsave" ; echo "Backup saved: ${FilesToCheck[6]}.pacsave"; } + +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[7]} | awk '{print $1}')" = ${OriginalFileHashes[7]} ]] || { cat "${FilesToCheck[7]}" > "${FilesToCheck[7]}.pacsave" ; echo "Backup saved: ${FilesToCheck[7]}.pacsave"; } + +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[8]} | awk '{print $1}')" = ${OriginalFileHashes[8]} ]] || { cat "${FilesToCheck[8]}" > "${FilesToCheck[8]}.pacsave" ; echo "Backup saved: ${FilesToCheck[8]}.pacsave"; } + +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[9]} | awk '{print $1}')" = ${OriginalFileHashes[9]} ]] || { cat "${FilesToCheck[9]}" > "${FilesToCheck[9]}.pacsave" ; echo "Backup saved: ${FilesToCheck[9]}.pacsave"; } + +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[10]} | awk '{print $1}')" = ${OriginalFileHashes[10]} ]] || { cat "${FilesToCheck[10]}" > "${FilesToCheck[10]}.pacsave" ; echo "Backup saved: ${FilesToCheck[10]}.pacsave"; } + +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[11]} | awk '{print $1}')" = ${OriginalFileHashes[11]} ]] || { cat "${FilesToCheck[11]}" > "${FilesToCheck[11]}.pacsave" ; echo "Backup saved: ${FilesToCheck[11]}.pacsave"; } + +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[12]} | awk '{print $1}')" = ${OriginalFileHashes[12]} ]] || { cat "${FilesToCheck[12]}" > "${FilesToCheck[12]}.pacsave" ; echo "Backup saved: ${FilesToCheck[12]}.pacsave"; } + +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[13]} | awk '{print $1}')" = ${OriginalFileHashes[13]} ]] || { cat "${FilesToCheck[13]}" > "${FilesToCheck[13]}.pacsave" ; echo "Backup saved: ${FilesToCheck[13]}.pacsave"; } + +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[14]} | awk '{print $1}')" = ${OriginalFileHashes[14]} ]] || { cat "${FilesToCheck[14]}" > "${FilesToCheck[14]}.pacsave" ; echo "Backup saved: ${FilesToCheck[14]}.pacsave"; } + +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[15]} | awk '{print $1}')" = ${OriginalFileHashes[15]} ]] || { cat "${FilesToCheck[15]}" > "${FilesToCheck[15]}.pacsave" ; echo "Backup saved: ${FilesToCheck[15]}.pacsave"; } + +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[16]} | awk '{print $1}')" = ${OriginalFileHashes[16]} ]] || { cat "${FilesToCheck[16]}" > "${FilesToCheck[16]}.pacsave" ; echo "Backup saved: ${FilesToCheck[16]}.pacsave"; } + +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[17]} | awk '{print $1}')" = ${OriginalFileHashes[17]} ]] || { cat "${FilesToCheck[17]}" > "${FilesToCheck[17]}.pacsave" ; echo "Backup saved: ${FilesToCheck[17]}.pacsave"; } + +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[18]} | awk '{print $1}')" = ${OriginalFileHashes[18]} ]] || { cat "${FilesToCheck[18]}" > "${FilesToCheck[18]}.pacsave" ; echo "Backup saved: ${FilesToCheck[18]}.pacsave"; } + +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[19]} | awk '{print $1}')" = ${OriginalFileHashes[19]} ]] || { cat "${FilesToCheck[19]}" > "${FilesToCheck[19]}.pacsave" ; echo "Backup saved: ${FilesToCheck[19]}.pacsave"; } + +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[20]} | awk '{print $1}')" = ${OriginalFileHashes[20]} ]] || { cat "${FilesToCheck[20]}" > "${FilesToCheck[20]}.pacsave" ; echo "Backup saved: ${FilesToCheck[20]}.pacsave"; } + +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[21]} | awk '{print $1}')" = ${OriginalFileHashes[21]} ]] || { cat "${FilesToCheck[21]}" > "${FilesToCheck[21]}.pacsave" ; echo "Backup saved: ${FilesToCheck[21]}.pacsave"; } + +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[22]} | awk '{print $1}')" = ${OriginalFileHashes[22]} ]] || { cat "${FilesToCheck[22]}" > "${FilesToCheck[22]}.pacsave" ; echo "Backup saved: ${FilesToCheck[22]}.pacsave"; } + +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[23]} | awk '{print $1}')" = ${OriginalFileHashes[23]} ]] || { cat "${FilesToCheck[23]}" > "${FilesToCheck[23]}.pacsave" ; echo "Backup saved: ${FilesToCheck[23]}.pacsave"; } + +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[24]} | awk '{print $1}')" = ${OriginalFileHashes[24]} ]] || { cat "${FilesToCheck[24]}" > "${FilesToCheck[24]}.pacsave" ; echo "Backup saved: ${FilesToCheck[24]}.pacsave"; } + +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[25]} | awk '{print $1}')" = ${OriginalFileHashes[25]} ]] || { cat "${FilesToCheck[25]}" > "${FilesToCheck[25]}.pacsave" ; echo "Backup saved: ${FilesToCheck[25]}.pacsave"; } + +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[26]} | awk '{print $1}')" = ${OriginalFileHashes[26]} ]] || { cat "${FilesToCheck[26]}" > "${FilesToCheck[26]}.pacsave" ; echo "Backup saved: ${FilesToCheck[26]}.pacsave"; } + +echo "Done!" + +}
\ No newline at end of file diff --git a/pcr/gmusicbrowser/PKGBUILD b/pcr/gmusicbrowser/PKGBUILD index f8dd68ee2..b55bfea61 100644 --- a/pcr/gmusicbrowser/PKGBUILD +++ b/pcr/gmusicbrowser/PKGBUILD @@ -4,8 +4,8 @@ # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe> pkgname=gmusicbrowser -pkgver=1.1.14 -pkgrel=3 +pkgver=1.1.15 +pkgrel=2 pkgdesc="A customizable open-source jukebox for large collections" arch=('any') url="http://gmusicbrowser.org" @@ -16,13 +16,14 @@ optdepends=('alsa-utils: enables the ALSA backend' 'mpg321: mp3 support for the ALSA backend' 'vorbis-tools: vorbis support for the ALSA backend' 'mplayer: enables the mplayer backend' + 'mpv: enables the mpv backend' 'gstreamer: enables the gstreamer backend' 'perl-glib-object-introspection: enables the gstreamer backend' 'gst-plugins-base: vorbis support for the gstreamer backend' 'gst-plugins-good: flac support for the gstreamer backend' 'gst-plugins-bad: mpc support for the gstreamer backend' 'gst-plugins-ugly: mp3 support for the gstreamer backend' - 'perl-gstreamer: enables the gstreamer0.10 backend' + 'perl-gstreamer: enables the old gstreamer0.10 backend' 'gstreamer0.10-base: vorbis support for the gstreamer0.10 backend' 'gstreamer0.10-good-plugins: flac support for the gstreamer0.10 backend' 'gstreamer0.10-bad-plugins: mpc support for the gstreamer0.10 backend' @@ -39,16 +40,10 @@ conflicts=('gmusicbrowser-devel' 'gmusicbrowser-development' 'gmusicbrowser-git' options=('!libtool') install=$pkgname.install source=($url/download/$pkgname-$pkgver.tar.gz) -md5sums=('8eb2d3f22e0734a7f5efbf4f0b2bd71e') +md5sums=('4a16dcbe369d4b3cb78fb1a6967a60b3') package() { cd "$srcdir"/$pkgname-$pkgver make DESTDIR="$pkgdir/" install - - # put some images in sane locations - install -Dm644 pix/trayicon.png "$pkgdir"/usr/share/icons/hicolor/16x16/apps/gmusicbrowser.png - install -Dm644 pix/gmusicbrowser32x32.png "$pkgdir"/usr/share/icons/hicolor/32x32/apps/gmusicbrowser.png - install -Dm644 pix/gmusicbrowser.png "$pkgdir"/usr/share/icons/hicolor/48x48/apps/gmusicbrowser.png - install -Dm644 pix/gmusicbrowser.png "$pkgdir"/usr/share/pixmaps/gmusicbrowser.png } diff --git a/pcr/gmusicbrowser/gmusicbrowser.install b/pcr/gmusicbrowser/gmusicbrowser.install index 2035fe0b0..049ea6f0a 100644 --- a/pcr/gmusicbrowser/gmusicbrowser.install +++ b/pcr/gmusicbrowser/gmusicbrowser.install @@ -4,7 +4,8 @@ post_install() { ==> In order to play your music with gmusicbrowser, you need to install: - gstreamer, perl-glib-object-introspection + gstreamer plugins or - mpg321/vorbis-tools/flac123/alsa-utils or -- mplayer +- mplayer or +- mpv (look at optdepends for details) _EOF diff --git a/pcr/gnoduino/PKGBUILD b/pcr/gnoduino/PKGBUILD index 329c5a5bd..3d719723f 100644 --- a/pcr/gnoduino/PKGBUILD +++ b/pcr/gnoduino/PKGBUILD @@ -1,19 +1,20 @@ -# Maintainer : Aurelien Desbriers <aurelien@hackers.camp> -# Contributor: speps <speps at aur dot archlinux dot org> +# Maintainer (Arch): speps <speps at aur dot archlinux dot org> +# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe> pkgname=gnoduino pkgver=0.5.1 -pkgrel=1 +pkgrel=2 pkgdesc="An implementation of well-known Arduino IDE for GNOME" arch=(any) url="http://gnome.eu.org/index.php/Gnoduino" license=('GPL') -depends=('avr-libc' 'avrdude' 'avr-binutils' 'gcc-avr' 'pyxdg' +depends=('avr-libc' 'avrdude' 'avr-binutils' 'avr-gcc' 'pyxdg' 'pygtksourceview2' 'python2-pyserial' 'python2-gconf' 'desktop-file-utils') makedepends=('python2-distribute') install="$pkgname.install" source=("http://gnome.eu.org/$pkgname-$pkgver.tar.gz") +md5sums=('e458acd24860e28acec7fa71bb9cfe2f') prepare() { cd $pkgname-$pkgver diff --git a/pcr/grub2-theme-gnuaxiom/PKGBUILD b/pcr/grub2-theme-gnuaxiom/PKGBUILD new file mode 100644 index 000000000..f3aa8b887 --- /dev/null +++ b/pcr/grub2-theme-gnuaxiom/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Luke R. <g4jc@openmailbox.org> GPG: rsa4096/3EAE8697 + +pkgname=grub2-theme-gnuaxiom +_pkgname=GNUAxiom +pkgver=1.01 +pkgrel=1 +pkgdesc="A Parabola GNU/Linux-libre theme for grub2, forked from Axiom." +arch=('any') +url="https://github.com/g4jc/GNUAxiom" +license=('GPL2') +makedepends=('grub') +source=("https://github.com/g4jc/$_pkgname/archive/$pkgver.tar.gz") +install=("$pkgname.install") +sha512sums=('fce534c2f39b0fa210eeff9767f58a4aa9ad0a2f7f17edd0cea47ff217daaa6ad14c128d47eb840f03c0a675dfd1e39779cff3d6100808bdf4f62a837f116bf6') + +prepare() { +cd $srcdir + mv $_pkgname-$pkgver $_pkgname +} + +package() { + cd $srcdir + find . -type f -exec install -D -m644 {} ${pkgdir}/boot/grub/themes/{} \; +} diff --git a/pcr/grub2-theme-gnuaxiom/grub2-theme-gnuaxiom.install b/pcr/grub2-theme-gnuaxiom/grub2-theme-gnuaxiom.install new file mode 100644 index 000000000..a8470e53b --- /dev/null +++ b/pcr/grub2-theme-gnuaxiom/grub2-theme-gnuaxiom.install @@ -0,0 +1,10 @@ +post_install() { + cat << _EOF + +==> Installation: +==> Add theme to your /etc/default/grub: GRUB_THEME="/boot/grub/themes/GNUAxiom/theme.txt" +==> Preferred resolution 1024x768: GRUB_GFXMODE=1024x768 +==> Update grub:# grub-mkconfig -o /boot/grub/grub.cfg + +_EOF +}
\ No newline at end of file diff --git a/pcr/gtk-theme-elementary/PKGBUILD b/pcr/gtk-theme-elementary/PKGBUILD index 87b1bd1a9..e482d3a3c 100644 --- a/pcr/gtk-theme-elementary/PKGBUILD +++ b/pcr/gtk-theme-elementary/PKGBUILD @@ -3,7 +3,7 @@ # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe> pkgname=gtk-theme-elementary -pkgver=4.0.3 +pkgver=4.0.4 pkgrel=1 pkgdesc="The official elementary GTK theme designed to be smooth, attractive, fast, and usable." arch=('any') @@ -13,8 +13,8 @@ groups=('pantheon') depends=('gtk-engine-murrine') optdepends=('elementary-icon-theme: the elementary icon theme') conflicts=('elementary-gtk-theme' 'egtk-bzr') -source=("$pkgname-$pkgver.tar.gz::https://launchpad.net/egtk/4.x/$pkgver/+download/elementary.tar.gz") -md5sums=('ddd7a10fa56acfc85b53350f28ed521c') +source=("$pkgname-$pkgver.tar.xz::https://launchpad.net/egtk/4.x/$pkgver/+download/elementary.tar.xz") +md5sums=('89388e3c31db64fb57a0aabdb544a636') package() { cd elementary diff --git a/pcr/gws/ChangeLog b/pcr/gws/ChangeLog new file mode 100644 index 000000000..781de8fab --- /dev/null +++ b/pcr/gws/ChangeLog @@ -0,0 +1,40 @@ +2015-03-12 Fabien Dubosson <fabien.dubosson@gmail.com> + + * 0.1.7-1: + New upstream release + +2015-02-12 Fabien Dubosson <fabien.dubosson@gmail.com> + + * 0.1.5-1: + New upstream release + +2014-05-11 Fabien Dubosson <fabien.dubosson@gmail.com> + + * 0.1.4-1: + New upstream release + +2014-02-04 Fabien Dubosson <fabien.dubosson@gmail.com> + + * 0.1.3-3: + Uniformalize PKGBUILD notations + +2014-01-20 Fabien Dubosson <fabien.dubosson@gmail.com> + + * 0.1.3-2: + Patch minor bug, already patched upstream for future version + +2014-01-20 Fabien Dubosson <fabien.dubosson@gmail.com> + + * 0.1.3-1: + New upstream release + +2014-01-13 Fabien Dubosson <fabien.dubosson@gmail.com> + + * 0.1.2-1 : + New upstream release + +2014-01-09 Fabien Dubosson <fabien.dubosson@gmail.com> + + * 0.1.1-1 : + Package created + diff --git a/pcr/gws/PKGBUILD b/pcr/gws/PKGBUILD new file mode 100644 index 000000000..f737d4316 --- /dev/null +++ b/pcr/gws/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer (Arch): Fabien Dubosson <fabien.dubosson@gmail.com> + +pkgname="gws" +pkgver="0.1.8" +pkgrel="1" +pkgdesc="Colorful KISS helper for git workspaces" +url="https://github.com/StreakyCobra/gws" +license=('MIT') +arch=('any') +depends=('bash>4.0' 'git') +changelog="ChangeLog" +source=("https://github.com/StreakyCobra/${pkgname}/archive/${pkgver}.tar.gz") +md5sums=('f6da0de648b5af5ce818e109f39f003f') + +package() { + cd "${srcdir}/${pkgname}-${pkgver}/" + + install -D -m755 'src/gws' "${pkgdir}/usr/bin/${pkgname}" + install -D -m755 'completions/zsh' "${pkgdir}/usr/share/zsh/site-functions/_${pkgname}" + install -D -m755 'completions/bash' "${pkgdir}/usr/share/bash-completion/completions/${pkgname}" +} + +# vim:set ts=4 sw=4 et: 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/lives/PKGBUILD b/pcr/lives/PKGBUILD index 8b76a7ce0..3203e5c34 100644 --- a/pcr/lives/PKGBUILD +++ b/pcr/lives/PKGBUILD @@ -1,21 +1,21 @@ # Contributor (Arch): Angelo Theodorou <encelo@users.sourceforge.net> # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe> pkgname=lives -pkgver=2.2.8 +pkgver=2.4.1 pkgrel=1 pkgdesc="A Video Editing System" arch=('i686' 'x86_64') -url="http://lives.sourceforge.net" +url="http://lives-video.com" license=('GPL') -depends=('mplayer' 'imagemagick' 'gtk3' 'sox' 'libvisual' 'liboil' 'libavc1394' 'mjpegtools' 'python' 'ffmpeg' 'ffmpeg-compat' 'jack' 'fftw') +depends=('mplayer' 'imagemagick' 'gtk3' 'sox' 'libvisual' 'liboil' 'libavc1394' 'mjpegtools' 'python' 'ffmpeg' 'jack' 'fftw') optdepends=('xorg-utils' 'sdl' 'libogg' 'mkvtoolnix-cli' 'libmatroska' 'ogmtools' 'dvgrab' 'cdrkit' 'lame' 'youtube-dl') options=(!libtool) -source=(http://www.xs4all.nl/%7Esalsaman/lives/current/LiVES-$pkgver.tar.bz2) -md5sums=('8440e2a2b6e83655dfc39c9fef5ee903') +source=(http://lives-video.com/releases/LiVES-$pkgver.tar.bz2) +md5sums=('83279d1e0e73973a9bf41b48af2cb03c') build() { cd "$srcdir"/$pkgname-$pkgver - sed -i 's/gtk_label_set_y_align/gtk_label_set_yalign/g' src/widget-helper.c + # /bin/touch -> /usr/bin/touch find -type f -exec sed -i 's:/bin/touch:/usr&:g' {} \; ./configure --prefix=/usr diff --git a/pcr/mediatomb/PKGBUILD b/pcr/mediatomb/PKGBUILD index 036632eef..1d5a83234 100644 --- a/pcr/mediatomb/PKGBUILD +++ b/pcr/mediatomb/PKGBUILD @@ -1,16 +1,17 @@ -# Contributor: Martin Villagra <mvillagra0@gmail.com> -# Contributor: William Rea <sillywilly@gmail.com> -# Contributor: Nikhil Bysani <nikron@gmail.com> -# Contributor: Mika Hynnä <igheax@gmail.com> -# Contributor: Jonathan Conder <jonno.conder@gmail.com> -# Contributor: Peter Richard Lewis <plewis@aur.archlinux.org> -# Maintainer : Parabola GNU / Linux-libre Aurélien DESBRIÈRES <aurelien@hackers.camp> +# Maintainer (Arch): S Leduc <sebastien@sleduc.fr> +# Contributor (Arch): Martin Villagra <mvillagra0@gmail.com> +# Contributor (Arch): William Rea <sillywilly@gmail.com> +# Contributor (Arch): Nikhil Bysani <nikron@gmail.com> +# Contributor (Arch): Mika Hynnä <igheax@gmail.com> +# Contributor (Arch): Jonathan Conder <jonno.conder@gmail.com> +# Contributor (Arch): Peter Richard Lewis <plewis@aur.archlinux.org> +# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe> pkgname=mediatomb pkgver=0.12.1 -pkgrel=12.1 +pkgrel=13 pkgdesc="Free UPnP/DLNA media server" -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'armv6h') url="http://mediatomb.cc/" license=('GPL') depends=('file' 'curl' 'ffmpegthumbnailer' 'libexif' 'libmp4v2' 'sqlite3' 'taglib' 'libmariadbclient' 'js185') @@ -28,18 +29,17 @@ source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz" 'libmp4v2_191_p497.patch' 'libavformat.patch' 'symlinks.patch') -md5sums=('e927dd5dc52d3cfcebd8ca1af6f0d3c2' - '951b133930436a0ffc1c9b0c9f8145a3' - '27e796979c7778c3876b9a16452eb6e4' - '6503695608c811133db647e0991698eb' - '0ae34c0d73b76e3d215887834c3c08cf' - 'd9e02a9956eecf5ff645bddf6dac0331' - 'a7509bdaa0301ccbd9e564f727c1dd22' - '88144653ff2dc602bcb737f59b2421ce' - '915fa5b3b72649454009511a152b6102' - '932d29fbaaea6f1715bb6da456fb5f44' - 'e1de449736dab88cbb7e10e6bb63ff0d') - +sha256sums=('31163c34a7b9d1c9735181737cb31306f29f1f2a0335fb4f53ecccf8f62f11cd' + 'e46de674e49aa85116a8ff127908f7bac21198ce7625404004b8b7832eccd3f4' + '9c917f0d6e568ce0ad77c0ed17e4bbaabc0e7a1c0a3e4772b786fb1565db9768' + '70e4a4b89cef9a7f6f5f800e1793a6cb807f52b39e5a17d0a91356608b95e62d' + '0c02a20032f0c296800b1bb9644638970c2dedbc5ab7141d66a637235e9da6ce' + '2cd8f5628c3a38b290526f008bae351b90211825f86e5959bf95f140748de574' + 'd9a3062858900d32b977f0d50d168fd7d36785b6ecc038c019e661e27f7b1c17' + 'c6523e8bf5e2da89b7475d6777ef9bffe7d089752ef2f7b27b5e39a4130fb0ff' + 'd39c2f9aab051c5447461718fd0ec72cf5982f6c920a4a985a50831f34babe84' + '76b11706d70ed8f5e157d96ca441c90c46c42176102fcb651b4ab1102b61bfee' + '72f7532d7cd827ab655df652d2912175739fe16d2b1ad989d987a0b147a1d2e8') build() { cd "$srcdir/$pkgname-$pkgver" diff --git a/pcr/mediatomb/mediatomb-mariadb.service b/pcr/mediatomb/mediatomb-mariadb.service index 5b83f1d78..87b95e284 100644 --- a/pcr/mediatomb/mediatomb-mariadb.service +++ b/pcr/mediatomb/mediatomb-mariadb.service @@ -1,6 +1,6 @@ [Unit] Description=MediaTomb Daemon using MariaDB -After=mysql.target network.target +After=mysqld.target network.target [Service] EnvironmentFile=/etc/conf.d/mediatomb diff --git a/pcr/mediatomb/mediatomb.rc b/pcr/mediatomb/mediatomb.rc deleted file mode 100644 index 7b93012cd..000000000 --- a/pcr/mediatomb/mediatomb.rc +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/bash - -. /etc/rc.conf -. /etc/rc.d/functions -. /etc/conf.d/mediatomb - -MT_OPTIONS="-p $MT_PORT -u $MT_USER -g $MT_GROUP -P $MT_PIDFILE \ - -l $MT_LOGFILE -m $MT_HOME -f $MT_CFGDIR $MT_OPTIONS" - -case "$1" in - start) - stat_busy "Starting Mediatomb UPnP Media Server" - - chown "$MT_USER:$MT_GROUP" "$MT_HOME" - - if ! pidof -o %PPID /usr/bin/mediatomb &> /dev/null; then - rm -f "$MT_PIDFILE" - fi - - PID="$(cat "$MT_PIDFILE" 2> /dev/null)" - - if [ -z "$PID" ] && /usr/bin/mediatomb -d $MT_OPTIONS; then - add_daemon mediatomb - stat_done - else - stat_fail - fi - ;; - - stop) - stat_busy "Stopping Mediatomb UPnP Media Server" - - PID="$(cat "$MT_PIDFILE" 2> /dev/null)" - - if [ -n "$PID" ] && kill "$PID" &> /dev/null; then - rm -f "$MT_PIDFILE" - rm_daemon mediatomb - stat_done - else - stat_fail - fi - ;; - - restart) - "$0" stop - sleep 1 - "$0" start - ;; - - *) - echo "usage: $0 {start|stop|restart}" - ;; -esac -exit 0 diff --git a/pcr/mgba-git/PKGBUILD b/pcr/mgba-git/PKGBUILD new file mode 100644 index 000000000..f08f1c107 --- /dev/null +++ b/pcr/mgba-git/PKGBUILD @@ -0,0 +1,76 @@ +# Maintainer: Márcio Silva <coadde@parabola.nu> + +# Based on mgba package + +_pkgbase=mgba +pkgbase=mgba-git +pkgname=('libmgba-git' 'mgba-sdl-git' 'mgba-qt-git') +pkgver=r2457.3a9ac18 +pkgrel=1 +arch=('i686' 'x86_64') +url='https://endrift.com/mgba/' +license=('custom:MPL2') +makedepends=('cmake' 'qt5-multimedia' 'sdl2' 'zlib' 'libpng' 'libzip' 'libedit' + 'ffmpeg' 'imagemagick' 'desktop-file-utils' 'git') +source=($_pkgbase::git+https://github.com/mgba-emu/mgba.git + mgba.desktop) +sha1sums=('SKIP' + '0f6f43ed45b702f6571c254d4717fbc1fe15e845') + +pkgver() { + cd mgba + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + [[ ! -d build ]] && mkdir build || rm -rf build + + cd $_pkgbase/res + convert mgba-1024.png -resize 256x256 mgba-256.png +} + +build() { + cd build + cmake "$srcdir"/$_pkgbase -DCMAKE_INSTALL_PREFIX=/usr + make +} + +package_libmgba-git() { + pkgdesc='Shared library of mGBA' + depends=('zlib' 'libpng' 'libzip' 'libedit' 'ffmpeg' 'imagemagick') + provides=('libmgba') + conflicts=('libmgba') + + cmake -DCOMPONENT=libmgba $_pkgbase -DCMAKE_INSTALL_PREFIX="$pkgdir/usr" \ + -P build/cmake_install.cmake + install -Dm644 $_pkgbase/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_mgba-sdl-git() { + pkgdesc='A Nintendo Gameboy Advance Emulator focusing on both speed and accuracy' + depends=('libmgba' 'sdl2') + provides=('mgba-sdl') + conflicts=('mgba-sdl') + + cmake -DCOMPONENT=mgba-sdl $_pkgbase -DCMAKE_INSTALL_PREFIX="$pkgdir/usr" \ + -P build/cmake_install.cmake + + install -d "$pkgdir"/usr/share/licenses/$pkgname + ln -s /usr/share/licenses/libmgba/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_mgba-qt-git() { + pkgdesc='A Nintendo Gameboy Advance Emulator focusing on both speed and accuracy. Qt5 UI.' + depends=('libmgba' 'qt5-multimedia' 'sdl2') + provides=('mgba-qt') + conflicts=('mgba-qt') + + cmake -DCOMPONENT=mgba-qt $_pkgbase -DCMAKE_INSTALL_PREFIX="$pkgdir/usr" \ + -P build/cmake_install.cmake + + desktop-file-install mgba.desktop --dir "$pkgdir"/usr/share/applications/ + install -Dm644 $_pkgbase/res/mgba-256.png "$pkgdir"/usr/share/pixmaps/mgba.png + + install -d "$pkgdir"/usr/share/licenses/$pkgname + ln -s /usr/share/licenses/libmgba/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} diff --git a/pcr/mgba-git/mgba.desktop b/pcr/mgba-git/mgba.desktop new file mode 100644 index 000000000..8edb7e49e --- /dev/null +++ b/pcr/mgba-git/mgba.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Type=Application +Version=1.0 +Name=mGBA +Comment=mGBA Game Boy Advance Emulator +Icon=mgba.png +Exec=mgba-qt +Categories=Game;Emulator; +Terminal=false +StartupNotify=false diff --git a/pcr/minimodem/PKGBUILD b/pcr/minimodem/PKGBUILD new file mode 100644 index 000000000..66d5afca4 --- /dev/null +++ b/pcr/minimodem/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Luke R. <g4jc@openmailbox.org> GPG: rsa4096/3EAE8697 + +pkgname=minimodem +pkgver=0.21 +pkgrel=1 +pkgdesc="Minimodem is a command-line program which decodes (or generates) audio modem tones at any specified baud rate, using various framing protocols." +arch=('i686' 'x86_64') +url="http://www.whence.com/minimodem/" +license=('GPL3') +depends=('fftw' 'alsa-lib' 'libpulse' 'libsndfile') +makedepends=('gcc') +source=("http://www.whence.com/minimodem/$pkgname-$pkgver.tar.gz") +sha512sums=('e0de84cbfe350893c2142bfd31e664b13f85f48c4bb3e7cd34cb26e1ad190f46f389f22d0976ec56752ae221f2037ffb407f9947d99453b9e33bac639b503db3') + +build() { + cd $pkgname-$pkgver + ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --sbindir=/usr/bin + make +} + +package() { + cd $pkgname-$pkgver + make DESTDIR="$pkgdir/" install +}
\ No newline at end of file diff --git a/pcr/mosquitto/PKGBUILD b/pcr/mosquitto/PKGBUILD index b11a40bb7..f0b1969f0 100644 --- a/pcr/mosquitto/PKGBUILD +++ b/pcr/mosquitto/PKGBUILD @@ -5,7 +5,7 @@ # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe> pkgname=mosquitto -pkgver=1.4.2 +pkgver=1.4.3 pkgrel=1 pkgdesc="An Open Source MQTT v3.1 Broker" arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h') @@ -17,10 +17,10 @@ provides=('mosquitto') license=('BSD') source=(http://mosquitto.org/files/source/$pkgname-$pkgver.tar.gz{,.asc} "$pkgname.service" "$pkgname.install" "usr_move.patch") install=$pkgname.install -sha256sums=('5ebc3800a0018bfbec62dcc3748fb29f628df068acd39c62c4ef651d9276647e' +sha256sums=('773d7436f729b5a6088035708c9277a9c6ba5651e127b63c8f29fe39e152479c' 'SKIP' 'b09c9852b5b438bad8dd54b3ac665bb0d05d1a9e4daf8c920956457c83622b64' - '877ce99413301b0525f40adb5322dc50e69e2f90092138bf495c393dec65d449' + '09b8a17fc59f36f40ead4644fffc95458a9255c32d4848f39ceca05925dcc95b' 'c436bcc5a61d923ab36d5b3f24e5f628bf18ef14c2f351633d58ca983b5f655c') validpgpkeys=('A0D6EEA1DCAE49A635A3B2F0779B22DFB3E717B7') diff --git a/pcr/mosquitto/mosquitto.install b/pcr/mosquitto/mosquitto.install index b2dfb9600..ab99d1d0f 100644 --- a/pcr/mosquitto/mosquitto.install +++ b/pcr/mosquitto/mosquitto.install @@ -1,10 +1,12 @@ post_install() { - getent group mosquitto > /dev/null || groupadd mosquitto - getent passwd mosquitto > /dev/null || useradd -c 'Mosquitto MQTT Broker daemon' -d /etc/mosquitto -s /bin/false -g mosquitto mosquitto + getent group mosquitto > /dev/null || groupadd -g 567 mosquitto + getent passwd mosquitto > /dev/null || useradd -c 'Mosquitto MQTT Broker daemon' -d /etc/mosquitto -s /bin/false -g mosquitto -u 567 -g 567 mosquitto } post_upgrade() { post_install $1 + usermod -u 567 mosquitto + groupmod -g 567 mosquitto } post_remove() { diff --git a/pcr/navit/PKGBUILD b/pcr/navit/PKGBUILD new file mode 100644 index 000000000..26c1fd653 --- /dev/null +++ b/pcr/navit/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: André Silva <emulatorman@parabola.nu> +# Contributor (Arch): György Balló <ballogy@freestart.hu> +pkgname=navit +pkgver=0.2.0 +pkgrel=1 +pkgdesc="Car navigation system with routing engine" +arch=('i686' 'x86_64') +url="http://www.navit-project.org/" +license=('GPL') +depends=('gtk2' 'sdl_image' 'qt4' 'postgresql-libs' 'imlib2' 'dbus-glib' 'fribidi') +makedepends=('wget') +options=(!libtool) +install=navit.install +source=(http://downloads.sourceforge.net/navit/$pkgname-$pkgver.tar.gz + freetype2_include.patch) +md5sums=('7eea687219526275f7bd41888eda609b' + '8c552a90e251fdc69dd7b1d14ef1441d') + +prepare() { + cd "$srcdir/$pkgname-$pkgver" + + # fix freetype2 include path + patch -Np1 -i $srcdir/freetype2_include.patch +} + +build() { + cd "$srcdir/$pkgname-$pkgver" + rm -rf navit/graphics/qt_qpainter/graphics_qt_qpainter.moc + + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ + --disable-static \ + --disable-binding-python \ + --disable-vehicle-gpsd + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + make DESTDIR="$pkgdir/" install +} + diff --git a/pcr/navit/freetype2_include.patch b/pcr/navit/freetype2_include.patch new file mode 100644 index 000000000..32cf66ca9 --- /dev/null +++ b/pcr/navit/freetype2_include.patch @@ -0,0 +1,24 @@ +diff -Nur navit-0.2.0.orig/navit/font/freetype/font_freetype.c navit-0.2.0/navit/font/freetype/font_freetype.c +--- navit-0.2.0.orig/navit/font/freetype/font_freetype.c 2010-11-21 19:33:28.000000000 -0200 ++++ navit-0.2.0/navit/font/freetype/font_freetype.c 2015-08-21 16:54:27.439825363 -0300 +@@ -17,7 +17,7 @@ + #include <fribidi/fribidi-deprecated.h> + #endif + #endif +-#include <freetype/ftglyph.h> ++#include FT_GLYPH_H + #include "point.h" + #include "graphics.h" + #include "debug.h" +diff -Nur navit-0.2.0.orig/navit/graphics/sdl/graphics_sdl.c navit-0.2.0/navit/graphics/sdl/graphics_sdl.c +--- navit-0.2.0.orig/navit/graphics/sdl/graphics_sdl.c 2010-11-21 19:33:15.000000000 -0200 ++++ navit-0.2.0/navit/graphics/sdl/graphics_sdl.c 2015-08-21 16:53:51.388282249 -0300 +@@ -70,7 +70,7 @@ + #include <fontconfig/fontconfig.h> + #include <ft2build.h> + #include FT_FREETYPE_H +-#include <freetype/ftglyph.h> ++#include FT_GLYPH_H + #endif + #include <event.h> + diff --git a/pcr/navit/navit.install b/pcr/navit/navit.install new file mode 100644 index 000000000..2c455e952 --- /dev/null +++ b/pcr/navit/navit.install @@ -0,0 +1,11 @@ +post_install() { + xdg-icon-resource forceupdate +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +} 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/octave-image/PKGBUILD b/pcr/octave-image/PKGBUILD index 208c509b1..be13c904c 100644 --- a/pcr/octave-image/PKGBUILD +++ b/pcr/octave-image/PKGBUILD @@ -11,14 +11,14 @@ _pack=image pkgname=octave-$_pack -pkgver=2.2.2 -pkgrel=2 +pkgver=2.4.1 +pkgrel=1 pkgdesc="The Octave-forge Image package provides functions for processing images. The package also provides functions for feature extraction, image statistics, spatial and geometric transformations, morphological operations, linear filtering, and much more." arch=(any) url="http://octave.sourceforge.net/$_pack/" license=('custom') groups=('octave-forge') -depends=('octave>=3.8.0' 'octave-signal>=1.2.0' 'octave-general>=1.3.0') +depends=('octave>=4.0.0') makedepends=() optdepends=() backup=() @@ -27,7 +27,7 @@ install=$pkgname.install _archive=$_pack-$pkgver.tar.gz source=("http://downloads.sourceforge.net/octave/$_archive") noextract=("$_archive") -md5sums=('c02a05ba37ffb38ad2b59906a56c7807') +md5sums=('ec07f0c9daf824e908881d95a65fbe82') _install_dir() { src=$1 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/openssh-knock/PKGBUILD b/pcr/openssh-knock/PKGBUILD index 2a8368d79..a3c0cc8f5 100644 --- a/pcr/openssh-knock/PKGBUILD +++ b/pcr/openssh-knock/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 242452 2015-07-23 02:38:36Z bisson $ +# $Id: PKGBUILD 243157 2015-08-11 14:15:07Z bisson $ # Maintainer (Arch): Gaetan Bisson <bisson@archlinux.org> # Contributor (Arch): Aaron Griffin <aaron@archlinux.org> # Contributor (Arch): judd <jvinet@zeroflux.org> @@ -7,8 +7,8 @@ _pkgname=openssh pkgname=openssh-knock -pkgver=6.9p1 -pkgrel=2 +pkgver=7.0p1 +pkgrel=1 pkgdesc='Free version of the SSH connectivity tools, with support for stealth TCP sockets' url='http://www.openssh.org/portable.html' license=('custom:BSD') @@ -24,16 +24,14 @@ validpgpkeys=('59C2118ED206D927E667EBE3D3E5F56B6D920D30' source=("ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/${_pkgname}-${pkgver}.tar.gz"{,.asc} #"http://gnunet.org/sites/default/files/${_pkgname}-linux-knock-patch_0.diff" "https://repo.parabola.nu/other/knock/patches/openssh/${_pkgname}-${pkgver}-linux-knock-patch.diff"{,.sig} - 'keyboard-interactive.patch' 'sshdgenkeys.service' 'sshd@.service' 'sshd.service' 'sshd.socket' 'sshd.conf' 'sshd.pam') -sha1sums=('86ab57f00d0fd9bf302760f2f6deac1b6e9df265' 'SKIP' - '149450fd40099e274a09b033cd2ff6e7439e64e8' 'SKIP' - 'ef9e9327a943839abb3d202783b318e9cd2bdcd5' +sha1sums=('d8337c9eab91d360d104f6dd805f8b32089c063c' 'SKIP' + '36fc52e849ef5baf20f48b3d8bd0568849d45dd6' 'SKIP' 'cc1ceec606c98c7407e7ac21ade23aed81e31405' '6a0ff3305692cf83aca96e10f3bb51e1c26fccda' 'ec49c6beba923e201505f5669cea48cad29014db' @@ -47,7 +45,6 @@ install=install prepare() { cd "${srcdir}/${_pkgname}-${pkgver}" - patch -p1 -i ../keyboard-interactive.patch patch -Np1 -i "${srcdir}"/${_pkgname}-${pkgver}-linux-knock-patch.diff } diff --git a/pcr/openssh-knock/keyboard-interactive.patch b/pcr/openssh-knock/keyboard-interactive.patch deleted file mode 100644 index 4adafebc1..000000000 --- a/pcr/openssh-knock/keyboard-interactive.patch +++ /dev/null @@ -1,52 +0,0 @@ -From 5b64f85bb811246c59ebab70aed331f26ba37b18 Mon Sep 17 00:00:00 2001 -From: "djm@openbsd.org" <djm@openbsd.org> -Date: Sat, 18 Jul 2015 07:57:14 +0000 -Subject: upstream commit - -only query each keyboard-interactive device once per - authentication request regardless of how many times it is listed; ok markus@ - -Upstream-ID: d73fafba6e86030436ff673656ec1f33d9ffeda1 ---- - auth2-chall.c | 11 ++++++++--- - 1 file changed, 8 insertions(+), 3 deletions(-) - -diff --git a/auth2-chall.c b/auth2-chall.c -index ddabe1a..4aff09d 100644 ---- a/auth2-chall.c -+++ b/auth2-chall.c -@@ -1,4 +1,4 @@ --/* $OpenBSD: auth2-chall.c,v 1.42 2015/01/19 20:07:45 markus Exp $ */ -+/* $OpenBSD: auth2-chall.c,v 1.43 2015/07/18 07:57:14 djm Exp $ */ - /* - * Copyright (c) 2001 Markus Friedl. All rights reserved. - * Copyright (c) 2001 Per Allansson. All rights reserved. -@@ -83,6 +83,7 @@ struct KbdintAuthctxt - void *ctxt; - KbdintDevice *device; - u_int nreq; -+ u_int devices_done; - }; - - #ifdef USE_PAM -@@ -169,11 +170,15 @@ kbdint_next_device(Authctxt *authctxt, KbdintAuthctxt *kbdintctxt) - if (len == 0) - break; - for (i = 0; devices[i]; i++) { -- if (!auth2_method_allowed(authctxt, -+ if ((kbdintctxt->devices_done & (1 << i)) != 0 || -+ !auth2_method_allowed(authctxt, - "keyboard-interactive", devices[i]->name)) - continue; -- if (strncmp(kbdintctxt->devices, devices[i]->name, len) == 0) -+ if (strncmp(kbdintctxt->devices, devices[i]->name, -+ len) == 0) { - kbdintctxt->device = devices[i]; -+ kbdintctxt->devices_done |= 1 << i; -+ } - } - t = kbdintctxt->devices; - kbdintctxt->devices = t[len] ? xstrdup(t+len+1) : NULL; --- -cgit v0.11.2 - diff --git a/pcr/packer-git/PKGBUILD b/pcr/packer-git/PKGBUILD new file mode 100644 index 000000000..398306da6 --- /dev/null +++ b/pcr/packer-git/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer (Arch): Kyle Keen <keenerd@gmail.com> +# Contributor (Arch): Gilrain <pierre.buard+aur gmail com> +# Contributor (Arch): bruenig +# Maintainer: André Silva <emulatorman@parabola.nu> +# Contributor: Aurélien DESBRIÈRES <aurelien@hackers.camp> + +_pkgname=packer +pkgname=packer-git +pkgver=r242.ed928f8 +pkgrel=1 +pkgdesc="Bash wrapper for pacman and pur" +url="http://github.com/keenerd/packer" +license=("GPL3") +arch=('any') +makedepends=('git') +depends=('grep' 'sed' 'bash' 'curl' 'pacman' 'jshon' 'expac') +optdepends=('sudo: install and update packages as non-root' + 'customizepkg: apply customizepkg modifications') +replaces=($_pkgname) +conflicts=($_pkgname) +provides=($_pkgname) +#source=('git://github.com/keenerd/packer.git') +source=('git+https://github.com/keenerd/packer.git' + 'pur-support.patch') +md5sums=('SKIP' + '8818f9d741539da4fadf9dfb1a1c02c6') + +pkgver() { + cd $_pkgname + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd $_pkgname + patch -Np1 -i ../pur-support.patch +} + +package() { + install -Dm755 "$srcdir/$_pkgname/packer" "$pkgdir/usr/bin/packer" + install -Dm644 "$srcdir/$_pkgname/packer.8" "$pkgdir/usr/share/man/man8/packer.8" +} diff --git a/pcr/packer-git/pur-support.patch b/pcr/packer-git/pur-support.patch new file mode 100644 index 000000000..2656dc76d --- /dev/null +++ b/pcr/packer-git/pur-support.patch @@ -0,0 +1,531 @@ +diff -Nur a/packer b/packer +--- a/packer 2015-08-28 16:26:27.878307880 -0300 ++++ b/packer 2015-08-28 16:35:43.554089893 -0300 +@@ -24,9 +24,9 @@ + usermakepkgconf="$HOME/.makepkg.conf" + pacmanconf='/etc/pacman.conf' + +-RPCURL="https://aur.archlinux.org/rpc.php?type" +-PKGURL="https://aur.archlinux.org" +-PKGBURL="https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h" ++RPCURL="https://pur.parabola.nu/rpc.php?type" ++PKGURL="https://pur.parabola.nu" ++PKGBURL="https://pur.parabola.nu/cgit/pur.git/plain/PKGBUILD?h" + + if [[ -t 1 && ! $COLOR = "NO" ]]; then + COLOR1='\e[1;39m' +@@ -59,14 +59,14 @@ + echo ' -Syu|-Su - updates all packages, also takes -uu and -yy options' + echo ' -Ss|-Ssq - searches for package' + echo ' -Si - outputs info for package' +- echo ' -G - download and extract aur tarball only' ++ echo ' -G - download and extract pur tarball only' + echo + echo ' --quiet - only output package name for searches' + echo ' --ignore - takes a comma-separated list of packages to ignore' + echo ' --noconfirm - do not prompt for any confirmation' + echo ' --noedit - do not prompt to edit files' + echo ' --quickcheck - check for updates and exit' +- echo ' --auronly - only do actions for aur' ++ echo ' --puronly - only do actions for pur' + echo ' --devel - update devel packages during -Su' + echo ' --skipinteg - when using makepkg, do not check md5s' + echo ' --preview - edit pkgbuild before sourcing' +@@ -103,8 +103,8 @@ + [[ " ${ignoredpackages[@]} " =~ " $1 " ]] + } + +-# Tests whether $1 exists on the aur +-existsinaur() { ++# Tests whether $1 exists on the pur ++existsinpur() { + rpcinfo "$1" + [[ "$(jshon -Qe resultcount -u < "$tmpdir/$1.info")" != "0" ]] + } +@@ -131,8 +131,8 @@ + pacman -Qq -- "$1" &>/dev/null + } + +-# Scrapes the aur deps from PKGBUILDS and puts in globally available dependencies array +-scrapeaurdeps() { ++# Scrapes the pur deps from PKGBUILDS and puts in globally available dependencies array ++scrapepurdeps() { + pkginfo "$1" "$preview" + . "$tmpdir/$1.PKGBUILD" + IFS=$'\n' +@@ -141,26 +141,26 @@ + } + + # Finds dependencies of package $1 +-# Sets pacmandeps and aurdeps array, which can be accessed globally after function runs ++# Sets pacmandeps and purdeps array, which can be accessed globally after function runs + finddeps() { +- # loop through dependencies, if not installed, determine if pacman or aur deps ++ # loop through dependencies, if not installed, determine if pacman or pur deps + pacmandeps=() +- aurdeps=() +- scrapeaurdeps "$1" ++ purdeps=() ++ scrapepurdeps "$1" + missingdeps=( $(pacman -T "${dependencies[@]}") ) + while [[ $missingdeps ]]; do + checkdeps=() + for dep in "${missingdeps[@]}"; do +- if [[ " $1 ${aurdeps[@]} ${pacmandeps[@]} " =~ " $dep " ]]; then ++ if [[ " $1 ${purdeps[@]} ${pacmandeps[@]} " =~ " $dep " ]]; then + continue + fi + if existsinpacman "$dep"; then + pacmandeps+=("$dep") +- elif existsinaur "$dep"; then +- if [[ $aurdeps ]]; then +- aurdeps=("$dep" "${aurdeps[@]}") ++ elif existsinpur "$dep"; then ++ if [[ $purdeps ]]; then ++ purdeps=("$dep" "${purdeps[@]}") + else +- aurdeps=("$dep") ++ purdeps=("$dep") + fi + checkdeps+=("$dep") + elif providedinpacman "$dep"; then +@@ -173,7 +173,7 @@ + done + missingdeps=() + for dep in "${checkdeps[@]}"; do +- scrapeaurdeps "$dep" ++ scrapepurdeps "$dep" + for depdep in "${dependencies[@]}"; do + [[ $(pacman -T "$depdep") ]] && missingdeps+=("$depdep") + done +@@ -183,12 +183,12 @@ + } + + # Displays a progress bar ($1 is numerator, $2 is denominator, $3 is candy/normal) +-aurbar() { ++purbar() { + # Delete line + printf "\033[0G" + + # Get vars for output +- beginline=" aur" ++ beginline=" pur" + beginbar="[" + endbar="] " + perc="$(($1*100/$2))" +@@ -252,13 +252,13 @@ + fi + } + +-# Checks if package is newer on aur ($1 is package name, $2 is local version) +-aurversionisnewer() { ++# Checks if package is newer on pur ($1 is package name, $2 is local version) ++purversionisnewer() { + rpcinfo "$1" +- unset aurversion +- if existsinaur "$1"; then +- aurversion="$(jshon -Q -e results -e Version -u < "$tmpdir/$1.info")" +- if [[ "$(LC_ALL=C vercmp "$aurversion" "$2")" -gt 0 ]]; then ++ unset purversion ++ if existsinpur "$1"; then ++ purversion="$(jshon -Q -e results -e Version -u < "$tmpdir/$1.info")" ++ if [[ "$(LC_ALL=C vercmp "$purversion" "$2")" -gt 0 ]]; then + return 0 + fi + fi +@@ -281,14 +281,14 @@ + fi + } + +-# Installs packages from aur ($1 is package, $2 is dependency or explicit) +-aurinstall() { ++# Installs packages from pur ($1 is package, $2 is dependency or explicit) ++purinstall() { + dir="${TMPDIR:-/tmp}/packerbuild-$UID/$1" + sourcemakepkgconf + + # Prepare the installation directory +- # If there is an old directory and aurversion is not newer, use old directory +- if . "$dir/$1/PKGBUILD" &>/dev/null && ! aurversionisnewer "$1" "$pkgver-$pkgrel"; then ++ # If there is an old directory and purversion is not newer, use old directory ++ if . "$dir/$1/PKGBUILD" &>/dev/null && ! purversionisnewer "$1" "$pkgver-$pkgrel"; then + cd "$dir/$1" + else + [[ -d "$dir" ]] && rm -rf "$dir" +@@ -354,15 +354,15 @@ + # Figure out all of the packages that need to be installed + for package in "${packageargs[@]}"; do + # Determine whether package is in pacman repos +- if ! [[ $auronly ]] && existsinpacman "$package"; then ++ if ! [[ $puronly ]] && existsinpacman "$package"; then + pacmanpackages+=("$package") +- elif ! [[ $auronly ]] && existsinpacmangroup "$package"; then ++ elif ! [[ $puronly ]] && existsinpacmangroup "$package"; then + pacmanpackages+=("$package") +- elif existsinaur "$package"; then ++ elif existsinpur "$package"; then + if finddeps "$package"; then + # here is where dep dupes are created +- aurpackages+=("$package") +- aurdepends=("${aurdeps[@]}" "${aurdepends[@]}") ++ purpackages+=("$package") ++ purdepends=("${purdeps[@]}" "${purdepends[@]}") + pacmandepends+=("${pacmandeps[@]}") + fi + else +@@ -370,8 +370,8 @@ + fi + done + +- # Check if any aur target packages are ignored +- for package in "${aurpackages[@]}"; do ++ # Check if any pur target packages are ignored ++ for package in "${purpackages[@]}"; do + if isignored "$package"; then + echo -ne "${COLOR5}:: ${COLOR1}$package is in IgnorePkg/IgnoreGroup. Install anyway?${ENDCOLOR} [Y/n] " + if ! [[ $noconfirm ]]; then +@@ -380,17 +380,17 @@ + echo + fi + fi +- aurtargets+=("$package") ++ purtargets+=("$package") + done + +- # Check if any aur dependencies are ignored +- for package in "${aurdepends[@]}"; do ++ # Check if any pur dependencies are ignored ++ for package in "${purdepends[@]}"; do + if isignored "$package"; then + echo -ne "${COLOR5}:: ${COLOR1}$package is in IgnorePkg/IgnoreGroup. Install anyway?${ENDCOLOR} [Y/n] " + if ! [[ $noconfirm ]]; then + if ! proceed; then + echo "Unresolved dependency \`$package'" +- unset aurtargets ++ unset purtargets + break + fi + else +@@ -403,33 +403,33 @@ + if [[ $pacmanpackages ]]; then + runasroot $PACMAN "${PACOPTS[@]}" -S -- "${pacmanpackages[@]}" + fi +- if [[ -z $aurtargets ]]; then ++ if [[ -z $purtargets ]]; then + exit + fi +- # Test if aurpackages are already installed; echo warning if so +- for pkg in "${aurtargets[@]}"; do ++ # Test if purpackages are already installed; echo warning if so ++ for pkg in "${purtargets[@]}"; do + if existsinlocal "$pkg"; then + localversion="$(pacman -Qs "$pkg" | grep -F "local/$pkg" | cut -d ' ' -f 2)" +- if ! aurversionisnewer "$pkg" "$localversion"; then ++ if ! purversionisnewer "$pkg" "$localversion"; then + echo -e "${COLOR6}warning:$ENDCOLOR $pkg-$localversion is up to date -- reinstalling" + fi + fi + done + + # Echo warning if packages are out of date +- for pkg in "${aurtargets[@]}" "${aurdepends[@]}"; do ++ for pkg in "${purtargets[@]}" "${purdepends[@]}"; do + if isoutofdate "$pkg"; then + echo -e "${COLOR6}warning:$ENDCOLOR $pkg is flagged out of date" + fi + done + +- # Prompt for aur packages and their dependencies ++ # Prompt for pur packages and their dependencies + echo +- if [[ $aurdepends ]]; then +- num="$((${#aurdepends[@]}+${#aurtargets[@]}))" +- echo -e "${COLOR6}Aur Targets ($num):${ENDCOLOR} ${aurdepends[@]} ${aurtargets[@]}" ++ if [[ $purdepends ]]; then ++ num="$((${#purdepends[@]}+${#purtargets[@]}))" ++ echo -e "${COLOR6}Pur Targets ($num):${ENDCOLOR} ${purdepends[@]} ${purtargets[@]}" + else +- echo -e "${COLOR6}Aur Targets ($((${#aurtargets[@]}))):${ENDCOLOR} ${aurtargets[@]}" ++ echo -e "${COLOR6}Pur Targets ($((${#purtargets[@]}))):${ENDCOLOR} ${purtargets[@]}" + fi + if [[ $pacmandepends ]]; then + IFS=$'\n' read -rd '' -a pacmandepends < \ +@@ -450,18 +450,18 @@ + runasroot $PACMAN --noconfirm --asdeps -S -- "${pacmandepends[@]}" || err "Installation failed." + fi + +- # Install aur dependencies +- if [[ $aurdepends ]]; then +- for dep in "${aurdepends[@]}"; do +- aurinstall "$dep" "dependency" ++ # Install pur dependencies ++ if [[ $purdepends ]]; then ++ for dep in "${purdepends[@]}"; do ++ purinstall "$dep" "dependency" + done + fi + +- # Install the aur packages +- for package in "${aurtargets[@]}"; do +- scrapeaurdeps "$package" ++ # Install the pur packages ++ for package in "${purtargets[@]}"; do ++ scrapepurdeps "$package" + if pacman -T "${dependencies[@]}" &>/dev/null; then +- aurinstall "$package" "explicit" ++ purinstall "$package" "explicit" + else + echo "Dependencies for \`$package' are not met, not building..." + fi +@@ -469,16 +469,16 @@ + } + + run_quick_check() { +- bigurl="https://aur.archlinux.org/rpc.php?type=multiinfo" ++ bigurl="https://pur.parabola.nu/rpc.php?type=multiinfo" + for p in $(pacman -Qqm); do + bigurl="$bigurl&arg\[\]=$p" + done +- parsed_aur="$(curl -s "$bigurl" | \ ++ parsed_pur="$(curl -s "$bigurl" | \ + jshon -e results -a -e Name -u -p -e Version -u | \ + sed 's/^$/-/' | paste -s -d '\t\n' | sort)" + packages="$(expac -Q '%n\t%v' | sort)" +- comm -23 <(echo "$parsed_aur") <(echo "$packages") | cut -f 1 +- if [[ $auronly == 1 ]]; then ++ comm -23 <(echo "$parsed_pur") <(echo "$packages") | cut -f 1 ++ if [[ $puronly == 1 ]]; then + return + fi + # see https://mailman.archlinux.org/pipermail/pacman-dev/2011-October/014673.html +@@ -527,7 +527,7 @@ + '--ignore') ignorearg="$2" ; PACOPTS+=("--ignore" "$2") ; shift ;; + '--noconfirm') noconfirm='1' PACOPTS+=("--noconfirm");; + '--noedit') noedit='1' ;; +- '--auronly') auronly='1' ;; ++ '--puronly') puronly='1' ;; + '--quickcheck') quickcheck='1' ;; + '--devel') devel='1' ;; + '--skipinteg') MAKEPKGOPTS="--skipinteg" ;; +@@ -560,12 +560,12 @@ + getignoredpackages + sourcemakepkgconf + # Pacman update +- if ! [[ $auronly ]]; then ++ if ! [[ $puronly ]]; then + runasroot $PACMAN "${PACOPTS[@]}" "$pacmanarg" + fi + +- # Aur update +- echo -e "${COLOR5}:: ${COLOR1}Synchronizing aur database...${ENDCOLOR}" ++ # Pur update ++ echo -e "${COLOR5}:: ${COLOR1}Synchronizing pur database...${ENDCOLOR}" + IFS=$'\n' read -rd '' -a packages < <(pacman -Qm) + newpackages=() + checkignores=() +@@ -574,7 +574,7 @@ + + if [[ $devel ]]; then + for ((i=0; i<$total; i++)); do +- aurbar "$((i+1))" "$total" "$bartype" ++ purbar "$((i+1))" "$total" "$bartype" + pkg="${packages[i]%% *}" + if isignored "$pkg"; then + checkignores+=("${packages[i]}") +@@ -603,7 +603,7 @@ + done + else + for ((i=0; i<$total; i++)); do +- aurbar "$((i+1))" "$total" "$bartype" ++ purbar "$((i+1))" "$total" "$bartype" + pkg="${packages[i]%% *}" + rpcinfo "$pkg" & + nap +@@ -614,25 +614,25 @@ + ver="${packages[i]##* }" + if isignored "$pkg"; then + checkignores+=("${packages[i]}") +- elif aurversionisnewer "$pkg" "$ver"; then ++ elif purversionisnewer "$pkg" "$ver"; then + newpackages+=("$pkg") + fi + done + fi + echo + +- echo -e "${COLOR5}:: ${COLOR1}Starting full aur upgrade...${ENDCOLOR}" ++ echo -e "${COLOR5}:: ${COLOR1}Starting full pur upgrade...${ENDCOLOR}" + + # Check and output ignored package update info + for package in "${checkignores[@]}"; do +- if aurversionisnewer "${package%% *}" "${package##* }"; then +- echo -e "${COLOR6}warning:${ENDCOLOR} ${package%% *}: ignoring package upgrade (${package##* } => $aurversion)" ++ if purversionisnewer "${package%% *}" "${package##* }"; then ++ echo -e "${COLOR6}warning:${ENDCOLOR} ${package%% *}: ignoring package upgrade (${package##* } => $purversion)" + fi + done + + # Now for the installation part + if [[ $newpackages ]]; then +- auronly='1' ++ puronly='1' + installhandling "${newpackages[@]}" + fi + echo " local database is up to date" +@@ -641,10 +641,10 @@ + # Download (-G) handling + if [[ $option = download ]]; then + for package in "${packageargs[@]}"; do +- if existsinaur "$package"; then ++ if existsinpur "$package"; then + pkglist+=("$package") + else +- err "Package \`$package' does not exist on aur." ++ err "Package \`$package' does not exist on pur." + fi + done + +@@ -658,7 +658,7 @@ + # Search (-Ss) handling + if [[ $option = search || $option = searchinstall ]]; then + # Pacman searching +- if ! [[ $auronly ]]; then ++ if ! [[ $puronly ]]; then + if [[ $quiet ]]; then + results="$(pacman -Ssq -- "${packageargs[@]}")" + else +@@ -677,7 +677,7 @@ + pactotal=0 + fi + +- # Aur searching and tmpfile preparation ++ # Pur searching and tmpfile preparation + for package in "${packageargs[@]}"; do + curl -LfGs --data-urlencode "arg=$package" "$RPCURL=search" | \ + jshon -Q -e results -a -e Name -u -p -e Version -u -p -e NumVotes -u -p -e Description -u | \ +@@ -692,24 +692,24 @@ + sed -i '/^$/d' "$tmpdir/search.results" + + # Prepare tmp file and arrays +- IFS=$'\n' read -rd '' -a aurname < <(cut -f 1 "$tmpdir/search.results") +- aurtotal="${#aurname[@]}" +- alltotal="$(($pactotal+$aurtotal))" ++ IFS=$'\n' read -rd '' -a purname < <(cut -f 1 "$tmpdir/search.results") ++ purtotal="${#purname[@]}" ++ alltotal="$(($pactotal+$purtotal))" + # Echo out the -Ss formatted package information + + IFS=$'\t\n' + if [[ $option = search ]]; then + if [[ $quiet ]]; then +- printf "%s\n" ${aurname[@]} ++ printf "%s\n" ${purname[@]} + elif [[ -s "$tmpdir/search.results" ]]; then +- printf "${COLOR3}aur/${COLOR1}%s ${COLOR2}%s${ENDCOLOR} (%s)\n %s\n" $(cat "$tmpdir/search.results") ++ printf "${COLOR3}pur/${COLOR1}%s ${COLOR2}%s${ENDCOLOR} (%s)\n %s\n" $(cat "$tmpdir/search.results") + fi + else + # interactive + if [[ $quiet ]]; then + nl -v ${pactotal:-0} -w 1 -s ' ' <(cut -f 1 "$tmpdir/search.results") + elif [[ -s "$tmpdir/search.results" ]]; then +- printf "%d ${COLOR3}aur/${COLOR1}%s ${COLOR2}%s${ENDCOLOR} (%s)\n %s\n" $(nl -v ${pactotal:-0} -w 1 < "$tmpdir/search.results") ++ printf "%d ${COLOR3}pur/${COLOR1}%s ${COLOR2}%s${ENDCOLOR} (%s)\n %s\n" $(nl -v ${pactotal:-0} -w 1 < "$tmpdir/search.results") + fi + fi | fmt -"$_WIDTH" -s + unset IFS +@@ -717,7 +717,7 @@ + # Prompt and install selected numbers + if [[ $option = searchinstall ]]; then + pkglist=() +- allpackages=( "${pacname[@]}" "${aurname[@]}" ) ++ allpackages=( "${pacname[@]}" "${purname[@]}" ) + + # Exit if there are no matches + [[ $allpackages ]] || exit +@@ -754,7 +754,7 @@ + # Pacman info check + sourcemakepkgconf + for package in "${packageargs[@]}"; do +- if ! [[ $auronly ]] && existsinpacman "$package"; then ++ if ! [[ $puronly ]] && existsinpacman "$package"; then + results="$(pacman -Si -- "$package")" + results="$(sed -r "s|^(Repository[^:]*:)(.*)$|\1$S${COLOR3}\2$S${ENDCOLOR}|" <<< "$results")" + results="$(sed -r "s|^(Name[^:]*:)(.*)$|\1$S${COLOR1}\2$S${ENDCOLOR}|" <<< "$results")" +@@ -763,14 +763,14 @@ + results="$(sed -r "s|^[^ ][^:]*:|$S${COLOR1}&$S${ENDCOLOR}|" <<< "$results")" + echo -e "$results" + exit +- else # Check to see if it is in the aur ++ else # Check to see if it is in the pur + pkginfo "$package" "$preview" + [[ -s "$tmpdir/$package.PKGBUILD" ]] || err "${COLOR7}error:${ENDCOLOR} package '$package' was not found" + . "$tmpdir/$package.PKGBUILD" + + # Echo out the -Si formatted package information + # Retrieve each element in order and echo them immediately +- echo -e "${COLOR1}Repository : ${COLOR3}aur" ++ echo -e "${COLOR1}Repository : ${COLOR3}pur" + echo -e "${COLOR1}Name : $pkgname" + echo -e "${COLOR1}Version : ${COLOR2}$pkgver-$pkgrel" + echo -e "${COLOR1}URL : ${COLOR4}$url" +diff -Nur a/packer.8 b/packer.8 +--- a/packer.8 2015-08-28 16:26:27.881641047 -0300 ++++ b/packer.8 2015-08-28 16:28:32.232156389 -0300 +@@ -19,13 +19,13 @@ + .\" * MAIN CONTENT STARTS HERE * + .\" ----------------------------------------------------------------- + .SH "NAME" +-packer \- package manager utility for pacman repositories and the AUR ++packer \- package manager utility for pacman repositories and the PUR + .SH "SYNOPSIS" + .sp + \fIpacman\fR <operation> [options] [packages] + .SH "DESCRIPTION" + .sp +-Packer is a bash wrapper for pacman and the AUR\&. It was designed to be a simple and very fast replacement for the basic functionality of yaourt\&. It allows you to install, update, search, and show information for any package in the main repositories and in the AUR\&. For other commands, such as removing packages, use pacman\&. ++Packer is a bash wrapper for pacman and the PUR\&. It was designed to be a simple and very fast replacement for the basic functionality of yaourt\&. It allows you to install, update, search, and show information for any package in the main repositories and in the PUR\&. For other commands, such as removing packages, use pacman\&. + .SH "OPERATIONS" + .PP + \fB\-Ss\fR +@@ -50,7 +50,7 @@ + .PP + \fB\-G\fR + .RS 4 +-Download and extract AUR package tarballs, but don\(cqt install anything\&. ++Download and extract PUR package tarballs, but don\(cqt install anything\&. + .RE + .PP + \fB\-h\fR +@@ -79,9 +79,9 @@ + Check for updates and exit\&. + .RE + .PP +-\fB\-\-auronly\fR ++\fB\-\-puronly\fR + .RS 4 +-Only perform commands for the AUR\&. ++Only perform commands for the PUR\&. + .RE + .PP + \fB\-\-devel\fR +@@ -91,7 +91,7 @@ + .PP + \fB\-\-skipinteg\fR + .RS 4 +-Skip the integrity check by ignoring AUR package MD5 sums\&. ++Skip the integrity check by ignoring PUR package MD5 sums\&. + .RE + .PP + \fB\-\-preview\fR +@@ -123,8 +123,8 @@ + .sp -1 + .IP \(bu 2.3 + .\} +-Update only AUR packages: +-packer \-Syu \-\-auronly ++Update only PUR packages: ++packer \-Syu \-\-puronly + .RE + .sp + .RS 4 diff --git a/pcr/packer/PKGBUILD b/pcr/packer/PKGBUILD deleted file mode 100644 index 0f871adbf..000000000 --- a/pcr/packer/PKGBUILD +++ /dev/null @@ -1,31 +0,0 @@ -# Maintainer (Arch): Kyle Keen <keenerd@gmail.com> -# Contributor (Arch): Gilrain <pierre.buard+aur gmail com> -# Contributor (Arch): bruenig -# Maintainer (Parabola): Aurélien DESBRIÈRES <aurelien@hackers.camp> -# Contributor (Parabola): André Silva <emulatorman@parabola.nu> - -pkgname=packer -pkgver=$(LC_ALL=C date -u +%Y%m%d) -pkgrel=1 -pkgdesc="Bash wrapper for pacman and aur" -url="http://github.com/keenerd/packer" -license=("GPL3") -arch=('any') -makedepends=('git') -depends=('grep' 'sed' 'bash' 'curl' 'pacman' 'jshon' 'expac') -optdepends=('sudo: install and update packages as non-root' - 'customizepkg: apply customizepkg modifications') -#source=('git://github.com/keenerd/packer.git') -source=('git+https://github.com/keenerd/packer.git') -md5sums=('SKIP') - -pkgver() { - cd "$pkgname" - git show -s --format="%ci" HEAD | sed -e 's/-//g' -e 's/ .*//' -} - -package() { - install -Dm755 "$srcdir/$pkgname/packer" "$pkgdir/usr/bin/packer" - install -Dm644 "$srcdir/$pkgname/packer.8" "$pkgdir/usr/share/man/man8/packer.8" -} - diff --git a/pcr/parabola-backgrounds/PKGBUILD b/pcr/parabola-backgrounds/PKGBUILD new file mode 100644 index 000000000..b1bf77c77 --- /dev/null +++ b/pcr/parabola-backgrounds/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Luke R. <g4jc@openmailbox.org> GPG: rsa4096/3EAE8697 + +pkgname=parabola-backgrounds +pkgver=1.0 +pkgrel=1 +pkgdesc="Parabola backgrounds/artwork by Crazytoon, coadde, and Catira." +arch=('any') +url="https://repo.parabola.nu/other/artwork/parabola_wallpapers-r1/src/" +license=('custom') +source=("https://repo.parabola.nu/other/artwork/parabola_wallpapers-r1/src/scn-prbprbprw000001-gnu_wallpaper_01_ld_generic-r04427x02490px-c_rgb08-noa000r00h00m00s000f_nos_xcf02d08_m0001d8g-atf_lcf_nof.png" +"https://repo.parabola.nu/other/artwork/parabola_wallpapers-r1/src/scn-prbprbprw000001-gnu_wallpaper_01_ld_generic-r04427x02490px-c_rgb08-noa000r00h00m00s000f_nos_xcf02d08_m0001d8g-atf_lcf_nof.png.sig" +"https://repo.parabola.nu/other/artwork/parabola_wallpapers-r1/src/scn-prbprbprw000001-gnu_wallpaper_01_ld_parabola-r04427x02490px-c_rgb08-noa000r00h00m00s000f_nos_xcf02d08_m0001d8g-atf_lcf_nof.png" +"https://repo.parabola.nu/other/artwork/parabola_wallpapers-r1/src/scn-prbprbprw000001-gnu_wallpaper_01_ld_parabola-r04427x02490px-c_rgb08-noa000r00h00m00s000f_nos_xcf02d08_m0001d8g-atf_lcf_nof.png.sig" +"https://repo.parabola.nu/other/artwork/parabola_wallpapers-r1/src/scn-prbprbprw000001-gnu_wallpaper_02-r17280x09720px-c_rgb08-noa000r00h00m00s000f_nos_xcf02d08_m0004d0g-atf_lcf_nof.png" +"https://repo.parabola.nu/other/artwork/parabola_wallpapers-r1/src/scn-prbprbprw000001-gnu_wallpaper_02-r17280x09720px-c_rgb08-noa000r00h00m00s000f_nos_xcf02d08_m0004d0g-atf_lcf_nof.png.sig" +"https://repo.parabola.nu/other/artwork/parabola_wallpapers-r1/src/scn-prbprbprw000001-gnu_wallpaper_03-r15360x8640px-c_rgb08-noa000r00h00m00s000f_nos_xcf02d08_m0002d3g-atf_lcf_nof.png" +"https://repo.parabola.nu/other/artwork/parabola_wallpapers-r1/src/scn-prbprbprw000001-gnu_wallpaper_03-r15360x8640px-c_rgb08-noa000r00h00m00s000f_nos_xcf02d08_m0002d3g-atf_lcf_nof.png.sig") +validpgpkeys=('684D54A189305A9CC95446D36B888913DDB59515') +sha512sums=('0134a8969fcdb723a3db222bbf81b22c823249ea9628bfaf39db9891466011641947c94a45db07a7d4d6d13f0639b454207bf493fefff125839aaa2136be69d9' + 'SKIP' + 'eb290b60729b7785d9860c5b09f34e31dec76eba2b1608f5fdda351aacd0dc31b8b1d272279767f4b2c53bb389fd301ffacd50ab87fb4bfc05272d736ec33218' + 'SKIP' + '39dd9705c73b7de79f6ba191aced40cbba87220eaa08425a3d8ad4ae74e31013380a98696523d84b48fdfb0c1f53d47d250df1eccb0cf5b82b19309b6c7b59bd' + 'SKIP' + '9c275669e48f77e4eafee6a1a9116a16aeefd14c41e181e8158b0ceb492c3ed69c973375db60adca1dc3573f3e0c6fa0e9a6076218181cc9515a642e7e82162b' + 'SKIP') + +package() { + cd $srcdir + find -exec install -D -m644 {} ${pkgdir}/usr/share/backgrounds{} \; + mv ${pkgdir}/usr/share/backgrounds. ${pkgdir}/usr/share/backgrounds + rm -rf ${pkgdir}/usr/share/backgrounds/*.sig +} diff --git a/pcr/pcsx2-git/PKGBUILD b/pcr/pcsx2-git/PKGBUILD new file mode 100644 index 000000000..cfa006812 --- /dev/null +++ b/pcr/pcsx2-git/PKGBUILD @@ -0,0 +1,93 @@ +# Maintainer: André Silva <emulatorman@parabola.nu> +# Maintainer: Márcio Silva <coadde@parabola.nu> + +# Based on pcsx2 (parabola) package + +_pkgname=pcsx2 +pkgname=pcsx2-git +pkgver=r6873.9c7d417 +pkgrel=1.parabola1 +pkgdesc='A Sony PlayStation 2 emulator, without nonfree nvidia-cg-toolkit support' +arch=('i686' 'x86_64') +url='http://www.pcsx2.net' +license=('GPL2' 'GPL3' 'LGPL2.1' 'LGPL3') +depends_i686=('glew' 'libaio' 'libcanberra' 'libjpeg-turbo' + 'portaudio' 'sdl' 'soundtouch' 'wxgtk') +depends_x86_64=('lib32-glew' 'lib32-libaio' 'lib32-libcanberra' + 'lib32-libjpeg-turbo' + 'lib32-portaudio' 'lib32-sdl' 'lib32-soundtouch' 'lib32-wxgtk') +makedepends=('cmake' 'git') +makedepends_x86_64=('gcc-multilib') +optdepends_x86_64=('lib32-gtk-engines: GTK2 engines support' + 'lib32-gtk-engine-murrine: Murrine GTK3 engine support' + 'lib32-gtk-engine-unico: Unico GTK2 engine support') +provides=("${_pkgname}") +conflicts=("${_pkgname}" "${_pkgname}-libre") +replaces=("${_pkgname}-libre") +options=('!emptydirs') +source=(${pkgname}-${pkgver}::git+https://github.com/PCSX2/pcsx2.git) +sha256sums=('SKIP') + +pkgver() { + cd ${pkgname}-${pkgver} + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd ${pkgname}-${pkgver} + # remove zzogl and zerogs plugins (depends nonfree nvidia-cg-toolkit) + rm -vr plugins/{zerogs,zzogl-pg} + sed -i '\|# ZZOGL|,+6 d' linux_various/glsl2h.pl +} + +build() { + cd ${pkgname}-${pkgver} + + if [[ -d build ]]; then + rm -rf build + fi + mkdir build && cd build + + if [[ $CARCH == i686 ]]; then + cmake .. \ + -DCMAKE_BUILD_TYPE='Release' \ + -DCMAKE_INSTALL_PREFIX='/usr' \ + -DCMAKE_LIBRARY_PATH='/usr/lib' \ + -DPLUGIN_DIR='/usr/lib/pcsx2' \ + -DGAMEINDEX_DIR='/usr/share/pcsx2' \ + -DDISABLE_ADVANCE_SIMD='TRUE' \ + -DEXTRA_PLUGINS='TRUE' \ + -DREBUILD_SHADER='TRUE' \ + -DGLSL_API='TRUE' \ + -DPACKAGE_MODE='TRUE' \ + -DXDG_STD='TRUE' + elif [[ $CARCH == x86_64 ]]; then + cmake .. \ + -DCMAKE_BUILD_TYPE='Release' \ + -DCMAKE_TOOLCHAIN_FILE='cmake/linux-compiler-i386-multilib.cmake' \ + -DCMAKE_INSTALL_PREFIX='/usr' \ + -DCMAKE_LIBRARY_PATH='/usr/lib32' \ + -DPLUGIN_DIR='/usr/lib32/pcsx2' \ + -DGAMEINDEX_DIR='/usr/share/pcsx2' \ + -DDISABLE_ADVANCE_SIMD='TRUE' \ + -DEXTRA_PLUGINS='TRUE' \ + -DREBUILD_SHADER='TRUE' \ + -DGLSL_API='TRUE' \ + -DPACKAGE_MODE='TRUE' \ + -DXDG_STD='TRUE' + fi + + make +} + +package() { + cd ${pkgname}-${pkgver}/build + + make DESTDIR="${pkgdir}" install + + # create pcsx2 binary link and copy PCSX2.1 to pcsx2.1 man page + ln -vs PCSX2 ${pkgdir}/usr/bin/pcsx2 + cp -va ${pkgdir}/usr/share/man/man1/{PCSX,pcsx}2.1 +} + +# vim: ts=2 sw=2 et: 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/ppsspp-git/PKGBUILD b/pcr/ppsspp-git/PKGBUILD new file mode 100644 index 000000000..388d750c8 --- /dev/null +++ b/pcr/ppsspp-git/PKGBUILD @@ -0,0 +1,96 @@ +# Maintainer: Márcio Silva <coadde@parabola.nu> + +# Based on ppsspp package + +_pkgbase=ppsspp +pkgbase=ppsspp-git +pkgname=('ppsspp-git' 'ppsspp-qt-git') +pkgver=r16696.14fd313 +pkgrel=1 +pkgdesc='A PSP emulator written in C++' +arch=('i686' 'x86_64') +url='http://www.ppsspp.org/' +license=('GPL2') +depends=('ffmpeg' 'sdl2') +makedepends=('cmake' 'git' 'glu' 'qt5-tools') +source=("git+https://github.com/hrydgard/ppsspp.git" + 'git+https://github.com/hrydgard/ppsspp-lang.git' + 'ppsspp-native::git+https://github.com/hrydgard/native.git' + 'ppsspp-armips::git+https://github.com/Kingcom/armips.git' + 'ppsspp-ffmpeg.patch') +sha256sums=('SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + '28c4fcfb1a42f17c5a6bd5909696a53481efcd3571b0a30b1e1e535015d6aa1a') + +pkgver() { + cd ppsspp + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd ppsspp + + for submodule in native lang ext/armips; do + git submodule init ${submodule} + git config submodule.${submodule}.url ../ppsspp-${submodule#*/} + git submodule update ${submodule} + done + + patch -Np1 -i ../ppsspp-ffmpeg.patch +} + +build() { + cd ppsspp + + if [[ -d build ]]; then + rm -rf build + fi + mkdir build && cd build + + cmake .. \ + -DCMAKE_BUILD_TYPE='Release' \ + -DCMAKE_SKIP_RPATH='TRUE' + make + + cd .. + + if [[ -d build-qt ]]; then + rm -rf build-qt + fi + mkdir build-qt && cd build-qt + + qmake-qt5 CONFIG+='release' CONFIG+='system_ffmpeg' ../Qt/PPSSPPQt.pro + make +} + +package_ppsspp-git() { + provides=("${_pkgbase}") + conflicts=("${_pkgbase}" "${_pkgbase}-qt" "${_pkgbase}-qt-git") + + cd ppsspp/build + + install -dm 755 "${pkgdir}"/usr/{bin,share/{applications,man/man1,pixmaps,ppsspp}} + install -m 755 PPSSPPSDL "${pkgdir}"/usr/bin/ppsspp + cp -dr --no-preserve='ownership' assets "${pkgdir}"/usr/share/ppsspp/ + install -m 644 ../assets/unix-icons/icon-512.svg "${pkgdir}"/usr/share/pixmaps/ppsspp.svg + install -m 644 ../debian/ppsspp.desktop "${pkgdir}"/usr/share/applications/ + install -m 644 ../debian/ppsspp.1 "${pkgdir}"/usr/share/man/man1/ +} + +package_ppsspp-qt-git() { + depends+=('qt5-base') + provides=("${_pkgbase}") + conflicts=("${_pkgbase}" "${_pkgbase}-qt" "${_pkgbase}-qt-git") + + cd ppsspp/build-qt + + install -dm 755 "${pkgdir}"/usr/{bin,share/{applications,man/man1,pixmaps}} + install -m 755 ppsspp "${pkgdir}"/usr/bin/ + install -m 644 ../assets/unix-icons/icon-512.svg "${pkgdir}"/usr/share/pixmaps/ppsspp.svg + install -m 644 ../debian/ppsspp.desktop "${pkgdir}"/usr/share/applications/ + install -m 644 ../debian/ppsspp.1 "${pkgdir}"/usr/share/man/man1/ +} + +# vim: ts=2 sw=2 et: diff --git a/pcr/ppsspp-git/ppsspp-ffmpeg.patch b/pcr/ppsspp-git/ppsspp-ffmpeg.patch new file mode 100644 index 000000000..0e7406080 --- /dev/null +++ b/pcr/ppsspp-git/ppsspp-ffmpeg.patch @@ -0,0 +1,190 @@ +diff -Nur a/CMakeLists.txt b/CMakeLists.txt +--- a/CMakeLists.txt 2015-08-16 01:25:43.282403676 -0300 ++++ b/CMakeLists.txt 2015-08-16 01:33:33.084570830 -0300 +@@ -419,159 +419,19 @@ + include_directories(native/ext/stb_vorbis) + + if(USE_FFMPEG) +- if(USE_SYSTEM_FFMPEG) +- include(FindFFMPEG) +- else() +- set(FFMPEG_FOUND OFF) +- endif() +- if(NOT FFMPEG_FOUND) +- if(NOT DEFINED FFMPEG_BUILDDIR) +- if(ANDROID) +- if(ARMV7) +- set(PLATFORM_ARCH "android/armv7") +- elseif(ARM) +- set(PLATFORM_ARCH "android/arm") +- elseif(X86) +- set(PLATFORM_ARCH "android/x86") +- endif() +- elseif(BLACKBERRY) +- set(PLATFORM_ARCH "blackberry/armv7") +- elseif(IOS) +- set(PLATFORM_ARCH "ios/universal") +- elseif(MACOSX) +- set(PLATFORM_ARCH "macosx/x86_64") +- elseif(LINUX) +- if(ARMV7) +- set(PLATFORM_ARCH "linux/armv7") +- elseif(ARM) +- set(PLATFORM_ARCH "linux/arm") +- elseif(MIPS) +- set(PLATFORM_ARCH "linux/mips32") +- elseif(CMAKE_SIZEOF_VOID_P EQUAL 8) +- set(PLATFORM_ARCH "linux/x86_64") +- else() +- set(PLATFORM_ARCH "linux/x86") +- endif() +- endif() +- # Using static libraries +- if (DEFINED PLATFORM_ARCH) +- include_directories(ffmpeg/${PLATFORM_ARCH}/include) +- link_directories(ffmpeg/${PLATFORM_ARCH}/lib) +- set(FFMPEG_LIBRARIES libavformat.a libavcodec.a libavutil.a libswresample.a libswscale.a) +- else() +- # Manual definition of system library locations by the user. +- if (DEFINED FFMPEG_INCLUDE_PATH) +- include_directories(ffmpeg ${FFMPEG_INCLUDE_PATH}) +- endif() +- if (DEFINED AVFORMAT_PATH) +- add_library(libavformat STATIC IMPORTED) +- set_target_properties(libavformat PROPERTIES IMPORTED_LOCATION ${AVFORMAT_PATH}) +- SET (FFMPEG_LIBRARIES ${FFMPEG_LIBRARIES} libavformat) +- endif() +- if (DEFINED AVCODEC_PATH) +- add_library(libavcodec STATIC IMPORTED) +- set_target_properties(libavcodec PROPERTIES IMPORTED_LOCATION ${AVCODEC_PATH}) +- SET (FFMPEG_LIBRARIES ${FFMPEG_LIBRARIES} libavcodec) +- endif() +- if (DEFINED AVUTIL_PATH) +- add_library(libavutil STATIC IMPORTED) +- set_target_properties(libavutil PROPERTIES IMPORTED_LOCATION ${AVUTIL_PATH}) +- SET (FFMPEG_LIBRARIES ${FFMPEG_LIBRARIES} libavutil) +- endif() +- if (DEFINED SWRESAMPLE_PATH) +- add_library(libswresample STATIC IMPORTED) +- set_target_properties(libswresample PROPERTIES IMPORTED_LOCATION ${SWRESAMPLE_PATH}) +- SET (FFMPEG_LIBRARIES ${FFMPEG_LIBRARIES} libswresample) +- endif() +- if (DEFINED SWSCALE_PATH) +- add_library(libswscale STATIC IMPORTED) +- set_target_properties(libswscale PROPERTIES IMPORTED_LOCATION ${SWSCALE_PATH}) +- SET (FFMPEG_LIBRARIES ${FFMPEG_LIBRARIES} libswscale) +- endif() +- endif(DEFINED PLATFORM_ARCH) +- else(NOT DEFINED FFMPEG_BUILDDIR) +- # Using shared libraries +- include_directories(ffmpeg ${FFMPEG_BUILDDIR}) ++ SET (FFMPEG_LIBRARIES ++ avformat ++ avcodec ++ avutil ++ swresample ++ swscale ++ ) + +- add_library(libavformat STATIC IMPORTED) +- set_target_properties(libavformat PROPERTIES IMPORTED_LOCATION ${FFMPEG_BUILDDIR}/libavformat/libavformat.a) +- add_library(libavcodec STATIC IMPORTED) +- set_target_properties(libavcodec PROPERTIES IMPORTED_LOCATION ${FFMPEG_BUILDDIR}/libavcodec/libavcodec.a) +- add_library(libavutil STATIC IMPORTED) +- set_target_properties(libavutil PROPERTIES IMPORTED_LOCATION ${FFMPEG_BUILDDIR}/libavutil/libavutil.a) +- add_library(libswresample STATIC IMPORTED) +- set_target_properties(libswresample PROPERTIES IMPORTED_LOCATION ${FFMPEG_BUILDDIR}/libswresample/libswresample.a) +- add_library(libswscale STATIC IMPORTED) +- set_target_properties(libswscale PROPERTIES IMPORTED_LOCATION ${FFMPEG_BUILDDIR}/libswscale/libswscale.a) +- +- SET (FFMPEG_LIBRARIES +- libavformat +- libavcodec +- libavutil +- libswresample +- libswscale +- ) +- endif(NOT DEFINED FFMPEG_BUILDDIR) +- endif(NOT FFMPEG_FOUND) +- +- find_library(ICONV_LIBRARY NAMES iconv) +- if (ICONV_LIBRARY) +- set(FFMPEG_LIBRARIES ${FFMPEG_LIBRARIES} ${ICONV_LIBRARY}) +- endif() +- +- if(APPLE) +- set(FFMPEG_LIBRARIES ${FFMPEG_LIBRARIES} bz2 "-framework CoreVideo") +- if (NOT IOS) +- set(FFMPEG_LIBRARIES ${FFMPEG_LIBRARIES} "-framework VideoDecodeAcceleration") +- endif() +- endif(APPLE) +- +- if(FFMPEG_FOUND) +- set(nativeExtraLibs ${nativeExtraLibs} ${FFMPEG_LIBRARIES}) +- else() +- set(LinkCommon ${LinkCommon} ${FFMPEG_LIBRARIES}) +- endif() ++ set(nativeExtraLibs ${nativeExtraLibs} ${FFMPEG_LIBRARIES}) + target_link_libraries(Common ${FFMPEG_LIBRARIES}) + add_definitions(-DUSE_FFMPEG) + endif(USE_FFMPEG) + +-# Modification to show where we are pulling the ffmpeg libraries from. +-if(USE_FFMPEG AND DEFINED FFMPEG_LIBRARIES) +- message(STATUS "FFMPEG library locations:") +- if(FFMPEG_FOUND) +- message(STATUS "libavcodec location: ${FFMPEG_avcodec_LIBRARY}") +- message(STATUS "libavformat location: ${FFMPEG_avformat_LIBRARY}") +- message(STATUS "libavutil location: ${FFMPEG_avutil_LIBRARY}") +- message(STATUS "libswresample location: ${FFMPEG_swresample_LIBRARY}") +- message(STATUS "libswscale location: ${FFMPEG_swscale_LIBRARY}") +- elseif(DEFINED PLATFORM_ARCH) +- set(TEMP ${CMAKE_SOURCE_DIR}/ffmpeg/${PLATFORM_ARCH}/lib) +- message(STATUS "libavcodec location: ${TEMP}/libavcodec.a") +- message(STATUS "libavformat location: ${TEMP}/libavformat.a") +- message(STATUS "libavutil location: ${TEMP}/libavutil.a") +- message(STATUS "libswresample location: ${TEMP}/libswresample.a") +- message(STATUS "libswscale location: ${TEMP}/libswscale.a") +- else() +- get_target_property(TEMP libavcodec IMPORTED_LOCATION) +- message(STATUS "libavcodec location: ${TEMP}") +- get_target_property(TEMP libavformat IMPORTED_LOCATION) +- message(STATUS "libavformat location: ${TEMP}") +- get_target_property(TEMP libavutil IMPORTED_LOCATION) +- message(STATUS "libavutil location: ${TEMP}") +- get_target_property(TEMP libswresample IMPORTED_LOCATION) +- message(STATUS "libswresample location: ${TEMP}") +- get_target_property(TEMP libswscale IMPORTED_LOCATION) +- message(STATUS "libswscale location: ${TEMP}") +- endif() +-else() +- message(STATUS "ERROR: No FFMPEG library locations") +-endif() +- +-if(USE_FFMPEG AND NOT DEFINED FFMPEG_LIBRARIES) +- message(WARNING "FFMPEG_BUILDDIR variable or manual path definition is required to enable FFmpeg. Disabling it.") +- unset(USE_FFMPEG) +-endif() +- + find_package(ZLIB) + if(ZLIB_FOUND) + include_directories(${ZLIB_INCLUDE_DIR}) +diff -Nur a/Core/HW/MediaEngine.h b/Core/HW/MediaEngine.h +--- a/Core/HW/MediaEngine.h 2015-08-16 01:25:43.332404138 -0300 ++++ b/Core/HW/MediaEngine.h 2015-08-16 01:35:59.109776759 -0300 +@@ -34,9 +34,14 @@ + class SimpleAudio; + + #ifdef USE_FFMPEG ++extern "C" { ++#include <libavformat/avformat.h> ++#include <libavutil/old_pix_fmts.h> ++} ++ + struct SwsContext; + struct AVFrame; +-struct AVIOContext; ++//struct AVIOContext; + struct AVFormatContext; + struct AVCodecContext; + #endif diff --git a/pcr/python-evdev/PKGBUILD b/pcr/python-evdev/PKGBUILD new file mode 100644 index 000000000..10bdcf411 --- /dev/null +++ b/pcr/python-evdev/PKGBUILD @@ -0,0 +1,20 @@ +# Maintainer: Márcio Silva <coadde@parabola.nu> + +pkgname=python-evdev +pkgver=0.5.0 +pkgrel=1 +pkgdesc="Python bindings evdev input devices" +arch=('i686' 'x86_64') +url="http://python-evdev.readthedocs.org/" +license=('BSD3') +depends=('python') +source=("https://github.com/gvalkov/$pkgname/archive/v$pkgver.tar.gz") +sha256sums=('8340a6881d0ebe175dce412edc78dd296cc0e799265c1b6c7200891c6c7271d9') + +package () { + cd $pkgname-$pkgver + + python setup.py install --prefix=/usr --root=$pkgdir + + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} diff --git a/pcr/python-oslo-i18n/PKGBUILD b/pcr/python-oslo-i18n/PKGBUILD index 6a084f6d0..38dd16763 100644 --- a/pcr/python-oslo-i18n/PKGBUILD +++ b/pcr/python-oslo-i18n/PKGBUILD @@ -6,7 +6,7 @@ _name="oslo.i18n" _module="${_name/./-}" pkgname=("python-${_module}" "python2-${_module}") -pkgver="2.3.0" +pkgver="2.4.0" pkgrel="1" pkgdesc="Oslo i18n library" arch=("any") @@ -14,7 +14,7 @@ url="https://github.com/openstack/${_name}" license=("Apache") makedepends=("python-pbr>=1.3" "python2-pbr>=1.3" "git") source=("https://pypi.python.org/packages/source/${_name:0:1}/${_name}/${_name}-${pkgver}.tar.gz") -sha256sums=('9cd35cd12104672e4675465d59badf9b1d1c1bfc54ceef57d076d4fa8a12afc6') +sha256sums=('b788a543416483196015177daf77c2d2a8ba84ea72b4372a7afa54707333308c') prepare() { cd "${srcdir}/${_name}-${pkgver}" diff --git a/pcr/python-oslo-utils/PKGBUILD b/pcr/python-oslo-utils/PKGBUILD index 75117cd72..68b606578 100644 --- a/pcr/python-oslo-utils/PKGBUILD +++ b/pcr/python-oslo-utils/PKGBUILD @@ -6,7 +6,7 @@ _name="oslo.utils" _module="${_name/./-}" pkgname=("python-${_module}" "python2-${_module}") -pkgver="2.2.0" +pkgver="2.3.0" pkgrel="1" pkgdesc="Oslo Utility library" arch=("any") @@ -14,7 +14,7 @@ url="https://github.com/openstack/${_name}" license=("Apache") makedepends=("python-pbr>=1.3" "python2-pbr>=1.3" "git") source=("https://pypi.python.org/packages/source/${_name:0:1}/${_name}/${_name}-${pkgver}.tar.gz") -sha256sums=('75edebbb9715d9658e12a0b1b510389f5af5b66da7035bae48b3c79c6ac14aad') +sha256sums=('c0ee7075a04a4c432d74d7b578fdc3478a5e831c9bd26fdff13b9bcc1e745ed4') prepare() { cd "${srcdir}/${_name}-${pkgver}" @@ -25,7 +25,7 @@ package_python-oslo-utils() { depends=("python-babel>=1.3" "python-debtcollector>=0.3.0" "python-iso8601>=0.1.9" - "python-monotonic>=0.1" + "python-monotonic>=0.3" "python-netaddr>=0.7.12" "python-netifaces>=0.10.4" "python-oslo-i18n>=1.5.0" @@ -39,7 +39,7 @@ package_python2-oslo-utils() { depends=("python2-babel>=1.3" "python2-debtcollector>=0.3.0" "python2-iso8601>=0.1.9" - "python2-monotonic>=0.1" + "python2-monotonic>=0.3" "python2-netaddr>=0.7.12" "python2-netifaces>=0.10.4" "python2-oslo-i18n>=1.5.0" diff --git a/pcr/reicast-git/PKGBUILD b/pcr/reicast-git/PKGBUILD index e10d00c34..a249b3aa1 100644 --- a/pcr/reicast-git/PKGBUILD +++ b/pcr/reicast-git/PKGBUILD @@ -3,24 +3,25 @@ # Maintainer: Márcio Silva <coadde@parabola.nu> pkgname=reicast-git -pkgver=r1322.4b94e2f +pkgver=r1622.826853a pkgrel=1 pkgdesc="A multiplatform Sega Dreamcast emulator" arch=('i686' 'x86_64') url="http://reicast.com/" license=('GPL2') -conflicts=('reicast') provides=('reicast') +conflicts=('reicast') +conflicts_x86_64+=('reicast-multilib' 'reicast-multilib-git') +replaces_x86_64=('reicast-multilib' 'reicast-multilib-git') makedepends=('git') -depends=('libgl' 'alsa-plugins') -optdepends=('xboxdrv: Userspace gamepad driver for Xbox and Xbox360 gamepads' - 'antimicro: Graphical program used to map keyboard keys and mouse controls to gamepad buttons') +depends=('libgl' 'alsa-plugins' 'libpulse' 'python-evdev' ) +optdepends=('xboxdrv: Userspace gamepad driver for Xbox and Xbox360 gamepads') source=(reicast::"git+https://github.com/reicast/reicast-emulator.git" - 'enable_joystick_support.patch' + 'enable_multiplayer_support.patch' 'wait_if_two_frames_already_in_flight.patch') sha256sums=('SKIP' - '464946512ca4cffac104128a85dd174520caeaa0325afbf281b6cfdbc0120fc6' - 'f4d3b4ad7703da09dc59cae839ca225e1a21b89d905ede3519bf3174b40903da') + '12bfc58e12b3ee79b0c82159cdc70c76a4b6804f5c6986853156602bb0e6beb0' + '4e087844ed22f5a65348e6826444481e14d0409faf8dafb0c6e5284f3f2bd9f7') pkgver() { cd reicast @@ -29,30 +30,33 @@ pkgver() { prepare () { cd reicast - patch -Np1 -i "$srcdir"/enable_joystick_support.patch + + # Remove nonfree fp.h header + rm -v core/deps/libpng/fp.h + + # Add Multiplayer support + patch -Np1 -i "$srcdir"/enable_multiplayer_support.patch + patch -Np1 -i "$srcdir"/wait_if_two_frames_already_in_flight.patch - # Fix pointer size on 64 bit arch: http://github.com/reicast-emulator/pull/768 - sed -i 's|verify((int)rbi);|verify((size_t)rbi);|' core/hw/sh4/dyna/driver.cpp # Add experimental shadow support: http://github.com/reicast-emulator/issues/94 sed -i 's|//DrawModVols|DrawModVols|' core/rend/gles/gldraw.cpp + + # Fix Xbox Input Axis + sed -i 's|DC_AXIS_LT, 0, 0, DC_AXIS_RT|0, 0, DC_AXIS_RT, DC_AXIS_LT|' core/linux-dist/joystick.cpp + + # Enable Pulseaudio + sed -i 's|#USE_PULSEAUDIO|USE_PULSEAUDIO|' shell/linux/Makefile } build () { make -C reicast/shell/linux - if [[ $CARCH == x86_64 ]]; then - make -C reicast/shell/linCPP - fi } package () { cd reicast - install -Dm755 shell/linux/reicast.elf "$pkgdir"/usr/bin/reicast - install -Dm755 shell/linux/nosym-reicast.elf "$pkgdir"/usr/bin/reicast-nosym - if [[ $CARCH == x86_64 ]]; then - install -Dm755 shell/linCPP/reicast.elf "$pkgdir"/usr/bin/reicast-cpp - install -Dm755 shell/linCPP/nosym-reicast.elf "$pkgdir"/usr/bin/reicast-nosym-cpp - fi + make -C shell/linux PREFIX=/usr DESTDIR=$pkgdir install + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } diff --git a/pcr/reicast-git/enable_joystick_support.patch b/pcr/reicast-git/enable_joystick_support.patch deleted file mode 100644 index 0fbb59ac7..000000000 --- a/pcr/reicast-git/enable_joystick_support.patch +++ /dev/null @@ -1,346 +0,0 @@ -diff -Nur reicast-emulator.orig/core/linux-dist/main.cpp reicast-emulator/core/linux-dist/main.cpp ---- reicast-emulator.orig/core/linux-dist/main.cpp 2015-06-29 21:42:22.674278849 -0300 -+++ reicast-emulator/core/linux-dist/main.cpp 2015-06-29 22:08:38.780500620 -0300 -@@ -22,6 +22,7 @@ - #include <X11/Xlib.h> - #include <X11/Xatom.h> - #include <X11/Xutil.h> -+ #include <X11/XKBlib.h> - - #if !defined(GLES) - #include <GL/gl.h> -@@ -49,6 +50,34 @@ - #endif - #define WINDOW_HEIGHT 480 - -+/*****************************************************************/ -+/****************** Configure Controls ***************************/ -+/*****************************************************************/ -+ -+// Use XEV in terminal window to find keycodes to configure buttons. -+#define XANA_UP (25) -+#define XANA_DOWN (39) -+#define XANA_LEFT (38) -+#define XANA_RIGHT (40) -+#define XANA_LT (79) -+#define XANA_RT (81) -+#define XDPAD_UP (31) -+#define XDPAD_DOWN (45) -+#define XDPAD_LEFT (44) -+#define XDPAD_RIGHT (46) -+#define XBTN_Y (80) -+#define XBTN_X (83) -+#define XBTN_B (85) -+#define XBTN_A (84) -+#define XBTN_START (36) -+ -+/*******************************************************************/ -+ -+u8 temp_joyx = 0; -+u8 temp_joyy = 0; -+u8 temp_lt = 0; -+u8 temp_rt = 0; -+ - void* x11_win=0,* x11_disp=0; - void* libPvr_GetRenderTarget() - { -@@ -124,8 +153,8 @@ - { Btn_A,Btn_B,Btn_X,Btn_Y,0,0,0,Btn_Start,0,0 }; - - const u32 JMapAxis_360[MAP_SIZE] = -- { Axis_X,Axis_Y,Axis_LT,0,0,Axis_RT,DPad_Left,DPad_Up,0,0 }; -- -+ //{ Axis_X,Axis_Y,Axis_LT,0,0,Axis_RT,DPad_Left,DPad_Up,0,0 }; -+ { Axis_X,Axis_Y,0,0,Axis_RT,Axis_LT,DPad_Left,DPad_Up,0,0 }; - const u32* JMapBtn=JMapBtn_USB; - const u32* JMapAxis=JMapAxis_USB; - -@@ -180,7 +209,7 @@ - - printf("SDK: Found '%s' joystick with %d axis and %d buttons\n",Name,AxisCount,ButtonCount); - -- if (strcmp(Name,"Microsoft X-Box 360 pad")==0) -+ if (strcmp(Name,"Microsoft X-Box 360 pad")==0 || strcmp(Name,"Xbox Gamepad (userspace driver)")==0) - { - JMapBtn=JMapBtn_360; - JMapAxis=JMapAxis_360; -@@ -414,9 +443,20 @@ - { - static char key = 0; - -- kcode[port]= x11_dc_buttons; -- rt[port]=0; -- lt[port]=0; -+ if (cfgLoadInt("config","usejoypad",0)==1) -+ { -+ HandleJoystick(port); -+ return; -+ } -+ else -+ { -+ kcode[port]= x11_dc_buttons; -+ joyx[0] = temp_joyx; -+ joyy[0] = temp_joyy; -+ lt[0] = temp_lt; -+ rt[0] = temp_rt; -+ return; -+ } - - #if defined(TARGET_GCW0) || defined(TARGET_PANDORA) - HandleJoystick(port); -@@ -472,7 +512,13 @@ - void os_DoEvents() - { - #if defined(SUPPORT_X11) -- if (x11_win) { -+ -+ static bool ana_up = false; -+ static bool ana_down = false; -+ static bool ana_left = false; -+ static bool ana_right = false; -+ -+ if (x11_win) { - //Handle X11 - XEvent e; - if(XCheckWindowEvent((Display*)x11_disp, (Window)x11_win, KeyPressMask | KeyReleaseMask, &e)) -@@ -483,6 +529,103 @@ - case KeyPress: - case KeyRelease: - { -+ -+ //Detect up press -+ if(e.xkey.keycode == XANA_UP) -+ { -+ if(e.type == KeyPress) -+ { -+ ana_up = true; -+ } -+ else if(e.type == KeyRelease) -+ { -+ ana_up = false; -+ } -+ else -+ { -+ } -+ } -+ -+ //Detect down Press -+ if(e.xkey.keycode == XANA_DOWN) -+ { -+ if(e.type == KeyPress) -+ { -+ ana_down = true; -+ } -+ else if(e.type == KeyRelease) -+ { -+ ana_down = false; -+ } -+ else -+ { -+ } -+ } -+ -+ //Detect left press -+ if(e.xkey.keycode == XANA_LEFT) -+ { -+ if(e.type == KeyPress) -+ { -+ ana_left = true; -+ } -+ else if(e.type == KeyRelease) -+ { -+ ana_left = false; -+ } -+ else -+ { -+ } -+ } -+ -+ //Detect right Press -+ if(e.xkey.keycode == XANA_RIGHT) -+ { -+ if(e.type == KeyPress) -+ { -+ ana_right = true; -+ } -+ else if(e.type == KeyRelease) -+ { -+ ana_right = false; -+ } -+ else -+ { -+ } -+ } -+ -+ //detect LT press -+ if (e.xkey.keycode == XANA_LT) -+ { -+ if (e.type == KeyPress) -+ { -+ temp_lt = 255; -+ } -+ else if (e.type == KeyRelease) -+ { -+ temp_lt = 0; -+ } -+ else -+ { -+ } -+ } -+ -+ //detect RT press -+ if (e.xkey.keycode == XANA_RT) -+ { -+ if (e.type == KeyPress) -+ { -+ temp_rt = 255; -+ } -+ else if (e.type == KeyRelease) -+ { -+ temp_rt = 0; -+ } -+ else -+ { -+ } -+ } -+ - int dc_key = x11_keymap[e.xkey.keycode]; - - if (e.type == KeyPress) -@@ -494,14 +637,44 @@ - } - break; - -- -+ default: - { - printf("KEYRELEASE\n"); - } - break; - - } -- } -+ } -+ -+ /* Check analogue control states (up/down) */ -+ if((ana_up == true) && (ana_down == false)) -+ { -+ temp_joyy = -127; -+ } -+ else if((ana_up == false) && (ana_down == true)) -+ { -+ temp_joyy = 127; -+ } -+ else -+ { -+ /* Either both pressed simultaniously or neither pressed */ -+ temp_joyy = 0; -+ } -+ -+ /* Check analogue control states (left/right) */ -+ if((ana_left == true) && (ana_right == false)) -+ { -+ temp_joyx = -127; -+ } -+ else if((ana_left == false) && (ana_right == true)) -+ { -+ temp_joyx = 127; -+ } -+ else -+ { -+ /* Either both pressed simultaniously or neither pressed */ -+ temp_joyx = 0; -+ } - } - #endif - } -@@ -527,6 +700,9 @@ - void os_CreateWindow() - { - #if defined(SUPPORT_X11) -+ -+ Bool ar_set, ar_supp = false; -+ - if (cfgLoadInt("pvr","nox11",0)==0) - { - XInitThreads(); -@@ -636,7 +812,8 @@ - int height=cfgLoadInt("x11","height", WINDOW_HEIGHT); - #endif - -- if (width==-1) -+ //if (width==-1) -+ if (cfgLoadInt("x11","fullscreen",0)==1) - { - width=XDisplayWidth(x11Display,x11Screen); - height=XDisplayHeight(x11Display,x11Screen); -@@ -653,8 +830,21 @@ - - XMapRaised(x11Display, x11Window); - #else -- XMapWindow(x11Display, x11Window); -- -+ -+ if (cfgLoadInt("x11","fullscreen",0)==1) -+ { -+ // fullscreen -+ Atom wmState = XInternAtom(x11Display, "_NET_WM_STATE", False); -+ Atom wmFullscreen = XInternAtom(x11Display, "_NET_WM_STATE_FULLSCREEN", False); -+ XChangeProperty(x11Display, x11Window, wmState, XA_ATOM, 32, PropModeReplace, (unsigned char *)&wmFullscreen, 1); -+ } -+ -+ XMapWindow(x11Display, x11Window); -+ -+ //This 1 second delay is important. Without it the GLX code can execute before the window -+ //resize completes causing a black border at the top of the screen.... -+ sleep(1); -+ - #if !defined(GLES) - - #define GLX_CONTEXT_MAJOR_VERSION_ARB 0x2091 -@@ -690,6 +880,11 @@ - //(EGLNativeDisplayType)x11Display; - x11_disp=(void*)x11Display; - x11_win=(void*)x11Window; -+ -+ ar_set = XkbSetDetectableAutoRepeat(x11Display, True, &ar_supp); -+ printf("XkbSetDetectableAutoRepeat returns %u, supported = %u\n",ar_set, ar_supp); -+ -+ - } - else - printf("Not creating X11 window ..\n"); -@@ -805,16 +1000,16 @@ - #endif - - #if defined(SUPPORT_X11) -- x11_keymap[113] = DPad_Left; -- x11_keymap[114] = DPad_Right; -+ x11_keymap[XDPAD_LEFT] = DPad_Left; -+ x11_keymap[XDPAD_RIGHT] = DPad_Right; - -- x11_keymap[111] = DPad_Up; -- x11_keymap[116] = DPad_Down; -+ x11_keymap[XDPAD_UP] = DPad_Up; -+ x11_keymap[XDPAD_DOWN] = DPad_Down; - -- x11_keymap[52] = Btn_Y; -- x11_keymap[53] = Btn_X; -- x11_keymap[54] = Btn_B; -- x11_keymap[55] = Btn_A; -+ x11_keymap[XBTN_Y] = Btn_Y; -+ x11_keymap[XBTN_X] = Btn_X; -+ x11_keymap[XBTN_B] = Btn_B; -+ x11_keymap[XBTN_A] = Btn_A; - - /* - //TODO: Fix sliders -@@ -822,7 +1017,7 @@ - x11_keymap[39] = DPad_Down; - */ - -- x11_keymap[36] = Btn_Start; -+ x11_keymap[XBTN_START] = Btn_Start; - #endif - - printf("Home dir is: %s\n",GetPath("/").c_str()); diff --git a/pcr/reicast-git/enable_multiplayer_support.patch b/pcr/reicast-git/enable_multiplayer_support.patch new file mode 100644 index 000000000..57794d1eb --- /dev/null +++ b/pcr/reicast-git/enable_multiplayer_support.patch @@ -0,0 +1,37 @@ +diff -Nur a/core/hw/maple/maple_cfg.cpp b/core/hw/maple/maple_cfg.cpp +--- a/core/hw/maple/maple_cfg.cpp 2015-08-27 12:17:34.718561243 -0300 ++++ b/core/hw/maple/maple_cfg.cpp 2015-08-27 15:57:10.233166402 -0300 +@@ -22,10 +22,12 @@ + */ + void UpdateInputState(u32 port); + +-extern u16 kcode[4]; +-extern u32 vks[4]; +-extern s8 joyx[4],joyy[4]; +-extern u8 rt[4],lt[4]; ++#define NUM_PORTS 4 ++ ++extern u16 kcode[NUM_PORTS]; ++extern u32 vks[NUM_PORTS]; ++extern s8 joyx[NUM_PORTS],joyy[NUM_PORTS]; ++extern u8 rt[NUM_PORTS],lt[NUM_PORTS]; + + u8 GetBtFromSgn(s8 val) + { +@@ -69,10 +71,13 @@ + void mcfg_CreateDevices() + { + #if DC_PLATFORM == DC_PLATFORM_DREAMCAST +- mcfg_Create(MDT_SegaController,0,5); ++ for (int i = 0; i < NUM_PORTS; i++) ++ { ++ mcfg_Create(MDT_SegaController,i,5); + +- mcfg_Create(MDT_SegaVMU,0,0); +- mcfg_Create(MDT_SegaVMU,0,1); ++ mcfg_Create(MDT_SegaVMU,i,0); ++ mcfg_Create(MDT_SegaVMU,i,1); ++ } + #else + mcfg_Create(MDT_NaomiJamma, 0, 5); + #endif diff --git a/pcr/reicast-git/wait_if_two_frames_already_in_flight.patch b/pcr/reicast-git/wait_if_two_frames_already_in_flight.patch index ff297365c..6b29b3d61 100644 --- a/pcr/reicast-git/wait_if_two_frames_already_in_flight.patch +++ b/pcr/reicast-git/wait_if_two_frames_already_in_flight.patch @@ -1,15 +1,15 @@ -diff -Nur reicast-emulator.orig/core/hw/pvr/Renderer_if.cpp reicast-emulator/core/hw/pvr/Renderer_if.cpp ---- reicast-emulator.orig/core/hw/pvr/Renderer_if.cpp 2015-06-20 02:04:02.180069939 -0300 -+++ reicast-emulator/core/hw/pvr/Renderer_if.cpp 2015-06-20 02:10:17.831402600 -0300 -@@ -184,6 +184,7 @@ +diff -Nur a/core/hw/pvr/Renderer_if.cpp b/core/hw/pvr/Renderer_if.cpp +--- a/core/hw/pvr/Renderer_if.cpp 2015-08-27 12:17:34.719561251 -0300 ++++ b/core/hw/pvr/Renderer_if.cpp 2015-08-27 12:21:45.917501578 -0300 +@@ -187,6 +187,7 @@ bool rend_frame(TA_context* ctx, bool draw_osd) { bool proc = renderer->Process(ctx); + FinishRender(_pvrrc); + #if !defined(TARGET_NO_THREADS) re.Set(); - - bool do_swp = proc && renderer->Render(); -@@ -207,7 +208,7 @@ + #endif +@@ -213,7 +214,7 @@ bool do_swp = rend_frame(_pvrrc, true); //clear up & free data .. @@ -18,15 +18,15 @@ diff -Nur reicast-emulator.orig/core/hw/pvr/Renderer_if.cpp reicast-emulator/cor _pvrrc=0; return do_swp; -@@ -260,6 +261,7 @@ - +@@ -267,6 +268,7 @@ + #endif bool pend_rend = false; +extern TA_context* rqueue; void rend_resize(int width, int height) { renderer->Resize(width, height); -@@ -268,6 +270,10 @@ +@@ -275,6 +277,10 @@ void rend_start_render() { @@ -37,34 +37,15 @@ diff -Nur reicast-emulator.orig/core/hw/pvr/Renderer_if.cpp reicast-emulator/cor pend_rend = false; bool is_rtt=(FB_W_SOF1& 0x1000000)!=0; TA_context* ctx = tactx_Pop(CORE_CURRENT_CTX); -@@ -314,7 +320,6 @@ - } - } - -- - void rend_end_render() - { - #if 1 //also disabled the printf, it takes quite some time ... -@@ -325,8 +330,9 @@ - #endif - #endif - -- if (pend_rend) -+ if (pend_rend) { - re.Wait(); -+ } - } - - /* -diff -Nur reicast-emulator.orig/core/hw/pvr/ta_ctx.cpp reicast-emulator/core/hw/pvr/ta_ctx.cpp ---- reicast-emulator.orig/core/hw/pvr/ta_ctx.cpp 2015-06-20 02:04:02.186736275 -0300 -+++ reicast-emulator/core/hw/pvr/ta_ctx.cpp 2015-06-20 02:07:44.202370584 -0300 -@@ -119,8 +119,6 @@ +diff -Nur a/core/hw/pvr/ta_ctx.cpp b/core/hw/pvr/ta_ctx.cpp +--- a/core/hw/pvr/ta_ctx.cpp 2015-08-27 12:17:34.720561259 -0300 ++++ b/core/hw/pvr/ta_ctx.cpp 2015-08-27 12:23:24.614248467 -0300 +@@ -153,8 +153,6 @@ mtx_rqueue.Lock(); rqueue = 0; mtx_rqueue.Unlock(); - - tactx_Recycle(ctx); + frame_finished.Set(); } - cMutex mtx_pool; diff --git a/pcr/reicast-multilib-git/PKGBUILD b/pcr/reicast-multilib-git/PKGBUILD deleted file mode 100644 index c675fa002..000000000 --- a/pcr/reicast-multilib-git/PKGBUILD +++ /dev/null @@ -1,52 +0,0 @@ -# Maintainer (Arch): carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG -# Maintainer: André Silva <emulatorman@parabola.nu> -# Maintainer: Márcio Silva <coadde@parabola.nu> - -pkgname=reicast-multilib-git -pkgver=r1322.4b94e2f -pkgrel=1 -pkgdesc="A multiplatform Sega Dreamcast emulator" -arch=('x86_64') -url="http://reicast.com/" -license=('GPL2') -conflicts=('reicast') -provides=('reicast') -makedepends=('git') -makedepends_x86_64=('gcc-multilib') -depends_x86_64=('lib32-libgl' 'lib32-alsa-plugins') -optdepends=('xboxdrv: Userspace gamepad driver for Xbox and Xbox360 gamepads' - 'antimicro: Graphical program used to map keyboard keys and mouse controls to gamepad buttons') -source=(reicast::"git+https://github.com/reicast/reicast-emulator.git" - 'enable_joystick_support.patch' - 'wait_if_two_frames_already_in_flight.patch') -sha256sums=('SKIP' - '464946512ca4cffac104128a85dd174520caeaa0325afbf281b6cfdbc0120fc6' - 'f4d3b4ad7703da09dc59cae839ca225e1a21b89d905ede3519bf3174b40903da') - -pkgver() { - cd reicast - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" -} - -prepare () { - cd reicast - patch -Np1 -i "$srcdir"/enable_joystick_support.patch - patch -Np1 -i "$srcdir"/wait_if_two_frames_already_in_flight.patch - - # Fix pointer size on 64 bit arch: http://github.com/reicast-emulator/pull/768 - sed -i 's|verify((int)rbi);|verify((size_t)rbi);|' core/hw/sh4/dyna/driver.cpp - # Add experimental shadow support: http://github.com/reicast-emulator/issues/94 - sed -i 's|//DrawModVols|DrawModVols|' core/rend/gles/gldraw.cpp -} - -build () { - linux32 make -C reicast/shell/linux -} - -package () { - cd reicast - - install -Dm755 shell/linux/reicast.elf "$pkgdir"/usr/bin/reicast - install -Dm755 shell/linux/nosym-reicast.elf "$pkgdir"/usr/bin/reicast-nosym - install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE -} diff --git a/pcr/reicast-multilib-git/enable_joystick_support.patch b/pcr/reicast-multilib-git/enable_joystick_support.patch deleted file mode 100644 index 0fbb59ac7..000000000 --- a/pcr/reicast-multilib-git/enable_joystick_support.patch +++ /dev/null @@ -1,346 +0,0 @@ -diff -Nur reicast-emulator.orig/core/linux-dist/main.cpp reicast-emulator/core/linux-dist/main.cpp ---- reicast-emulator.orig/core/linux-dist/main.cpp 2015-06-29 21:42:22.674278849 -0300 -+++ reicast-emulator/core/linux-dist/main.cpp 2015-06-29 22:08:38.780500620 -0300 -@@ -22,6 +22,7 @@ - #include <X11/Xlib.h> - #include <X11/Xatom.h> - #include <X11/Xutil.h> -+ #include <X11/XKBlib.h> - - #if !defined(GLES) - #include <GL/gl.h> -@@ -49,6 +50,34 @@ - #endif - #define WINDOW_HEIGHT 480 - -+/*****************************************************************/ -+/****************** Configure Controls ***************************/ -+/*****************************************************************/ -+ -+// Use XEV in terminal window to find keycodes to configure buttons. -+#define XANA_UP (25) -+#define XANA_DOWN (39) -+#define XANA_LEFT (38) -+#define XANA_RIGHT (40) -+#define XANA_LT (79) -+#define XANA_RT (81) -+#define XDPAD_UP (31) -+#define XDPAD_DOWN (45) -+#define XDPAD_LEFT (44) -+#define XDPAD_RIGHT (46) -+#define XBTN_Y (80) -+#define XBTN_X (83) -+#define XBTN_B (85) -+#define XBTN_A (84) -+#define XBTN_START (36) -+ -+/*******************************************************************/ -+ -+u8 temp_joyx = 0; -+u8 temp_joyy = 0; -+u8 temp_lt = 0; -+u8 temp_rt = 0; -+ - void* x11_win=0,* x11_disp=0; - void* libPvr_GetRenderTarget() - { -@@ -124,8 +153,8 @@ - { Btn_A,Btn_B,Btn_X,Btn_Y,0,0,0,Btn_Start,0,0 }; - - const u32 JMapAxis_360[MAP_SIZE] = -- { Axis_X,Axis_Y,Axis_LT,0,0,Axis_RT,DPad_Left,DPad_Up,0,0 }; -- -+ //{ Axis_X,Axis_Y,Axis_LT,0,0,Axis_RT,DPad_Left,DPad_Up,0,0 }; -+ { Axis_X,Axis_Y,0,0,Axis_RT,Axis_LT,DPad_Left,DPad_Up,0,0 }; - const u32* JMapBtn=JMapBtn_USB; - const u32* JMapAxis=JMapAxis_USB; - -@@ -180,7 +209,7 @@ - - printf("SDK: Found '%s' joystick with %d axis and %d buttons\n",Name,AxisCount,ButtonCount); - -- if (strcmp(Name,"Microsoft X-Box 360 pad")==0) -+ if (strcmp(Name,"Microsoft X-Box 360 pad")==0 || strcmp(Name,"Xbox Gamepad (userspace driver)")==0) - { - JMapBtn=JMapBtn_360; - JMapAxis=JMapAxis_360; -@@ -414,9 +443,20 @@ - { - static char key = 0; - -- kcode[port]= x11_dc_buttons; -- rt[port]=0; -- lt[port]=0; -+ if (cfgLoadInt("config","usejoypad",0)==1) -+ { -+ HandleJoystick(port); -+ return; -+ } -+ else -+ { -+ kcode[port]= x11_dc_buttons; -+ joyx[0] = temp_joyx; -+ joyy[0] = temp_joyy; -+ lt[0] = temp_lt; -+ rt[0] = temp_rt; -+ return; -+ } - - #if defined(TARGET_GCW0) || defined(TARGET_PANDORA) - HandleJoystick(port); -@@ -472,7 +512,13 @@ - void os_DoEvents() - { - #if defined(SUPPORT_X11) -- if (x11_win) { -+ -+ static bool ana_up = false; -+ static bool ana_down = false; -+ static bool ana_left = false; -+ static bool ana_right = false; -+ -+ if (x11_win) { - //Handle X11 - XEvent e; - if(XCheckWindowEvent((Display*)x11_disp, (Window)x11_win, KeyPressMask | KeyReleaseMask, &e)) -@@ -483,6 +529,103 @@ - case KeyPress: - case KeyRelease: - { -+ -+ //Detect up press -+ if(e.xkey.keycode == XANA_UP) -+ { -+ if(e.type == KeyPress) -+ { -+ ana_up = true; -+ } -+ else if(e.type == KeyRelease) -+ { -+ ana_up = false; -+ } -+ else -+ { -+ } -+ } -+ -+ //Detect down Press -+ if(e.xkey.keycode == XANA_DOWN) -+ { -+ if(e.type == KeyPress) -+ { -+ ana_down = true; -+ } -+ else if(e.type == KeyRelease) -+ { -+ ana_down = false; -+ } -+ else -+ { -+ } -+ } -+ -+ //Detect left press -+ if(e.xkey.keycode == XANA_LEFT) -+ { -+ if(e.type == KeyPress) -+ { -+ ana_left = true; -+ } -+ else if(e.type == KeyRelease) -+ { -+ ana_left = false; -+ } -+ else -+ { -+ } -+ } -+ -+ //Detect right Press -+ if(e.xkey.keycode == XANA_RIGHT) -+ { -+ if(e.type == KeyPress) -+ { -+ ana_right = true; -+ } -+ else if(e.type == KeyRelease) -+ { -+ ana_right = false; -+ } -+ else -+ { -+ } -+ } -+ -+ //detect LT press -+ if (e.xkey.keycode == XANA_LT) -+ { -+ if (e.type == KeyPress) -+ { -+ temp_lt = 255; -+ } -+ else if (e.type == KeyRelease) -+ { -+ temp_lt = 0; -+ } -+ else -+ { -+ } -+ } -+ -+ //detect RT press -+ if (e.xkey.keycode == XANA_RT) -+ { -+ if (e.type == KeyPress) -+ { -+ temp_rt = 255; -+ } -+ else if (e.type == KeyRelease) -+ { -+ temp_rt = 0; -+ } -+ else -+ { -+ } -+ } -+ - int dc_key = x11_keymap[e.xkey.keycode]; - - if (e.type == KeyPress) -@@ -494,14 +637,44 @@ - } - break; - -- -+ default: - { - printf("KEYRELEASE\n"); - } - break; - - } -- } -+ } -+ -+ /* Check analogue control states (up/down) */ -+ if((ana_up == true) && (ana_down == false)) -+ { -+ temp_joyy = -127; -+ } -+ else if((ana_up == false) && (ana_down == true)) -+ { -+ temp_joyy = 127; -+ } -+ else -+ { -+ /* Either both pressed simultaniously or neither pressed */ -+ temp_joyy = 0; -+ } -+ -+ /* Check analogue control states (left/right) */ -+ if((ana_left == true) && (ana_right == false)) -+ { -+ temp_joyx = -127; -+ } -+ else if((ana_left == false) && (ana_right == true)) -+ { -+ temp_joyx = 127; -+ } -+ else -+ { -+ /* Either both pressed simultaniously or neither pressed */ -+ temp_joyx = 0; -+ } - } - #endif - } -@@ -527,6 +700,9 @@ - void os_CreateWindow() - { - #if defined(SUPPORT_X11) -+ -+ Bool ar_set, ar_supp = false; -+ - if (cfgLoadInt("pvr","nox11",0)==0) - { - XInitThreads(); -@@ -636,7 +812,8 @@ - int height=cfgLoadInt("x11","height", WINDOW_HEIGHT); - #endif - -- if (width==-1) -+ //if (width==-1) -+ if (cfgLoadInt("x11","fullscreen",0)==1) - { - width=XDisplayWidth(x11Display,x11Screen); - height=XDisplayHeight(x11Display,x11Screen); -@@ -653,8 +830,21 @@ - - XMapRaised(x11Display, x11Window); - #else -- XMapWindow(x11Display, x11Window); -- -+ -+ if (cfgLoadInt("x11","fullscreen",0)==1) -+ { -+ // fullscreen -+ Atom wmState = XInternAtom(x11Display, "_NET_WM_STATE", False); -+ Atom wmFullscreen = XInternAtom(x11Display, "_NET_WM_STATE_FULLSCREEN", False); -+ XChangeProperty(x11Display, x11Window, wmState, XA_ATOM, 32, PropModeReplace, (unsigned char *)&wmFullscreen, 1); -+ } -+ -+ XMapWindow(x11Display, x11Window); -+ -+ //This 1 second delay is important. Without it the GLX code can execute before the window -+ //resize completes causing a black border at the top of the screen.... -+ sleep(1); -+ - #if !defined(GLES) - - #define GLX_CONTEXT_MAJOR_VERSION_ARB 0x2091 -@@ -690,6 +880,11 @@ - //(EGLNativeDisplayType)x11Display; - x11_disp=(void*)x11Display; - x11_win=(void*)x11Window; -+ -+ ar_set = XkbSetDetectableAutoRepeat(x11Display, True, &ar_supp); -+ printf("XkbSetDetectableAutoRepeat returns %u, supported = %u\n",ar_set, ar_supp); -+ -+ - } - else - printf("Not creating X11 window ..\n"); -@@ -805,16 +1000,16 @@ - #endif - - #if defined(SUPPORT_X11) -- x11_keymap[113] = DPad_Left; -- x11_keymap[114] = DPad_Right; -+ x11_keymap[XDPAD_LEFT] = DPad_Left; -+ x11_keymap[XDPAD_RIGHT] = DPad_Right; - -- x11_keymap[111] = DPad_Up; -- x11_keymap[116] = DPad_Down; -+ x11_keymap[XDPAD_UP] = DPad_Up; -+ x11_keymap[XDPAD_DOWN] = DPad_Down; - -- x11_keymap[52] = Btn_Y; -- x11_keymap[53] = Btn_X; -- x11_keymap[54] = Btn_B; -- x11_keymap[55] = Btn_A; -+ x11_keymap[XBTN_Y] = Btn_Y; -+ x11_keymap[XBTN_X] = Btn_X; -+ x11_keymap[XBTN_B] = Btn_B; -+ x11_keymap[XBTN_A] = Btn_A; - - /* - //TODO: Fix sliders -@@ -822,7 +1017,7 @@ - x11_keymap[39] = DPad_Down; - */ - -- x11_keymap[36] = Btn_Start; -+ x11_keymap[XBTN_START] = Btn_Start; - #endif - - printf("Home dir is: %s\n",GetPath("/").c_str()); diff --git a/pcr/reicast-multilib-git/wait_if_two_frames_already_in_flight.patch b/pcr/reicast-multilib-git/wait_if_two_frames_already_in_flight.patch deleted file mode 100644 index ff297365c..000000000 --- a/pcr/reicast-multilib-git/wait_if_two_frames_already_in_flight.patch +++ /dev/null @@ -1,70 +0,0 @@ -diff -Nur reicast-emulator.orig/core/hw/pvr/Renderer_if.cpp reicast-emulator/core/hw/pvr/Renderer_if.cpp ---- reicast-emulator.orig/core/hw/pvr/Renderer_if.cpp 2015-06-20 02:04:02.180069939 -0300 -+++ reicast-emulator/core/hw/pvr/Renderer_if.cpp 2015-06-20 02:10:17.831402600 -0300 -@@ -184,6 +184,7 @@ - - bool rend_frame(TA_context* ctx, bool draw_osd) { - bool proc = renderer->Process(ctx); -+ FinishRender(_pvrrc); - re.Set(); - - bool do_swp = proc && renderer->Render(); -@@ -207,7 +208,7 @@ - bool do_swp = rend_frame(_pvrrc, true); - - //clear up & free data .. -- FinishRender(_pvrrc); -+ tactx_Recycle(_pvrrc); - _pvrrc=0; - - return do_swp; -@@ -260,6 +261,7 @@ - - - bool pend_rend = false; -+extern TA_context* rqueue; - - void rend_resize(int width, int height) { - renderer->Resize(width, height); -@@ -268,6 +270,10 @@ - - void rend_start_render() - { -+ if (rqueue) { -+ rend_end_render(); -+ } -+ - pend_rend = false; - bool is_rtt=(FB_W_SOF1& 0x1000000)!=0; - TA_context* ctx = tactx_Pop(CORE_CURRENT_CTX); -@@ -314,7 +320,6 @@ - } - } - -- - void rend_end_render() - { - #if 1 //also disabled the printf, it takes quite some time ... -@@ -325,8 +330,9 @@ - #endif - #endif - -- if (pend_rend) -+ if (pend_rend) { - re.Wait(); -+ } - } - - /* -diff -Nur reicast-emulator.orig/core/hw/pvr/ta_ctx.cpp reicast-emulator/core/hw/pvr/ta_ctx.cpp ---- reicast-emulator.orig/core/hw/pvr/ta_ctx.cpp 2015-06-20 02:04:02.186736275 -0300 -+++ reicast-emulator/core/hw/pvr/ta_ctx.cpp 2015-06-20 02:07:44.202370584 -0300 -@@ -119,8 +119,6 @@ - mtx_rqueue.Lock(); - rqueue = 0; - mtx_rqueue.Unlock(); -- -- tactx_Recycle(ctx); - } - - cMutex mtx_pool; diff --git a/pcr/rsbep/PKGBUILD b/pcr/rsbep/PKGBUILD new file mode 100644 index 000000000..157cdf106 --- /dev/null +++ b/pcr/rsbep/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer: Luke R. <g4jc@openmailbox.org> GPG: rsa4096/3EAE8697 + +pkgname=rsbep +pkgver=0.1.0 +pkgrel=1 +pkgdesc="Tsiodras patched rsbep for error-resilient backups of data using the Reed-Solomon algorithm." +arch=('i686' 'x86_64') +url="http://arss.sourceforge.net/" +license=('GPL2') +makedepends=('gcc') +source=("http://distro.ibiblio.org/slitaz/sources/packages/r/$pkgname-$pkgver-ttsiodras.tar.bz2") +sha512sums=('df3b053468a7951dd3af35271b2e0fbd2b378521823eabb2bbd7b855dadc8a1f1b974c25df9f437765dd574df088a3d18ce9b73ea773181ea24d79e3ff7555cc') + +build() { + cd $pkgname-$pkgver-ttsiodras + ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --sbindir=/usr/bin + make +} + +package() { + cd $pkgname-$pkgver-ttsiodras + make DESTDIR="$pkgdir/" install +}
\ No newline at end of file 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/sqlcipher/PKGBUILD b/pcr/sqlcipher/PKGBUILD deleted file mode 100644 index 8bcdcd3f5..000000000 --- a/pcr/sqlcipher/PKGBUILD +++ /dev/null @@ -1,28 +0,0 @@ -# Maintainer (Arch): flu -# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe> - -pkgname=sqlcipher -pkgver=3.3.1 -pkgrel=1.1 -pkgdesc="SQLite extension that provides transparent 256-bit AES encryption of database files" -arch=('i686' 'x86_64') -url="https://www.zetetic.net/sqlcipher/" -license=('BSD') -makedepends=('openssl' 'sqlite3' 'git' 'tcl') -source=(https://github.com/sqlcipher/${pkgname}/archive/v${pkgver}.tar.gz) -sha512sums=('8bcbe0d46ec109788bf58ba53eaccad189338fb3caf551096ae166c71a72ba58331bc2d1198d6c7b3f62973e004be06c6189f2539e7da664b2e4b50c5637f989') - -build() { - cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ - --enable-tempstore=yes \ - CFLAGS="$CFLAGS -DSQLITE_HAS_CODEC" LDFLAGS="-lcrypto" - make -} - -package() { - cd "$srcdir/$pkgname-$pkgver" - - make DESTDIR="$pkgdir/" install - install -D -m 0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} diff --git a/pcr/tahoe-lafs/PKGBUILD b/pcr/tahoe-lafs/PKGBUILD index 6a09409ae..bd1da4931 100644 --- a/pcr/tahoe-lafs/PKGBUILD +++ b/pcr/tahoe-lafs/PKGBUILD @@ -1,11 +1,11 @@ # Maintainer: Luke R. <g4jc@openmailbox.org> GPG: rsa4096/3EAE8697 -# Contributor (Arch): Skydrome <skydrome@i2pmail.org> +# Contributor (Arch) : Skydrome <skydrome@i2pmail.org> # Contributor (Arch): DaNiMoTh <jjdanimoth@gmail.com> # Contributor (Arch): Peter Simons <simons@cryp.to> # Contributor (Arch): Nicolas Pouillard <nicolas.pouillard@gmail.com> pkgname=tahoe-lafs -pkgver=1.10.1 +pkgver=1.10.2 pkgrel=1 pkgdesc="Secure, decentralized, and fault-tolerant filesystem." url='https://tahoe-lafs.org/trac/tahoe-lafs' @@ -16,9 +16,8 @@ BUILDENV+=(!check) depends=('openssl>=1.0.2' 'python2-twisted>=13.0.0' - 'python2-mock>=1.0.1' 'python2-pyopenssl>=0.14' - 'python2-pyasn1>=0.1.4' + 'python2-pyasn1>=0.1.8' 'python2-pyasn1-modules>=0.0.5' 'python2-zope-interface>=4.0.5' 'python2-characteristic>=14.3.0' @@ -42,20 +41,20 @@ depends=('openssl>=1.0.2' optdepends=('python2-numpy: reliability test') source=("https://tahoe-lafs.org/source/tahoe-lafs/releases/allmydata-tahoe-$pkgver.tar.bz2" -"https://tahoe-lafs.org/source/tahoe-lafs/releases/allmydata-tahoe-1.10.1.tar.bz2.asc" +"https://tahoe-lafs.org/source/tahoe-lafs/releases/allmydata-tahoe-$pkgver.tar.bz2.asc" 'PKGBUILD' 'PKGBUILD.sig') validpgpkeys=('CB6E213A349B8DF9E96B622AC3F4FFCF3EAE8697' # PKGBUILD Maintainer's key 'E34E62D06D0E69CFCA4179FFBDE0D31D68666A7A') # Tahoe-LAFS Release-Signing Key -sha512sums=('1c8a94f07f6c1d832b7ea05f5a24b410a58d7058814215794d2d600e55774aa9f015208caf281e527547a8c12ff25a989ba26fbfd8b89c57c772880857d7dd88' -'1da1eeb1d2f61f836a2f514eaff73770fa8cf3dd18950de9e159af2a4c2f13b46033b10a6bf545e96c0cf8319a88923eb2792e4aebd17f048d6b0a364dd97737' +sha512sums=('79d4e3395aa7ef8e1e7c97eebdfcb75b3b36edb75aa5d5f805c568b842b9b2f4ea5f8529dbf32fbdd9cc467cf82f153aca09310bc3b69fa00efae7be8a7bc198' +'40e5c1cbf24e44a652aaff27f7c55016900cfca0659f6a9071e22b87d0ee281b8ab76005393c92e3eabb9b364eedbd0d108ba3ea29c7f46339c68865f3bb77fe' 'SKIP' 'SKIP') build(){ gpg --verify PKGBUILD.sig PKGBUILD echo "Note: If the GPG verification fails, import the PKGBUILD maintainer's GPG key. See: https://wiki.parabola.nu/GnuPG#Import_key" - whirlpoolsum=('4150961c179dd6537dc06e1c4423026df42cd04a62c9b2ec9af35034b5fd868342459d46195422fb9638017265ea8232b381df6b6678017463e06a2ae130581a') + whirlpoolsum=('d38a362105118113aaaf34c429c4b611e37ebf10d983dff1a4a117f6802671df78805ac1950b1c01279d36d1c87bc3976fec498580117d6f9bc46912a00b792f') [[ "$(openssl dgst -r -whirlpool allmydata-tahoe-$pkgver.tar.bz2 | awk '{print $1}')" = ${whirlpoolsum} ]] && echo "Whirlpool checksum passed." || { echo "Whirlpool checksum failed!!" ; exit 1; } # This is an added security layer. If SHA512 for some unlikely reason fails, whirlpool will check and abort if it too fails to match. gpg --verify allmydata-tahoe-$pkgver.tar.bz2.asc allmydata-tahoe-$pkgver.tar.bz2 cd "${srcdir}/allmydata-tahoe-${pkgver}" diff --git a/pcr/tahoe-lafs/PKGBUILD.sig b/pcr/tahoe-lafs/PKGBUILD.sig Binary files differindex 6a3f954a5..c84c3df9a 100644 --- a/pcr/tahoe-lafs/PKGBUILD.sig +++ b/pcr/tahoe-lafs/PKGBUILD.sig 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/trytond/PKGBUILD b/pcr/trytond/PKGBUILD index 73363c2cb..806e2b439 100644 --- a/pcr/trytond/PKGBUILD +++ b/pcr/trytond/PKGBUILD @@ -2,7 +2,7 @@ # Maintainer (Arch): Robin Baumgartner <robin@baumgartners.ch> # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe> pkgname=trytond -pkgver=3.6.1 +pkgver=3.6.2 _pkgdir=3.6 pkgrel=1 pkgdesc="A three-tiers high-level general purpose application platform (server application)" @@ -21,7 +21,7 @@ install="trytond.install" source=("http://downloads.tryton.org/$_pkgdir/$pkgname-$pkgver.tar.gz" 'trytond.install' 'trytond.service') -md5sums=('8e8925b147d7cd8ce7948fc96b9348b8' +md5sums=('1f559cc07307ace005c6034d73ae88ed' '768e68c01cb5913e36ea89c67fc98038' 'b1535a8528dfd8f655624bf6faea6985') diff --git a/pcr/ttf-montserrat/PKGBUILD b/pcr/ttf-montserrat/PKGBUILD new file mode 100644 index 000000000..1069ddb19 --- /dev/null +++ b/pcr/ttf-montserrat/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Luke R. <g4jc@openmailbox.org> GPG: rsa4096/3EAE8697 +# Maintainer (Arch): EEva <eeva+aur at marvid fr> +# Contributor (Arch): scolobb <scolobb at colimite fr> #THX for the mirror + +pkgname=ttf-montserrat +provides="ttf-montserrat" +pkgdesc="Gorgeous geometric font with extended latin support (Regular, Alternates, Subrayada)" +url="http://montserrat.zkysky.com.ar/en" +pkgver=1.0 +pkgrel=1 +arch=('i686' 'x86_64') +license=('SIL Open Font') +depends= +install=ttf.install +makedepends= +#source=('http://colimite.fr/aur-mirrors/Montserrat.tar.gz') #BACKUP +source=('http://marvid.fr/~eeva/mirror/Montserrat.tar.gz') +sha512sums=('1d36ad8eb439ee2a2eee405bab2535cdf1e798e10d2e1ad93e86abb93656033d9136bda0482fd0d0f1a41473aca2078f5969a1385cdafa4ac7f667ef54f1e30e') + +package() { + cd ${srcdir}/Montserrat-fontfamily + + install -Dm644 OFL.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENCE" + + mkdir -p ${pkgdir}/usr/share/fonts/TTF + install -m644 Montserrat-Black.ttf "${pkgdir}/usr/share/fonts/TTF/Montserrat-Black.ttf" + install -m644 Montserrat-Bold.ttf "${pkgdir}/usr/share/fonts/TTF/Montserrat-Bold.ttf" + install -m644 Montserrat-Light.ttf "${pkgdir}/usr/share/fonts/TTF/Montserrat-Light.ttf" + install -m644 Montserrat-Regular.ttf "${pkgdir}/usr/share/fonts/TTF/Montserrat-Regular.ttf" + install -m644 Montserrat-Thin.ttf "${pkgdir}/usr/share/fonts/TTF/Montserrat-Thin.ttf" + install -m644 MontserratAlternates-Bold.ttf "${pkgdir}/usr/share/fonts/TTF/MontserratAlternates-Bold.ttf" + install -m644 MontserratAlternates-Regular.ttf "${pkgdir}/usr/share/fonts/TTF/MontserratAlternates-Regular.ttf" + install -m644 MontserratSubrayada-Bold.ttf "${pkgdir}/usr/share/fonts/TTF/MontserratSubrayada-Bold.ttf" + install -m644 MontserratSubrayada-Regular.ttf "${pkgdir}/usr/share/fonts/TTF/MontserratSubrayada-Regular.ttf" +}
\ No newline at end of file diff --git a/pcr/ttf-montserrat/ttf.install b/pcr/ttf-montserrat/ttf.install new file mode 100644 index 000000000..1df944e73 --- /dev/null +++ b/pcr/ttf-montserrat/ttf.install @@ -0,0 +1,15 @@ +post_install() { + echo -n "Updating font cache... " + fc-cache -sf > /dev/null + mkfontscale usr/share/fonts/TTF + mkfontdir usr/share/fonts/TTF + echo "done." +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +}
\ No newline at end of file diff --git a/pcr/twinkle/PKGBUILD b/pcr/twinkle/PKGBUILD deleted file mode 100644 index 24fd5e231..000000000 --- a/pcr/twinkle/PKGBUILD +++ /dev/null @@ -1,50 +0,0 @@ -# $Id: PKGBUILD 68598 2012-03-29 08:03:13Z arodseth $ -# Maintainer (Arch): Sergej Pupykin <pupykin.s+arch@gmail.com> -# Contributor (Arch): Jeff Mickey <jeff@archlinux.org> -# Contributor (Arch): Alexander Baldeck <alexander@archlinux.org> -# Contributor (Arch): Federico Quagliata (quaqo) <quaqo@despammed.com> -# Contributor (Arch): Alexander Rødseth <rodseth@gmail.com> - -pkgname=twinkle -pkgver=1.4.2 -pkgrel=21 -pkgdesc="Softphone for voice over IP and IM communication using SIP" -arch=('x86_64' 'i686') -url="http://www.twinklephone.com/" -license=('GPL') -depends=('file' 'speex' 'boost-libs' 'libsndfile' 'qt3' 'libzrtpcpp' -'commoncpp2' 'libxml2') -makedepends=('pkg-config' 'boost') -source=("http://www.xs4all.nl/~mfnboer/$pkgname/download/$pkgname-$pkgver.tar.gz" - twinkle-1.4.2-ccrtp.patch) -md5sums=('d70c8972f296ffd998c7fb698774705b' - '934f59ff60a8ae29a152feb8bf131ae2') - -build() { - cd "$srcdir" - patch -p0 < ./twinkle-1.4.2-ccrtp.patch || return 1 - - cd "$pkgname-$pkgver" - aclocal - autoconf - automake -a - export QTDIR=/usr/lib/qt3 - export PATH=$QTDIR/bin:$PATH - CPPFLAGS="$CPPFLAGS -I/usr/include/qt3 -I/usr/include/libzrtpcpp/" \ - ./configure --prefix=/usr \ - --without-kde \ - --with-speex \ - --without-ilbc \ - --mandir=/usr/share/man - make -} - -package() { - cd "$srcdir/$pkgname-$pkgver" - - make DESTDIR="$pkgdir" install - install -Dm644 "$pkgdir/usr/share/twinkle/twinkle48.png" \ - "$pkgdir/usr/share/pixmaps/twinkle.png" - install -Dm644 twinkle.desktop \ - "$pkgdir/usr/share/applications/twinkle.desktop" -} diff --git a/pcr/twinkle/twinkle-1.4.2-ccrtp.patch b/pcr/twinkle/twinkle-1.4.2-ccrtp.patch deleted file mode 100644 index fdb5f6260..000000000 --- a/pcr/twinkle/twinkle-1.4.2-ccrtp.patch +++ /dev/null @@ -1,24 +0,0 @@ -diff -pruN twinkle-1.4.2-o/configure.in twinkle-1.4.2/configure.in ---- twinkle-1.4.2-o/configure.in 2009-02-24 11:49:20.000000000 -0800 -+++ twinkle-1.4.2/configure.in 2012-05-19 09:20:51.151778516 -0700 -@@ -66,7 +66,7 @@ fi - - export PKG_CONFIG_PATH - --PKG_CHECK_MODULES(CCRTP, libccrtp1 >= 1.6.0) -+PKG_CHECK_MODULES(CCRTP, libccrtp >= 2.0.0) - - PKG_CHECK_MODULES(XML2, libxml-2.0) - # AC_CHECK_HEADER(libxml/tree.h, [], -diff -pruN twinkle-1.4.2-o/src/log.cpp twinkle-1.4.2/src/log.cpp ---- twinkle-1.4.2-o/src/log.cpp 2009-01-18 06:35:28.000000000 -0800 -+++ twinkle-1.4.2/src/log.cpp 2012-05-19 09:21:11.071594114 -0700 -@@ -161,7 +161,7 @@ void t_log::write_header(const string &f - - gettimeofday(&t, NULL); - date = t.tv_sec; -- localtime_r(&date, &tm); -+ ::localtime_r(&date, &tm); - - *log_stream << "+++ "; - *log_stream << tm.tm_mday; diff --git a/pcr/xf86-video-qxl/PKGBUILD b/pcr/xf86-video-qxl/PKGBUILD index 2ad0842ca..2f2d6c6ba 100644 --- a/pcr/xf86-video-qxl/PKGBUILD +++ b/pcr/xf86-video-qxl/PKGBUILD @@ -1,30 +1,44 @@ -# Contributor (Arch): Christian Hesse <mail@eworm.de> +# Maintainer (Arch): Christian Hesse <mail@eworm.de> # Contributor (Arch): Yonathan Dossow # Contributor (Arch): Ansgar Taflinski <ataflinski@uni-koblenz.de> -# Maintainer : Omar Vega Ramos <ovruni@gnu.org.pe> +# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe> pkgname=xf86-video-qxl pkgver=0.1.4 -pkgrel=1 +pkgrel=3.1 pkgdesc='Xorg X11 qxl video driver' arch=('x86_64' 'i686') url='http://www.x.org' license=('MIT') groups=('xorg-drivers') -depends=('xf86dgaproto' 'xproto' 'fontsproto' 'randrproto' 'renderproto' 'videoproto' 'resourceproto' 'scrnsaverproto' 'spice') +depends=('spice') optdepends=('python2: for Xspice') -makedepends=('xorg-server-devel' 'X-ABI-VIDEODRV_VERSION=19' 'spice-protocol') +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') -source=("http://xorg.freedesktop.org/releases/individual/driver/${pkgname}-${pkgver}.tar.bz2" +validpgpkeys=('94A9F75661F77A6168649B23A9D8C21429AC6C82') +source=("http://xorg.freedesktop.org/releases/individual/driver/${pkgname}-${pkgver}.tar.bz2"{,.sig} 'fix-cast.patch') +sha256sums=('e57ad22f0b1daf8979e722be0cc38d351bfcc2e41568edc566d2bade5a621105' + 'SKIP' + '30b09971562d82b5bc9dc26e43514ff38e5eaa680c15471194f07c9129e1e0ed') -build() { +prepare() { cd "${srcdir}/${pkgname}-${pkgver}/" + # fix cast from pointer to integer of different size patch -Np1 < "${srcdir}/fix-cast.patch" + + # this is python 2.x sed -i '1c #!/usr/bin/python2' scripts/Xspice +} - ./configure --enable-xspice \ +build() { + cd "${srcdir}/${pkgname}-${pkgver}/" + + ./configure \ + --enable-xspice \ --prefix=/usr make } @@ -35,5 +49,3 @@ package() { make DESTDIR="${pkgdir}/" install } -sha256sums=('e57ad22f0b1daf8979e722be0cc38d351bfcc2e41568edc566d2bade5a621105' - '575243334f763c21282eccd7bd4eb713b90e96fdd46a882370925fa20d4acb70') diff --git a/pcr/xf86-video-qxl/fix-cast.patch b/pcr/xf86-video-qxl/fix-cast.patch index e51beec29..55f281f14 100644 --- a/pcr/xf86-video-qxl/fix-cast.patch +++ b/pcr/xf86-video-qxl/fix-cast.patch @@ -1,14 +1,5 @@ -From d17fd8b7b503fd5d247fe75432ad192414fa2bdd Mon Sep 17 00:00:00 2001 -From: Christian Hesse <mail@eworm.de> -Date: Tue, 7 Jan 2014 08:16:48 +0100 -Subject: [PATCH 1/1] fix cast - ---- - src/spiceqxl_display.c | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - diff --git a/src/spiceqxl_display.c b/src/spiceqxl_display.c -index a3a8978..7646efc 100644 +index a3a8978..748c2db 100644 --- a/src/spiceqxl_display.c +++ b/src/spiceqxl_display.c @@ -350,6 +350,6 @@ void qxl_add_spice_display_interface(qxl_screen_t *qxl) @@ -16,10 +7,6 @@ index a3a8978..7646efc 100644 void spiceqxl_display_monitors_config(qxl_screen_t *qxl) { - spice_qxl_monitors_config_async(&qxl->display_sin, (QXLPHYSICAL)qxl->monitors_config, -- MEMSLOT_GROUP, 0); -+ spice_qxl_monitors_config_async(&qxl->display_sin, -+ (QXLPHYSICAL)(uintptr_t)qxl->monitors_config, MEMSLOT_GROUP, 0); ++ spice_qxl_monitors_config_async(&qxl->display_sin, qxl->monitors_config, + MEMSLOT_GROUP, 0); } --- -1.8.5.2 - diff --git a/pcr/xfce-theme-greybird/PKGBUILD b/pcr/xfce-theme-greybird/PKGBUILD index ab153657a..f780a0de1 100644 --- a/pcr/xfce-theme-greybird/PKGBUILD +++ b/pcr/xfce-theme-greybird/PKGBUILD @@ -16,9 +16,9 @@ pkgname=xfce-theme-greybird _pkgname=Greybird -pkgver=1.6 -pkgrel=0 -pkgdesc="A grey and blue Xfce theme, used by default in Xubuntu 12.04" +pkgver=1.6.1 +pkgrel=1 +pkgdesc="A grey and blue Xfce theme" arch=(any) url=http://shimmerproject.org/projects/greybird/ license=(CCPL:by-sa-3.0 GPL) @@ -32,7 +32,7 @@ optdepends=('elementary-xfce-icons: matching icon set; use the dark icon theme' 'lib32-gtk-engine-murrine: required for multilib') conflicts=($pkgname-git) source=($pkgname-$pkgver.tar.gz::https://github.com/shimmerproject/$_pkgname/archive/v$pkgver.tar.gz) -sha512sums=('3a68d8c76998db5a25060185c7e5707b3b653f8b50883d38c66b7bdfc2dd4fdfd69537cc0a2bc86c8784815a4fcc877735f78562b80ee89f63e4311e7183f0d2') +sha512sums=('aa24688505567f31f62f830afd9fbcd2418571fd5a90e61dc71b6f3416352d3f549e2c5054ec8ecd20e83596b255ef262eccfcfc04761ac9dfab6323e3f6a383') diff --git a/pcr/yencode/PKGBUILD b/pcr/yencode/PKGBUILD new file mode 100644 index 000000000..50226a8e3 --- /dev/null +++ b/pcr/yencode/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: Luke R. <g4jc@openmailbox.org> GPG: rsa4096/3EAE8697 + +pkgname=yencode +pkgver=0.46 +pkgrel=1 +pkgdesc="Powerful encoder/decoder for the Usenet yEnc file format. Features include easy configuration, internationalization, memory efficiency, and an intelligent decoder capable of finding and decoding input files, including out-of-order files." +arch=('i686' 'x86_64') +url="http://sourceforge.net/projects/yencode/" +license=('GPL2') +makedepends=('gcc') +source=("https://downloads.sourceforge.net/sourceforge/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz") +sha512sums=('5883ec76f2ef3b857f09c79c63f47e2a1cf0354dbc06ff11cafecfda1112c638283ea3a987f906286ccc9dbe9d57f5f35b06ec1c3404dfc46465e722410d34a8') + +build() { + cd $pkgname-$pkgver + ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --sbindir=/usr/bin + make +} + +package() { + cd $pkgname-$pkgver + ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --sbindir=/usr/bin + make DESTDIR="$pkgdir/" install + install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING" +}
\ No newline at end of file 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: diff --git a/pcr/zpaq/LICENSE b/pcr/zpaq/LICENSE new file mode 100644 index 000000000..005cf5caa --- /dev/null +++ b/pcr/zpaq/LICENSE @@ -0,0 +1,4 @@ +I, Matt Mahoney, release this software into the public domain. This applies +worldwide. In some countries this may not be legally possible; if so: I grant +anyone the right to use this software for any purpose, without any conditions, +unless such conditions are required by law. diff --git a/pcr/zpaq/PKGBUILD b/pcr/zpaq/PKGBUILD new file mode 100644 index 000000000..5021656d1 --- /dev/null +++ b/pcr/zpaq/PKGBUILD @@ -0,0 +1,57 @@ +# Maintainer: Luke R. <g4jc@openmailbox.org> GPG: rsa4096/3EAE8697 +# Contributor (Arch): Marco Schulze <aur@ereski.org> +# Contributor (Arch): TuxSpirit<tuxpsiritATarchlinuxDOTfr> +# Contributor (Arch): Jan Stępień <jstepien@users.sourceforge.net> + + +pkgname=zpaq +pkgdesc='Programmable file compressor, library and utilities. Based on the PAQ compression algorithm' +url='http://mattmahoney.net/dc/zpaq.html' +pkgver=7.05 +pkgrel=1 + +_zpaq_ver=705 + +arch=(i686 x86_64) +license=(custom MIT) +makedepends=(perl) + +source=(http://mattmahoney.net/dc/zpaq${_zpaq_ver}.zip + LICENSE) +sha512sums=('1bcd22524b0433cc35ee28217eec04e1e743ec84e8ec7fe4392eb511873ff5c8571435da081de6b54a9675f206537f5d091a682383c84607905731ee132a9e66' + '7ae68096163998f926be15c16da9540fa32d052a02d73db10678d965db5dfdf7e958b2d474c509d622056cc844abceda15657f2b0b5e97f6b12cb552185748e4') + +build() +{ + cd "$srcdir" + + if [ -z "$CC" ] + then + CC=gcc + fi + if [ -z "$CXX" ] + then + CXX=g++ + fi + + msg 'Building libzpaq' + $CXX $CXXFLAGS $LDFLAGS -fPIC -shared -Dunix -DNDEBUG libzpaq.cpp -o libzpaq.so + + msg 'Building zpaq' + $CXX ${CXXFLAGS/-flto} ${LDFLAGS/-flto} -pthread -Dunix -DNDEBUG zpaq.cpp -L. -lzpaq -o zpaq + + msg 'Building man page' + pod2man zpaq.pod zpaq.1 + gzip -9 zpaq.1 +} + + +package() +{ + install -Dm 644 libzpaq.h "$pkgdir/usr/include/libzpaq.h" + install -Dm 644 libzpaq.so "$pkgdir/usr/lib/libzpaq.so" + install -Dm 755 zpaq "$pkgdir/usr/bin/zpaq" + install -Dm 644 zpaq.1.gz "$pkgdir/usr/share/man/man1/zpaq.1.gz" + install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE" +} + |