1 ## Original contributor: Nicolas Pouillard <nicolas.pouillard@gmail.com>
2 ## Maintainer: Nathan "Necopinus" <nathan@ecopunk.info>
7 pkgdesc="Tor TCP DNS Daemon"
9 # This is the URL in the README, but it is currently broken:
10 # url="https://www.torproject.org/ttdnsd/"
11 url="https://gitweb.torproject.org/ioerror/ttdnsd.git"
14 backup=('etc/conf.d/ttdnsd' 'etc/ttdnsd.conf')
17 sha256sums=('76d11e577df62708076e71654bb3da2007c28ec3f92e95ec90a2b9e035012a3f'
18 '08943ab5d6ddbd32b877a99dfdd8df52ce78e153e20133f8d9069e4a76f613ad')
20 _gitroot='https://git.torproject.org/ioerror/ttdnsd.git'
26 if [ -d $_gitrepo ]; then
27 (cd $_gitrepo && git checkout HEAD && git pull .) || return 1
29 git clone $_gitroot $_gitrepo || return 1
32 msg "GIT checkout done or server timeout"
33 msg "Starting make..."
35 [ -d $_gitrepo-build ] && rm -rf $_gitrepo-build
36 cp -r $_gitrepo $_gitrepo-build
43 cd $srcdir/$_gitrepo-build
44 make DESTDIR=$pkgdir install
46 mv $pkgdir/etc/default $pkgdir/etc/conf.d
47 rm -r $pkgdir/etc/init.d
49 sed -i -e 's#/etc/default#/etc/conf.d#g' $pkgdir/etc/conf.d/ttdnsd
50 chmod 644 $pkgdir/etc/conf.d/ttdnsd
52 mkdir -p $pkgdir/etc/rc.d
53 install -Dm755 $srcdir/ttdnsd.rcd $pkgdir/etc/rc.d/ttdnsd
55 mkdir -p $pkgdir/lib/systemd/system
56 install -Dm644 $srcdir/ttdnsd.service $pkgdir/lib/systemd/system/ttdnsd.service