summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorle342019-10-21 14:47:45 +1100
committerle342019-10-21 14:47:45 +1100
commit4c488274dd4292f14d233ae57f62c0f3b9193afd (patch)
tree37497b7e602c36db116c3e334e632b9335a1e101
parentb5b38db69859f2c1ab3f03a54fc74d2324b0142b (diff)
downloadaur-4c488274dd4292f14d233ae57f62c0f3b9193afd.tar.gz
Other improvement
-rw-r--r--PKGBUILD32
1 files changed, 18 insertions, 14 deletions
diff --git a/PKGBUILD b/PKGBUILD
index be96b6b69f3..245e9870526 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,29 +1,34 @@
-# Maintainer: Aleksandr Boiko <brdcom@ya.ru>
+# Maintainer: Aleksandr <contact at via dot aur>
pkgname=bginetaccess
_basename=bgbilling
_pkgname=BGInetAccess
-_major=7.0
-_minor=39
+_major=7.1
+_minor=48
pkgver=$_major.$_minor
pkgrel=1
pkgdesc="Access server for BGBilling"
arch=('i686' 'x86_64')
url="http://bgbilling.ru"
license=('custom')
-depends=('bgbilling')
+depends=('jdk8')
makedepends=('unzip' 'dos2unix')
-source=("ftp://bgbilling.ru/pub/${_basename}/${_major}/data/${_pkgname}_${_major}_${_minor}.zip"
- 'bginetaccess.service')
+source=("ftp://bgbilling.ru/pub/${_basename}/${_major}/data/${_pkgname}_${_major}_${_minor}.zip")
+
+prepare() {
+ sed -i 's|#JAVA_HOME=|JAVA_HOME=/usr/lib/jvm/java-8-jdk|' \
+ "./${_pkgname}/setenv.sh"
+}
package() {
- install -d -m0755 ${pkgdir}/opt
- mv ./${_pkgname} ${pkgdir}/opt/${pkgname}
+ install -d -m0755 ${pkgdir}/opt/${_basename}
+ mv ./${_pkgname} ${pkgdir}/opt/${_basename}/${_pkgname}
- install -D -m 644 $pkgname.service "$pkgdir/usr/lib/systemd/system/$pkgname.service"
+ install -D -m 644 ${pkgdir}/opt/${_basename}/${_pkgname}/script/inet-access.service "$pkgdir/usr/lib/systemd/system/$pkgname.service"
# putting the appropriate access rights to the startup scripts
- cd ${pkgdir}/opt/${pkgname}
- chmod 0744 *.sh
+ cd ${pkgdir}/opt/${_basename}/${_pkgname}
+ chmod +x *.sh
+ chmod +x script/*.sh
# patch
# patch -p0 <"${srcdir}/setenv.sh.patch"
@@ -37,9 +42,8 @@ package() {
rm -rf *.exe
# remove junk files
- rm -rf ./script
+ #rm -rf ./script
}
# vim:set ts=2 sw=2 ft=sh et:
-md5sums=('d0abbb62f999c67b6b8ebc4d610cdae8'
- 'acb8868e7ee91338d3395cc536e2a52a')
+md5sums=('5774e9fb7d0560edadd513fd1e8464a8')