c2dceb5cd5
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 <surya1@llnl.gov> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes: #68
24 lines
642 B
Plaintext
24 lines
642 B
Plaintext
# Maintainer: Prakash Surya <surya1@llnl.gov>
|
|
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@-@SPL_META_VERSION@.tar.gz)
|
|
|
|
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
|
|
}
|