summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 03039fcae4975bb595925c9f1089e88f66daa5eb (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Maintainer: dracorp aka Piotr Rogoza <piotr.r.public at gmail.com>

pkgname=a2enmod-git
pkgver=1.2.r1.g5ff0dc9
pkgrel=2
pkgdesc='Apache enable/disable module/site. From Debian package.'
arch=('any')
url='https://httpd.apache.org/'
license=('APACHE')
depends=(
apache
perl
)
optdepends=(
'php-apache: php support'
'openssl: https support, to generate a certificate'
)
makedepends=(git)
provides=(a2enmod)
conflicts=(a2enmod)
replaces=(a2enmod)
_mods_dir='etc/httpd/conf/mods-available'
backup=(
${_mods_dir}/actions.conf
${_mods_dir}/alias.conf
${_mods_dir}/autoindex.conf
${_mods_dir}/cgid.conf
${_mods_dir}/dav_fs.conf
${_mods_dir}/dav_svn.conf
${_mods_dir}/deflate.conf
${_mods_dir}/dir.conf
${_mods_dir}/disk_cache.conf
${_mods_dir}/dnssd.conf
${_mods_dir}/fastcgi.conf
${_mods_dir}/fcgid.conf
${_mods_dir}/info.conf
${_mods_dir}/ldap.conf
${_mods_dir}/mem_cache.conf
${_mods_dir}/mime.conf
${_mods_dir}/mime_magic.conf
${_mods_dir}/mod-security.conf
${_mods_dir}/mono.conf
${_mods_dir}/negotiation.conf
${_mods_dir}/pagespeed.conf
${_mods_dir}/perl.conf
${_mods_dir}/php5_cgi.conf
${_mods_dir}/php5.conf
${_mods_dir}/proxy_balancer.conf
${_mods_dir}/proxy.conf
${_mods_dir}/proxy_ftp.conf
${_mods_dir}/qos.conf
${_mods_dir}/reqtimeout.conf
${_mods_dir}/rpaf.conf
${_mods_dir}/setenvif.conf
${_mods_dir}/ssl.conf
${_mods_dir}/status.conf
${_mods_dir}/suphp.conf
${_mods_dir}/userdir.conf
${_mods_dir}/vhost_alias.conf
etc/httpd/conf/ports.conf
etc/httpd/conf/sites-available/default
etc/httpd/conf/sites-available/default-ssl
etc/httpd/conf/conf.d/charset
etc/httpd/conf/conf.d/localized-error-pages
etc/httpd/conf/conf.d/other-vhosts-access-log
etc/httpd/conf/conf.d/security
)
options=(emptydirs !strip)
install='a2enmod.install'
source=('git+https://github.com/dracorp/a2enmod.git')
_gitname='a2enmod'
md5sums=('SKIP')
pkgver() {
  if [ -d "$srcdir"/$_gitname ]; then
    cd "$srcdir"/$_gitname
    ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" )
  fi
}
package(){
  cd "$srcdir"/$_gitname
  make DESTDIR="$pkgdir" SBINDIR=/usr/bin install
}