diff options
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 7 | ||||
-rw-r--r-- | neodatis.install | 9 |
3 files changed, 16 insertions, 5 deletions
@@ -1,10 +1,11 @@ # Generated by mksrcinfo v8 -# Mon Apr 11 01:23:37 UTC 2016 +# Mon Apr 11 16:14:42 UTC 2016 pkgbase = i2p-plugin-neodatis pkgdesc = Some I2P middleware for seedless pkgver = 2.1_2.14_209_17 - pkgrel = 1 + pkgrel = 2 url = http://i2pwiki.i2p/index.php?title=Plugins + install = neodatis.install arch = any groups = i2p-plugins license = WTFPL @@ -8,7 +8,7 @@ _pluginame=neodatis pkgname=i2p-plugin-${_pluginame} pkgver=2.1_2.14_209_17 -pkgrel=1 +pkgrel=2 pkgdesc="Some I2P middleware for seedless" arch=('any') url="http://i2pwiki.i2p/index.php?title=Plugins" @@ -20,6 +20,7 @@ provides=('i2p-neodatis') # get this from http://sponge.i2p/files/seedless/01_neodatis.xpi2p source=("file://01_${_pluginame}.xpi2p") noextract=("file://01_${_pluginame}.xpi2p") +install="${_pluginame}.install" sha256sums=('3af50cb8d735b1ef0077789d6c1ea438735b1caef59bfbfdfd443fc3623e64be') prepare() { @@ -36,7 +37,7 @@ prepare() { } package() { cd "${srcdir}" - mkdir -p "${pkgdir}/opt/i2p/.i2p/plugins/" - cp -Ra "i2p" "${pkgdir}/opt/i2p/.i2p/plugins/01_${_pluginame}" + mkdir -p "${pkgdir}/opt/i2p/plugins/" + cp -Ra "i2p" "${pkgdir}/opt/i2p/plugins/01_${_pluginame}" } diff --git a/neodatis.install b/neodatis.install new file mode 100644 index 000000000000..afd0f4b29269 --- /dev/null +++ b/neodatis.install @@ -0,0 +1,9 @@ +post_install() { + post_upgrade +} + +post_upgrade() { + systemd-tmpfiles --create i2prouter.conf + chown -R i2p:i2p /opt/i2p/plugins/01_neodatis + chmod 700 /opt/i2p/plugins/01_neodatis +} |