summaryrefslogtreecommitdiffstats
path: root/PKGBUILD-spl-modules.in
diff options
context:
space:
mode:
authorPrakash Surya <[email protected]>2011-12-06 17:33:51 -0800
committerBrian Behlendorf <[email protected]>2011-12-14 16:44:10 -0800
commitc2dceb5cd5221f7e1bde915218f5d2cf69920959 (patch)
treec6cdcbea4bb00c969661e1c59eafda4393bbda6c /PKGBUILD-spl-modules.in
parent699d5ee8a99471b49b07e69108045301b865b0d6 (diff)
Add make rule for building Arch Linux packages
Added the necessary build infrastructure for building packages compatible with the Arch Linux distribution. As such, one can now run: $ ./configure $ make pkg # Alternatively, one can run 'make arch' as well on an Arch Linux machine to create two binary packages compatible with the pacman package manager, one for the spl userland utilties and another for the spl kernel modules. The new packages can then be installed by running: # pacman -U $package.pkg.tar.xz In addition, source-only packages suitable for an Arch Linux chroot environment or remote builder can also be built using the 'sarch' make rule. NOTE: Since the source dist tarball is created on the fly from the head of the build tree, it's MD5 hash signature will be continually influx. As a result, the md5sum variable was intentionally omitted from the PKGBUILD files, and the '--skipinteg' makepkg option is used. This may or may not have any serious security implications, as the source tarball is not being downloaded from an outside source. Signed-off-by: Prakash Surya <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes: #68
Diffstat (limited to 'PKGBUILD-spl-modules.in')
-rw-r--r--PKGBUILD-spl-modules.in23
1 files changed, 23 insertions, 0 deletions
diff --git a/PKGBUILD-spl-modules.in b/PKGBUILD-spl-modules.in
new file mode 100644
index 000000000..a04bd4fcf
--- /dev/null
+++ b/PKGBUILD-spl-modules.in
@@ -0,0 +1,23 @@
+# Maintainer: Prakash Surya <[email protected]>
+pkgname=@SPL_META_NAME@-modules
+pkgver=@SPL_META_VERSION@
+pkgrel=@SPL_META_RELEASE@
+pkgdesc="Contains kernel modules for emulating Solaris style primatives in the linux kernel."
+arch=(x86_64)
+url="git://github.com/zfsonlinux/spl.git"
+license=(@LICENSE@)
+source=(@SPL_META_NAME@-@[email protected])
+
+build() {
+ cd $srcdir/@SPL_META_NAME@-@SPL_META_VERSION@
+ ./configure --with-config=kernel \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/lib
+ make
+}
+
+package() {
+ cd $srcdir/@SPL_META_NAME@-@SPL_META_VERSION@
+ make DESTDIR=$pkgdir install
+}