Advertisement
AnesCDev

Untitled

Nov 18th, 2021
3,383
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.82 KB | None | 0 0
  1. #------------------------------------------------------
  2. # Maintainer : sgar swhaat at github
  3. # Contributor : Angel_Caido <geussepe at gmail dot com>
  4. # Contributor : Sam Stuewe <halosghost at archlinux dot info>
  5.  
  6. pkgname=(epoptes epoptes-client)
  7. pkgbase=epoptes-client
  8. pkgrel=1
  9. pkgver=21.02
  10. pkgdesc='An opensource computer lab management and monitoring tool'
  11. makedepends=(git python-distutils-extra)
  12. url='https://github.com/Epoptes/epoptes'
  13. license=(GPL3)
  14. arch=(any)
  15. source=("git+https://github.com/Epoptes/epoptes.git#tag=v${pkgver}")
  16. sha256sums=('SKIP')
  17.  
  18. prepare()
  19. {
  20. cd "${srcdir}/epoptes"
  21. sed -i "57 a\ \trequires=''," setup.py
  22. python setup.py clean
  23. python setup.py config
  24. }
  25.  
  26. package_epoptes()
  27. {
  28. depends=(gobject-introspection
  29. gtk3
  30. inetutils
  31. iperf
  32. iproute2
  33. libfaketime
  34. libnotify
  35. librsvg
  36. notification-daemon
  37. openssl
  38. python-cairo
  39. python-dbus
  40. python-gobject
  41. python-netifaces
  42. python-pyopenssl
  43. python-service-identity
  44. python-twisted
  45. socat
  46. tigervnc
  47. x11vnc
  48. xterm)
  49. optdepends=('xfce4-notifyd: XFCE notification support')
  50. install=epoptes.install
  51.  
  52. cd "${srcdir}/epoptes"
  53. python setup.py install --root="${pkgdir}/" --optimize=1
  54.  
  55. install -m644 -D "${srcdir}/epoptes/debian/${pkgname}.service" \
  56. "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
  57. install -m644 -D "${srcdir}/epoptes/debian/${pkgname}.default" \
  58. "${pkgdir}/etc/default/${pkgname}"
  59. install -m644 -D "${srcdir}/epoptes/debian/copyright" \
  60. "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  61.  
  62. rm -r "${pkgdir}/usr/sbin" "${pkgdir}/etc/xdg"
  63.  
  64. mkdir "${pkgdir}/etc/epoptes"
  65.  
  66. _rmdirs="epoptes-client man/man8"
  67. for rmdir in $(echo $_rmdirs)
  68. do
  69. rm -r "${pkgdir}/usr/share/${rmdir}"
  70. done
  71. }
  72.  
  73. package_epoptes-client()
  74. {
  75. depends=(ethtool
  76. inetutils
  77. iperf
  78. iproute2
  79. libnotify
  80. librsvg
  81. openssl
  82. procps-ng
  83. python-twisted
  84. python-gobject
  85. python-cairo
  86. screen
  87. socat
  88. tigervnc
  89. x11vnc
  90. xterm)
  91. optdepends=('xfce4-notifyd: XFCE notification support'
  92. 'cups: printing support'
  93. 'sane: scanners support')
  94.  
  95. cd "${srcdir}/epoptes"
  96. python setup.py install --root="${pkgdir}/" --optimize=1
  97.  
  98. install -m644 -D "${srcdir}/epoptes/debian/${pkgname}.service" \
  99. "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
  100. install -m644 -D "${srcdir}/epoptes/debian/${pkgname}.default" \
  101. "${pkgdir}/etc/default/${pkgname}"
  102. install -m644 -D "${srcdir}/epoptes/debian/copyright" \
  103. "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  104.  
  105. rm -r "${pkgdir}/usr/bin" "${pkgdir}/usr/lib/python3.9"
  106.  
  107. mv "${pkgdir}/usr/sbin" "${pkgdir}/usr/bin"
  108.  
  109. _rmdirs="applications doc epoptes icons locale ltsp man/man1"
  110. for rmdir in $(echo $_rmdirs)
  111. do
  112. rm -r "${pkgdir}/usr/share/${rmdir}"
  113. done
  114. }
  115. #------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement