summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6713924b72b8aca34d065fcd7af3c4d0f6f7e88c (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: Web Dawg <webdawg@hackspherelabs.com>
# Copied from solr build: Tom Richards <tom@tomrichards.net> (InDirect)

# gpg statement:
# you will need to import keys for this to install
# official keys are located here:
# https://www.apache.org/dist/nutch/KEYS
# which after download you can import with:
# gpg --import KEYS
# or you can just import the one key used to
# sign this package from a key server:
# gpg --recv-keys DB7B5199121C08A5C8F4052B3A4717F048BAEBF6

# this package was tested with openjdk version "1.8.0_102"
# or v8...
# this package was also tested with ant version:
# Apache Ant(TM) version 1.9.7 compiled on April 24 2016

# READ THIS READ THIS READ THIS READ THIS READ THIS
# READ THIS READ THIS READ THIS READ THIS READ THIS
# READ THIS READ THIS READ THIS READ THIS READ THIS

# THE MOST IMPORTANT MESSAGE OF ALL:
# THIS PACKAGE DOES NOT BACKUP ANY CONFIGURATION FILES AT THIS POINT
# I AM NOT SURE WHAT TO PRESERVE AS NUTCH IS SO DYNAMIC

# READ THIS READ THIS READ THIS READ THIS READ THIS
# READ THIS READ THIS READ THIS READ THIS READ THIS
# READ THIS READ THIS READ THIS READ THIS READ THIS


validpgpkeys=("DB7B5199121C08A5C8F4052B3A4717F048BAEBF6")

pkgname=nutch
pkgver=2.3.1
pkgrel=1
pkgdesc="Highly extensible and scalable open source web crawler software project."
arch=('any')
license=('Apache')
url="https://nutch.apache.org/"
depends=('java-runtime-headless>=8')
makedepends=(
	'apache-ant'
	)

# current url syntax:  http://archive.apache.org/dist/nutch/2.3.1/apache-nutch-2.3.1-src.tar.gz

source=("https://archive.apache.org/dist/$pkgname/$pkgver/apache-$pkgname-$pkgver-src.tar.gz"
        "nutch.service"
	"https://archive.apache.org/dist/$pkgname/$pkgver/apache-$pkgname-$pkgver-src.tar.gz.asc"
	"StartNutchServer.bash")

# I am keeping this here to remind me about the future
# backup=(opt/solr/server/etc/jetty{,-http,-https,-ssl}.xml
#        opt/solr/server/etc/webdefault.xml
#        opt/solr/server/solr/solr.xml
#        opt/solr/server/solr/zoo.cfg)

install="$pkgname.install"
options=(!strip)

sha512sums=('6abae11990f4bd6c71e06105e05c976fcc67e2829387863f052a66492e538fbe41ca095c891ca726c0b85c6ff27d153f89cb40fcb73830d48fd1de706179055f'
            '75833fa0f9768d87a05117f66f47fbdb5ab0269660f17ed325a4ce127d12b8c6dd6dda6ea3f562ddd2928330d736da62c3d4a6bfd42430b8632b38f577cfce3b'
	    'e0f0b587c4a5759181779cb5721fde83479dd31387aa76b0e377c486eb46e94290b35299670eea2bf8bea5c2d5ce312328994604d55cb5f6458f3d8eb563a262'
	    'dd8b89087eb33e32faea757bf22556aa0e31c200f74953dfa1b1251429a2d7a5c84f6ce1294b1c7560fe26d87833d581d07df346297b3fb003dae3e7408017ad'
	    )
build() {
  cd "$srcdir/apache-$pkgname-$pkgver"
#  rm *.cmd
#  rm install_solr_service.sh
#  rm -rf init.d
  ant
}

package() {
  cd "$srcdir/"
  chmod +x StartNutchServer.bash
  cd "$srcdir/apache-$pkgname-$pkgver/runtime/local"
  mkdir -p "$pkgdir"/opt/nutch
  cp -R * "$pkgdir"/opt/nutch
  cp "$srcdir/StartNutchServer.bash" "$pkgdir/opt/nutch/bin/"
  chown -R 115:115 "$pkgdir/opt/nutch"
  install -Dm644 "$srcdir/nutch.service" "$pkgdir/usr/lib/systemd/system/nutch.service"
}