4 pkgdesc="assist and improve longitudinal medical care"
6 url="http://wiki.gnumed.de/bin/view/Gnumed"
8 # dependencies from net_install-gnumed_server.sh
9 # which ones are optional ?
10 # missing: anacron, it is in AUR repository
11 depends=('gnumed-client' 'postgresql' 'dcron' 'tar' 'coreutils' 'mailx' 'openssl' 'bzip2' 'gzip' 'gnupg' 'mc' 'rsync' 'python-psycopg2' 'sudo' 'wget')
17 install=('gnumed-server.install')
18 source=(http://www.gnumed.de/downloads/server/v15/$pkgname.$pkgver.tgz)
19 md5sums=('6ceefb68dfa0f59d13e9426c5b6e630b')
23 cd "$srcdir/$pkgname.$pkgver"
25 mkdir -p $pkgdir/usr/bin
26 mkdir -p $pkgdir/usr/lib/gnumed/server/bootstrap
27 mkdir -p $pkgdir/var/log/gnumed/server
30 mkdir -p $pkgdir/usr/lib/gnumed/server
31 cp -r * $pkgdir/usr/lib/gnumed/server
33 # silent bootstrap process by setting interactive to 'no' and set 'gm-dbo' as default password
34 for conffile in `find $pkgdir/usr/lib/gnumed/server/bootstrap -maxdepth 1 -type f -name \*.conf` ; do \
35 sed -i 's/^\(interactive[[:space:]]*=[[:space:]]*\)yes/\1no/' "$conffile" ; \
36 sed -i 's/^\(password[[:space:]]*=[[:space:]]*\)/\1 gm-dbo/' "$conffile" ; \
40 cp *.sh $pkgdir/usr/bin
41 cp gm-bootstrap_server $pkgdir/usr/bin
43 echo "$pkgver" > $pkgdir/usr/lib/gnumed/server/version.txt