root/ladvd/build.sh

Revision 2, 1.0 kB (checked in by ixs, 13 years ago)

directory reorganization

  • Property svn:executable set to *
Line 
1 #!/bin/sh -e
2
3 set -e
4
5 D=${PWD}
6 D_PREFIX="/raid0/data/module/LADVD/system"
7
8 rm -rf tmp
9
10 mkdir tmp
11 mkdir tmp/build
12 mkdir tmp/install
13 mkdir tmp/install/sbin
14 mkdir tmp/install/var
15 mkdir tmp/install/var/run
16 mkdir tmp/install/var/run/ladvd
17 pushd tmp/build
18
19 export CFLAGS="-O2 -g -march=i686 -mcpu=i686"
20
21 # ladvd
22 tar xvfz ${D}/sources/ladvd-0.9.2.tar.gz
23 pushd ladvd-0.9.2
24 ./configure --prefix=${D_PREFIX}
25 sed -i '
26         s/#define HAVE_DECL_GET_VLAN_REALDEV_NAME_CMD 0/#undef HAVE_DECL_GET_VLAN_REALDEV_NAME_CMD/;
27         s/#define HAVE_LINUX_ETHTOOL_H 1/#undef HAVE_LINUX_ETHTOOL_H/;
28         s/#define PACKAGE_USER "ladvd"/#define PACKAGE_USER "root"/;
29         s@#define PACKAGE_CHROOT_DIR "/var/run/" PACKAGE_NAME@#define PACKAGE_CHROOT_DIR "'${D_PREFIX}'/var/run/" PACKAGE_NAME@;
30         s@#define PACKAGE_PID_DIR "/var/run"@#define PACKAGE_PID_DIR "'${D_PREFIX}'/var/run"@' \
31         src/config.h
32 sed -i '872d' \
33         src/netif.c
34 make
35 install -D -p -m 755 src/ladvd ${D}/tmp/install/sbin/ladvd
36 ln -sf ${D}/tmp/install/sbin/ladvdc ladvd
37 popd
Note: See TracBrowser for help on using the browser.