Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 81 lines (69 sloc) 3.141 kb
cf39403 @joschi Update cassandra 1.1.8-1 from AUR
authored
1 # Maintainer: Guillaume ALAUX <guillaume at alaux dot net>
1c71c09 @joschi Added cassandra 1.1.2-1
authored
2 # Contributor: Thomas Dziedzic < gostrc at gmail >
cf39403 @joschi Update cassandra 1.1.8-1 from AUR
authored
3 # Contributor: Konstantin Nikiforov <helllamer@gmail.com>
4 # Contributor: Alper Kanat <alperkanat@raptiye.org>
1c71c09 @joschi Added cassandra 1.1.2-1
authored
5
6 # check() function is used to verify GPG signature. check() imports 3 keys into your GPG keyring at first build.
7 # See http://scarybeastsecurity.blogspot.com/2011/07/alert-vsftpd-download-backdoored.html for reason of this step.
8 # If you have problems with gpg, you can remove check() function, and all will be ok.
9
10 pkgname=cassandra
88663c1 @joschi Version bump cassandra 1.2.2-1
authored
11 pkgver=1.2.2
1c71c09 @joschi Added cassandra 1.1.2-1
authored
12 pkgrel=1
cf39403 @joschi Update cassandra 1.1.8-1 from AUR
authored
13 pkgdesc='NoSQL database (precompiled version)'
1c71c09 @joschi Added cassandra 1.1.2-1
authored
14 arch=('any')
cf39403 @joschi Update cassandra 1.1.8-1 from AUR
authored
15 url='http://cassandra.apache.org/'
1c71c09 @joschi Added cassandra 1.1.2-1
authored
16 license=('APACHE')
17 depends=('java-runtime')
18 makedepends=('gnupg')
cf39403 @joschi Update cassandra 1.1.8-1 from AUR
authored
19 checkdepends=('wget')
20 optdepends=('python: to use Python CLI administration scripts')
21 backup=(etc/cassandra/cassandra-env.sh
22 etc/cassandra/cassandra-rackdc.properties
23 etc/cassandra/cassandra-topology.properties
24 etc/cassandra/cassandra.yaml
25 etc/cassandra/commitlog_archiving.properties
26 etc/cassandra/log4j-server.properties
27 etc/cassandra/log4j-tools.properties)
28 _url_tgz="http://apache.mirror.anlx.net/${pkgname}/${pkgver}/apache-${pkgname}-${pkgver}-bin.tar.gz"
29 source=(${_url_tgz}
30 cassandra.rc.d
31 cassandra.service.systemd)
88663c1 @joschi Version bump cassandra 1.2.2-1
authored
32 md5sums=('3ddca9d7eb1129b3975ad7ad1fa8e891'
33 '19d01c3e8c967fa4fc4456f53b36f9fd'
34 'aa03bc87b3d139f8e5e747661e7588f2')
1c71c09 @joschi Added cassandra 1.1.2-1
authored
35
36 ## to check gpg signature
37 check() {
cf39403 @joschi Update cassandra 1.1.8-1 from AUR
authored
38 msg "Checking GPG signature..."
39 msg2 "(To disable gpg-check: build with '--nocheck')"
40 gpg --list-keys | grep 'sylvain@datastax.com' || {
41 _url_keys='https://www.apache.org/dist/cassandra/KEYS'
42 msg "No maintainers' GPG keys found. Importing from ${_url_keys} ..."
43 wget --quiet -O - ${_url_keys} | gpg --import -
44 }
45 # no need to add signature to package dependences
46 echo "${_url_tgz}.asc"
47 wget --quiet -O - "${_url_tgz}.asc" | gpg --verify - "apache-${pkgname}-${pkgver}-bin.tar.gz"
48 msg2 "Detached GPG signature is valid."
1c71c09 @joschi Added cassandra 1.1.2-1
authored
49 }
50
51 package() {
cf39403 @joschi Update cassandra 1.1.8-1 from AUR
authored
52 cd ${srcdir}/apache-cassandra-${pkgver}
1c71c09 @joschi Added cassandra 1.1.2-1
authored
53
cf39403 @joschi Update cassandra 1.1.8-1 from AUR
authored
54 mkdir -p ${pkgdir}/{usr/bin,etc/cassandra,var/log/cassandra,var/log/cassandra}
55 mkdir -p ${pkgdir}/{usr/bin,usr/share/cassandra,usr/share/java/cassandra}
1c71c09 @joschi Added cassandra 1.1.2-1
authored
56
cf39403 @joschi Update cassandra 1.1.8-1 from AUR
authored
57 cp -a interface pylib tools ${pkgdir}/usr/share/cassandra/
1c71c09 @joschi Added cassandra 1.1.2-1
authored
58
cf39403 @joschi Update cassandra 1.1.8-1 from AUR
authored
59 mkdir -p ${pkgdir}/usr/share/cassandra/bin/
60 for f in bin/*; do
61 if [[ ! "${f}" == *.bat && -x ${f} ]]; then
62 cp -a ${f} ${pkgdir}/usr/share/cassandra/bin/
63 ln -s /usr/share/cassandra/${f} ${pkgdir}/usr/${f}
64 fi
65 done
66 sed -i 's_`dirname $0`/.._/usr/share/cassandra_' bin/cassandra.in.sh
67 cp -a bin/cassandra.in.sh ${pkgdir}/usr/share/cassandra/
1c71c09 @joschi Added cassandra 1.1.2-1
authored
68
cf39403 @joschi Update cassandra 1.1.8-1 from AUR
authored
69 cp -a lib/* ${pkgdir}/usr/share/java/cassandra/
70 ln -s ../java/cassandra ${pkgdir}/usr/share/cassandra/lib
1c71c09 @joschi Added cassandra 1.1.2-1
authored
71
cf39403 @joschi Update cassandra 1.1.8-1 from AUR
authored
72 cp -a conf/* ${pkgdir}/etc/cassandra/
73 ln -s /etc/cassandra ${pkgdir}/usr/share/cassandra/conf
1c71c09 @joschi Added cassandra 1.1.2-1
authored
74
cf39403 @joschi Update cassandra 1.1.8-1 from AUR
authored
75 install -D -m755 ${srcdir}/cassandra.rc.d ${pkgdir}/etc/rc.d/cassandra
76 install -Dm644 ${srcdir}/cassandra.service.systemd \
77 ${pkgdir}/lib/systemd/system/cassandra.service
1c71c09 @joschi Added cassandra 1.1.2-1
authored
78
cf39403 @joschi Update cassandra 1.1.8-1 from AUR
authored
79 chown http:log ${pkgdir}/var/log/cassandra
1c71c09 @joschi Added cassandra 1.1.2-1
authored
80 }
Something went wrong with that request. Please try again.