diff options
author | Jonas Heinrich | 2019-08-20 14:15:02 +0200 |
---|---|---|
committer | Jonas Heinrich | 2019-08-20 14:15:02 +0200 |
commit | dd8dab56dae6970cfbb98a89773daffc66148a99 (patch) | |
tree | f99a385e2c3c0b60acb04ab9a03af056d54be11e | |
download | aur-dd8dab56dae6970cfbb98a89773daffc66148a99.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 36 | ||||
-rw-r--r-- | podcasttune.service | 20 | ||||
-rw-r--r-- | podcasttune.sysusers | 1 | ||||
-rw-r--r-- | podcasttune.tmpfiles | 1 |
5 files changed, 80 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 00000000000..f20c95d311a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = podcasttune-git + pkgdesc = Web application for listening and discovering podcasts + pkgver = 10.2.1 + pkgrel = 1 + url = https://github.com/Zimniros/PodcastTune + arch = any + license = MIT + makedepends = npm + makedepends = meteor + depends = nodejs + options = !strip + source = git+https://github.com/Zimniros/PodcastTune.git + source = podcasttune.service + source = podcasttune.tmpfiles + source = podcasttune.sysusers + sha512sums = SKIP + sha512sums = 786ec1b7b785c24ddf27b9bc18311bdfc34ec7d87c253c05f0c304ca7c4e042f39ea92af82c1f73001f43e1e8c1e9c83668a293e111e820048dc03b61253d25a + sha512sums = 6fa00fbb134fdb107e6042be8d3562e2b675724c03887375a27a9429925cd1add7564d056db977f4248a0329618878c2534f05773369e1b0e0fe4467f595afef + sha512sums = ac7f613d9d725a847c49c50be9488f1312a61443ef88c25a97d3ce8c5ca4a27fb10b6ac1299ed7da51ba11ddb8666071e6ab63eb6c0c007c0b05ec161fd0aa94 + +pkgname = podcasttune-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 00000000000..46f0f74f83f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Jonas Heinrich <onny@project-insanity.org> +# Contributor: Jonas Heinrich <onny@project-insanity.org> + +pkgname=podcasttune-git +pkgver=10.2.1 +pkgrel=1 +pkgdesc='Web application for listening and discovering podcasts' +arch=('any') +url='https://github.com/Zimniros/PodcastTune' +license=('MIT') +depends=('nodejs') +makedepends=('npm' 'meteor') +source=("git+https://github.com/Zimniros/PodcastTune.git" + "podcasttune.service" + "podcasttune.tmpfiles" + "podcasttune.sysusers") +sha512sums=('SKIP' + '786ec1b7b785c24ddf27b9bc18311bdfc34ec7d87c253c05f0c304ca7c4e042f39ea92af82c1f73001f43e1e8c1e9c83668a293e111e820048dc03b61253d25a' + '6fa00fbb134fdb107e6042be8d3562e2b675724c03887375a27a9429925cd1add7564d056db977f4248a0329618878c2534f05773369e1b0e0fe4467f595afef' + 'ac7f613d9d725a847c49c50be9488f1312a61443ef88c25a97d3ce8c5ca4a27fb10b6ac1299ed7da51ba11ddb8666071e6ab63eb6c0c007c0b05ec161fd0aa94') +options=(!strip) + +build(){ + cd PodcastTune + meteor npm install --production --cache ../npm-cache +} + +package() { + mkdir -p "${pkgdir}/usr/share/webapps" + cp -r "${srcdir}/PodcastTune" "${pkgdir}/usr/share/webapps/podcasttune" + install -Dm 644 "${srcdir}/podcasttune.service" "${pkgdir}/usr/lib/systemd/system/podcasttune.service" + install -Dm 644 "${srcdir}/podcasttune.sysusers" "${pkgdir}/usr/lib/sysusers.d/podcasttune.conf" + install -Dm 644 "${srcdir}/podcasttune.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/podcasttune.conf" +} + +# vim: ts=2 sw=2 et: diff --git a/podcasttune.service b/podcasttune.service new file mode 100644 index 00000000000..aabd42659d9 --- /dev/null +++ b/podcasttune.service @@ -0,0 +1,20 @@ +[Unit] +Description=Podcast Tune server +After=network.target + +[Service] +User=podcasttune +Group=podcasttune +Type=simple +ExecStart=/usr/bin/meteor /usr/share/webapps/podcasttune +WorkingDirectory=/usr/share/webapps/podcasttune +LimitNOFILE=1048576 +LimitNPROC=64 +PrivateTmp=true +PrivateDevices=true +ProtectHome=true +ProtectSystem=strict +ReadWritePaths=/usr/share/webapps/podcasttune + +[Install] +WantedBy=multi-user.target diff --git a/podcasttune.sysusers b/podcasttune.sysusers new file mode 100644 index 00000000000..a42a5aff5d7 --- /dev/null +++ b/podcasttune.sysusers @@ -0,0 +1 @@ +u podcasttune - "podcast tune webserver" /var/lib/podcasttune /sbin/nologin diff --git a/podcasttune.tmpfiles b/podcasttune.tmpfiles new file mode 100644 index 00000000000..7ecc705d379 --- /dev/null +++ b/podcasttune.tmpfiles @@ -0,0 +1 @@ +d /var/lib/podcasttune 0750 podcasttune podcasttune - |