PKGBUILD 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. # Maintainer (Artix): artoo <artoo@cromnix.org>
  2. # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
  3. # Maintainer: David P <megver83@parabola.nu>
  4. pkgver=20201202 # date +%Y%m%d
  5. _commit=5cf13c1eee7fdb74078d79a2c85d1fe2fdde192c
  6. _url="https://raw.githubusercontent.com/gentoo/gentoo/${_commit}"
  7. pkgbase=openrc-desktop
  8. pkgname=('acpid-openrc'
  9. 'alsa-utils-openrc'
  10. 'avahi-openrc'
  11. 'bluez-openrc'
  12. 'displaymanager-openrc'
  13. 'gpm-openrc'
  14. 'wpa_supplicant-openrc'
  15. 'chrony-openrc'
  16. 'tlp-openrc')
  17. pkgrel=1
  18. arch=('any')
  19. url='https://github.com/gentoo/gentoo'
  20. license=('GPL2')
  21. groups=('openrc-desktop')
  22. source=('acpid.confd'
  23. 'acpid.initd'
  24. "alsasound.confd::${_url}/media-sound/alsa-utils/files/alsasound.confd-r4"
  25. "alsasound.initd::${_url}/media-sound/alsa-utils/files/alsasound.initd-r8"
  26. 'avahi-daemon.initd'
  27. 'avahi-dnsconfd.initd'
  28. 'autoipd-openrc.sh'
  29. 'bluetoothd.initd'
  30. 'xdm.confd'
  31. 'xdm.initd'
  32. 'xdm-setup.initd'
  33. 'startDM.sh'
  34. "gpm.confd::${_url}/sys-libs/gpm/files/gpm.conf.d"
  35. "gpm.initd::${_url}/sys-libs/gpm/files/gpm.rc6-2"
  36. "wpa_supplicant.confd::${_url}/net-wireless/wpa_supplicant/files/wpa_supplicant-conf.d"
  37. "wpa_supplicant.initd::${_url}/net-wireless/wpa_supplicant/files/wpa_supplicant-init.d"
  38. "${_url}/net-wireless/wpa_supplicant/files/wpa_cli.sh"
  39. "chronyd.confd::${_url}/net-misc/chrony/files/chronyd.conf-r1"
  40. "chronyd.initd::${_url}/net-misc/chrony/files/chronyd.init-r2"
  41. "tlp.initd::https://git.hyperbola.info:50100/packages/community.git/plain/tlp/tlp.initd?id=241231d55f767d87e9cc883feb84b7f42a44434e")
  42. sha256sums=('3755d4eb8bb64a1304e5defedb949305ac550565da36fe4f94d5f31beee821ba'
  43. '5dcf5721a129b3782c13fc453853c390c34e2ad4ee00706388ce014454b063ee'
  44. 'd1c55400b701a72dcb8bb85e016b5013fa3eb6a2766ffc20dae278d0ee4c1a43'
  45. '37495f08f2aeb934180c1fb0ef6528f8108a41b614be1fe4f596c783871ce68b'
  46. '876788303553fe773e64917f76f0208f5e8adf7b91d4af24aa9d6a68a147d646'
  47. 'e128576d72981e402ff106bb481108ab6d5ba941ab1b0f5f53e96a7831fc1d15'
  48. '064a4cedc00f67e93a6f2ef99489e2614305a673a75a2135010283e99da6d6bf'
  49. 'b80a38737be3a1112bc52d2474e8ece3adb405a92623cfb36c3df5aed99ebf51'
  50. '24dc07139087bd2261eb2de268ae5228a37a4db4fc695a7d9e647d95c36044df'
  51. 'a65d8c3a0210e4ec336f6b19900122d3a27c097893773aaf5c7de91d96399b36'
  52. 'cb49240e32b5bb22d7764890e765c94276ec66b597caeacd5121618f614c3bec'
  53. '28dbefc67b332712273047ff0a5776b379217368f9a572665b43c2f486591058'
  54. '73e7483fdc4b12ab4225a4cb13bbe7da71b07b9e69b17e3a6a4c63cb5e2287c8'
  55. 'b48fd8ef0c4e64ca3f3ada72e8e2148a276f86bf3cbb1a165504058bd15385c1'
  56. '27833f60a091464612e74e6171cc98c3e3f994e2fde0ccc4535dd0d84ed041fa'
  57. '98985142371d39ea6294d757e85a3d3fc9fc21718063afbf81869e1d2ca648a7'
  58. 'f3aa34b99a90213c53496f8ea014c487266338791f3526043a7fd97adc651fc6'
  59. 'a55216d5bc267004ebfd16f3371acaf04953b9cfdbc55518b26c80492584f647'
  60. 'fc2ff6922c4b64686bba9c6f482a64b2bebc1156d63e09f49adb0ffcfb240a1c'
  61. '10428455ffe5812d45d9008f1cacbb5351b71566faf6329b8101ba71e213d36a')
  62. _inst_initd(){
  63. install -Dm755 ${srcdir}/$1.initd ${pkgdir}/etc/init.d/$1
  64. local _sed_args=()
  65. sed -e 's|#!/sbin/openrc-run|#!/usr/bin/openrc-run|g' \
  66. -e 's|/var/run|/run|g' \
  67. -e 's|/usr/sbin|/usr/bin|g' \
  68. -e 's|/sbin|/usr/bin|g' \
  69. -i ${pkgdir}/etc/init.d/$1
  70. }
  71. _inst_confd(){
  72. install -Dm755 ${srcdir}/$1.confd ${pkgdir}/etc/conf.d/$1
  73. }
  74. package_acpid-openrc() {
  75. pkgdesc="OpenRC acpid init script"
  76. depends=('openrc' 'acpid')
  77. backup=('etc/conf.d/acpid')
  78. _inst_confd 'acpid'
  79. _inst_initd 'acpid'
  80. }
  81. package_alsa-utils-openrc() {
  82. pkgdesc="OpenRC alsa-utils init script"
  83. depends=('openrc' 'alsa-utils')
  84. backup=('etc/conf.d/alsasound')
  85. _inst_confd 'alsasound'
  86. _inst_initd 'alsasound'
  87. }
  88. package_avahi-openrc() {
  89. pkgdesc="OpenRC avahi init script"
  90. depends=('avahi' 'dbus-openrc')
  91. _inst_initd 'avahi-daemon'
  92. _inst_initd 'avahi-dnsconfd'
  93. install -Dm755 autoipd-openrc.sh ${pkgdir}/usr/lib/netifrc/net/autoipd.sh
  94. }
  95. package_bluez-openrc() {
  96. pkgdesc="OpenRC bluez init script"
  97. depends=('bluez' 'openrc')
  98. _inst_initd 'bluetoothd'
  99. }
  100. package_displaymanager-openrc() {
  101. pkgdesc="OpenRC display manager init script"
  102. depends=('xorg-server' 'xorg-xinit' 'openrc')
  103. backup=('etc/conf.d/xdm')
  104. install=displaymanager.install
  105. _inst_confd 'xdm'
  106. _inst_initd 'xdm'
  107. _inst_initd 'xdm-setup'
  108. install -Dm755 "${srcdir}/startDM.sh" "${pkgdir}/etc/X11/startDM.sh"
  109. }
  110. package_gpm-openrc() {
  111. pkgdesc="OpenRC gpm init script"
  112. depends=('openrc' 'gpm')
  113. backup=('etc/conf.d/gpm')
  114. _inst_confd 'gpm'
  115. _inst_initd 'gpm'
  116. }
  117. package_wpa_supplicant-openrc() {
  118. pkgdesc="OpenRC wpa_supplicant init script"
  119. depends=('openrc' 'wpa_supplicant')
  120. backup=('etc/conf.d/wpa_supplicant')
  121. _inst_confd 'wpa_supplicant'
  122. _inst_initd 'wpa_supplicant'
  123. install -Dm755 "${srcdir}/wpa_cli.sh" "${pkgdir}/etc/wpa_supplicant/wpa_cli.sh"
  124. sed -e "s|gentoo-release|parabola-release|" -i "${pkgdir}/etc/wpa_supplicant/wpa_cli.sh"
  125. }
  126. package_chrony-openrc() {
  127. pkgdesc="OpenRC chrony init script"
  128. depends=('openrc' 'chrony')
  129. backup=('etc/conf.d/chronyd')
  130. _inst_confd 'chronyd'
  131. sed -e 's|ARGS=".*"|ARGS=""|' \
  132. -e 's|CFGFILE=".*"|CFGFILE="/etc/chrony.conf"|' \
  133. -i "${pkgdir}/etc/conf.d/chronyd"
  134. _inst_initd 'chronyd'
  135. sed -e 's|/sbin|/usr/bin|' \
  136. -e 's|/etc/chrony/|/etc/|' \
  137. -i "${pkgdir}/etc/init.d/chronyd"
  138. }
  139. package_tlp-openrc() {
  140. pkgdesc="OpenRC tlp init script"
  141. depends=('openrc' 'tlp')
  142. _inst_initd 'tlp'
  143. sed -e 's|/usr/sbin|/usr/bin|' \
  144. -e 's|/sbin/openrc-run|/usr/bin/openrc-run|' \
  145. -i "${pkgdir}/etc/init.d/tlp"
  146. }