Switch to new package format
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
# This is the recipe.sh script. It is executed by BPM in a temporary directory when compiling a source package
|
||||
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
||||
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
||||
|
||||
# The build function is executed in the source directory
|
||||
# This function is used to compile the source code
|
||||
build() {
|
||||
./configure --prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--with-openssl \
|
||||
--with-xz \
|
||||
--with-zstd \
|
||||
--with-zlib
|
||||
make
|
||||
}
|
||||
|
||||
# The package function is executed in the source directory
|
||||
# This function is used to move the compiled files into the output directory
|
||||
package() {
|
||||
make DESTDIR="$BPM_OUTPUT" install
|
||||
|
||||
mkdir -p "$BPM_OUTPUT"/usr/sbin
|
||||
for target in depmod insmod modinfo modprobe rmmod; do
|
||||
ln -sfv ../bin/kmod "$BPM_OUTPUT"/usr/sbin/$target
|
||||
done
|
||||
|
||||
ln -sfv kmod "$BPM_OUTPUT"/usr/bin/lsmod
|
||||
|
||||
# Install esvm services
|
||||
install -Dm755 "$BPM_WORKDIR"/static-device-nodes.sh "$BPM_OUTPUT"/etc/esvm/scripts/static-device-nodes.sh
|
||||
install -Dm644 "$BPM_WORKDIR"/static-device-nodes.esv "$BPM_OUTPUT"/etc/esvm/services/static-device-nodes.esv
|
||||
|
||||
# Install package licenses
|
||||
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/kmod/COPYING
|
||||
}
|
||||
Reference in New Issue
Block a user