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
|
#!/bin/bash
cd packages/deb
if [ ! -d DEBIAN ]; then
mkdir DEBIAN
fi
cp ../deb.control DEBIAN/control
if [ -d etc ]; then
rm -dfR etc
fi
if [ -d usr ]; then
rm -dfR usr
fi
mkdir -p etc/dhcp3/dhclient-exit-hooks.d
ln -s /usr/bin/dhcp-lb etc/dhcp3/dhclient-exit-hooks.d/dhcp-lb
mkdir -p usr/bin
cp ../../bin/dhcp-lb usr/bin/
mkdir -p usr/share/doc/dhcp-lb
cp -R ../../doc/sample-config usr/share/doc/dhcp-lb/
sudo dpkg -b ./ ../dhcp-lb.deb
|