summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJanne Heß2016-08-04 23:09:34 +0200
committerJanne Heß2016-08-04 23:09:34 +0200
commit33bc0a749c24f34440b27ed8f2fbb432fa056a77 (patch)
tree6274f31c6443f93a406943c337cadb18d04ec672
downloadaur-33bc0a749c24f34440b27ed8f2fbb432fa056a77.tar.gz
Initial commit
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD38
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..47f3aa8dd6b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+# Generated by mksrcinfo v8
+# Thu Aug 4 21:09:19 UTC 2016
+pkgbase = mkinitcpio-sd-zfs
+ pkgdesc = Compatibility between systemd and ZFS roots
+ pkgver = 0.1.0
+ pkgrel = 1
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ depends = mkinitcpio
+ depends = systemd
+ conflicts = mkinitcpio-sd-zfs-git
+ source = https://github.com/dasJ/sd-zfs/archive/v0.1.0.tar.gz
+ sha512sums = b5e533d6b082f8759b90ea9ab80fc04290abff62e75144e02bca11f6b208c1df9fb42fc17266b71263c752298eb62ec9cc06883bed5b3df2bcdeb59dd08ee874
+
+pkgname = mkinitcpio-sd-zfs
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..db9dcc75aff
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Janne Heß <jannehess@gmail.com>
+
+pkgname=mkinitcpio-sd-zfs
+pkgver=0.1.0
+pkgrel=1
+pkgdesc='Compatibility between systemd and ZFS roots'
+license=('GPL3')
+conflicts=('mkinitcpio-sd-zfs-git')
+depends=('mkinitcpio' 'systemd')
+source=("https://github.com/dasJ/sd-zfs/archive/v${pkgver}.tar.gz")
+sha512sums=('b5e533d6b082f8759b90ea9ab80fc04290abff62e75144e02bca11f6b208c1df9fb42fc17266b71263c752298eb62ec9cc06883bed5b3df2bcdeb59dd08ee874')
+arch=('i686' 'x86_64')
+
+build() {
+ cd "sd-zfs-${pkgver}"
+
+ make all
+}
+
+package() {
+ cd "sd-zfs-${pkgver}"
+
+ # mkinitcpio
+ install -Dm644 mkinitcpio-sd-zfs.install "${pkgdir}/usr/lib/initcpio/install/sd-zfs"
+
+ # binaries
+ for bin in mount.zfs_member zfs-getforce; do
+ install -Dm755 "${bin}" "${pkgdir}/usr/lib/mkinitcpio-sd-zfs/${bin}"
+ done
+
+ # systemd unit
+ install -Dm644 units/zfs-getforce.service "${pkgdir}/usr/lib/mkinitcpio-sd-zfs/units/zfs-getforce.service"
+
+ # systemd overrides
+ for override in sysroot.mount zfs-import-{scan,cache}.service; do
+ install -Dm644 "overrides/${override}" "${pkgdir}/usr/lib/mkinitcpio-sd-zfs/overrides/${override}"
+ done
+}