summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 71e7f21a067efd48a137da6b0a3e80fa028f7de5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Maintainer: Aleksandr Boiko <brdcom@ya.ru>
pkgname=bginetaccess
_basename=bgbilling
_pkgname=BGInetAccess
_major=6.1
_minor=23
pkgver=$_major.$_minor
pkgrel=1
pkgdesc="Access server for BGBilling"
arch=('i686' 'x86_64') 
url="http://bgbilling.ru"
license=('custom')
depends=('bgbilling')
makedepends=('unzip' 'dos2unix')
source=("ftp://bgbilling.ru/pub/${_basename}/${_major}/data/${_pkgname}_${_major}_${_minor}.zip"
        'bginetaccess.service'
        'setenv.sh.patch')

package() {
  install -d -m0755 ${pkgdir}/opt
  mv ./${_pkgname} ${pkgdir}/opt/${pkgname}

  install -D -m 644 $pkgname.service "$pkgdir/usr/lib/systemd/system/$pkgname.service"
  
# putting the appropriate access rights to the startup scripts
  cd ${pkgdir}/opt/${pkgname}
  chmod 0744 *.sh

# patch
  patch -p0 <"${srcdir}/setenv.sh.patch"

# converting files to Unix format
  dos2unix *.sh

# remove win files
  rm -rf *.ini
  rm -rf *.bat
  rm -rf *.exe

# remove junk files
  rm -rf ./script
}

# vim:set ts=2 sw=2 ft=sh et:
md5sums=('f2bae56657087a2e1e431465e7d96a04'
         'acb8868e7ee91338d3395cc536e2a52a'
         'dae4f113fa23e562270e1d935a2a3a12')