-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpack.sh
More file actions
executable file
·39 lines (33 loc) · 1.17 KB
/
pack.sh
File metadata and controls
executable file
·39 lines (33 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#! /usr/bin/env bash
NAME=ixgbe
VERSION=3.18.7-adallom
DESCRIPTION="Linux driver for the Intel(R) 10GbE PCI Express Family of Server Adapters."
VENDOR="Intel Corporation"
URL="http://www.intel.com/network/connectivity/products/server_adapters.htm"
LICENSE="GPL"
MAINTAINER="arie@adallom.com"
TEMPDIR=$(mktemp -d)
echo "Creating $TEMPDIR"
make -C src clean
make -C src
make -C src INSTALL_MOD_PATH=$TEMPDIR install
install -D -m 644 modprobe-options-ixgbe.conf $TEMPDIR/etc/modprobe.d/adallom-ixgbe.conf
fpm -t deb -s dir --name "$NAME" \
-v "$VERSION" \
-C $TEMPDIR \
--maintainer "$MAINTAINER" \
--vendor "Adallom Labs" \
--license "$LICENSE" \
--url "http://bitbucket.org/adallom/ixgbe" \
--deb-field "Branch: $(git rev-parse --abbrev-ref HEAD)" \
--deb-field "Commit: $(git rev-parse HEAD)" \
--description "$DESCRIPTION" \
--deb-field "Original-Maintainer: Intel Corporation" \
--deb-field "Original-Homepage: $URL" \
--before-install "DEBIAN/before_install" \
--after-install "DEBIAN/after_install" \
--before-remove "DEBIAN/before_remove" \
--after-remove "DEBIAN/after_remove" \
.
echo "Removing $TEMPDIR"
rm -rf $TEMPDIR