Date: Monday, August 22, 2016 @ 21:40:10
  Author: seblu
Revision: 274599

Add archivetools

Used to deploy archive.archlinux.org on orion

Added:
  archivetools/
  archivetools/repos/
  archivetools/trunk/
  archivetools/trunk/PKGBUILD
  archivetools/trunk/archivetools.install

----------------------+
 PKGBUILD             |   30 ++++++++++++++++++++++++++++++
 archivetools.install |   10 ++++++++++
 2 files changed, 40 insertions(+)

Added: archivetools/trunk/PKGBUILD
===================================================================
--- archivetools/trunk/PKGBUILD                         (rev 0)
+++ archivetools/trunk/PKGBUILD 2016-08-22 21:40:10 UTC (rev 274599)
@@ -0,0 +1,30 @@
+# Maintainer: Sébastien Luttringer
+
+pkgname=archivetools
+pkgver=1
+pkgrel=1
+pkgdesc='Archlinux Archive Tools'
+arch=('any')
+url='https://github.com/seblu/archivetools'
+license=('GPL2')
+depends=('rsync' 'hardlink' 'xz' 'util-linux' 'systemd')
+makedepends=('git')
+conflicts=('archivetools')
+backup=('etc/archive.conf')
+install=archivetools.install
+source=("git+https://github.com/seblu/archivetools.git#tag=v$pkgver";)
+md5sums=('SKIP')
+
+package() {
+  cd $pkgname
+  install -Dm644 archive.conf "$pkgdir/etc/archive.conf"
+  install -Dm755 archive.sh "$pkgdir/usr/bin/archive"
+  # systemd stuff
+  install -Dm644 archive.sysusers "$pkgdir/usr/lib/sysusers.d/archive.conf"
+  install -Dm644 archive.tmpfiles "$pkgdir/usr/lib/tmpfiles.d/archive.conf"
+  for _p in archive.{timer,service} archive-hardlink.{timer,service}; do
+    install -Dm644 $_p "$pkgdir/usr/lib/systemd/system/$_p"
+  done
+}
+
+# vim:set ts=2 sw=2 et:


Property changes on: archivetools/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: archivetools/trunk/archivetools.install
===================================================================
--- archivetools/trunk/archivetools.install                             (rev 0)
+++ archivetools/trunk/archivetools.install     2016-08-22 21:40:10 UTC (rev 
274599)
@@ -0,0 +1,10 @@
+#/bin/bash
+
+# arg 1:  the new package version
+post_install() {
+  systemd-sysusers archive.conf
+  systemd-tmpfiles --create archive.conf
+  :
+}
+
+# vim:set ts=2 sw=2 ft=sh et:

Reply via email to