diff options
author | Ivan | 2016-10-18 22:24:26 -0400 |
---|---|---|
committer | Ivan | 2016-10-18 22:24:26 -0400 |
commit | a1a96df79748b56e2fb9ffd59fff9d4b83e523bf (patch) | |
tree | 4b446623137547888052b371d382965160ff2717 | |
parent | cdbbdcdded117f6ea859b2bdfecbb347938a70c5 (diff) | |
download | aur-a1a96df79748b56e2fb9ffd59fff9d4b83e523bf.tar.gz |
Create mumax3 user and work directory
-rw-r--r-- | PKGBUILD | 14 | ||||
-rw-r--r-- | mumax3-dir.conf | 2 | ||||
-rw-r--r-- | mumax3-user.conf | 1 | ||||
-rw-r--r-- | mumax3.install | 8 |
4 files changed, 23 insertions, 2 deletions
@@ -8,11 +8,21 @@ url="http://mumax.github.io/" license=('GPL') depends=('cuda-7.5') optdepends=('gnuplot: for fancy plots') -source=("https://github.com/mumax/3/releases/download/v$pkgver/mumax${pkgver}_linux_cuda7.5.tar.gz") -md5sums=('fbac69c0bcf40309a7f0bf61d9745228') +source=("https://github.com/mumax/3/releases/download/v$pkgver/mumax${pkgver}_linux_cuda7.5.tar.gz" + "mumax_server::https://github.com/mumax/3/releases/download/v3.9.1/mumax3.9.1c_linux.tar.gz" + mumax3-user.conf + mumax3-dir.conf) +md5sums=('fbac69c0bcf40309a7f0bf61d9745228' + 'f0891e4dcb6998d6cb2ac0650c721479' + 'd788739ca6325bc2be1334515435f856' + '22d9c858cc5efcfd1296c2ea840e4153') +install=mumax3.install package() { mkdir -p ${pkgdir}/opt/mumax3/ cp ${srcdir}/mumax3 ${pkgdir}/opt/mumax3 + cp ${srcdir}/mumax3.9.1c_linux/mumax3-{server,convert} ${pkgdir}/opt/mumax3 + install -Dm644 "$srcdir/$pkgname-user.conf" "$pkgdir/usr/lib/sysusers.d/mumax3.conf" + install -Dm644 "$srcdir/$pkgname-dir.conf" "$pkgdir/usr/lib/tmpfiles.d/mumax3.conf" } diff --git a/mumax3-dir.conf b/mumax3-dir.conf new file mode 100644 index 000000000000..36b27d451a2f --- /dev/null +++ b/mumax3-dir.conf @@ -0,0 +1,2 @@ +d /var/lib/mumax3 0770 mumax3 mumax3 + diff --git a/mumax3-user.conf b/mumax3-user.conf new file mode 100644 index 000000000000..f60c8b0b78f9 --- /dev/null +++ b/mumax3-user.conf @@ -0,0 +1 @@ +u mumax3 - "MuMax3 server" /var/lib/mumax3 diff --git a/mumax3.install b/mumax3.install new file mode 100644 index 000000000000..4cdb717b4fe7 --- /dev/null +++ b/mumax3.install @@ -0,0 +1,8 @@ +post_install() { + systemd-sysusers mumax3.conf + systemd-tmpfiles --create mumax3.conf +} + +post_upgrade() { + post_install +} |