root/trunk/freewrt/package/bitlbee/Makefile

Revision 3512, 1.9 kB (checked in by tg, 1 year ago)

fix the problem that a “/etc/init.d/ntpd restart” wouldn’t work
because it uses “killall ntpd” and nukes itself: on execution,
run mksh(1) with ourselves first, to make sure that killall/pkill
will see our process name as “mksh” instead of e.g. “…/ntpd”.

Line 
1 # $FreeWRT$
2 #-
3 # This file is part of the FreeWRT project. FreeWRT is copyrighted
4 # material, please see the LICENCE file in the top-level directory
5 # or at http://www.freewrt.org/licence for details.
6
7 include ${TOPDIR}/rules.mk
8
9 PKG_NAME:=              bitlbee
10 PKG_VERSION:=           1.0.3
11 PKG_RELEASE:=           5
12 PKG_MD5SUM:=            e46682d54cbd6265dd4436b3b6838d63
13 MASTER_SITES:=          http://get.bitlbee.org/src/ \
14                         http://get.bitlbee.be/src/ \
15                         http://get.us.bitlbee.org/src/ \
16                         http://ftp.snt.utwente.nl/pub/software/bitlbee/src/
17
18 include ${TOPDIR}/mk/package.mk
19
20 $(eval $(call PKG_template,BITLBEE,bitlbee,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
21 ifeq ($(FWRT_IPV6),y)
22 IPV6+=  --ipv6=1
23 else
24 IPV6+=  --ipv6=0
25 endif
26
27 do-configure:
28                 (cd $(WRKBUILD); \
29                         $(TARGET_CONFIGURE_OPTS) \
30                         CFLAGS="$(TARGET_CFLAGS)" \
31                         CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
32                         LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
33                         STAGING_DIR="$(STAGING_DIR)" \
34                         STRIP="$(STRIP)" \
35                         ./configure \
36                         --prefix=/usr/ \
37                         --bindir=/usr/sbin/ \
38                         --etcdir=/etc/bitlbee/ \
39                         --datadir=/usr/share/bitlbee/ \
40                         --config=/var/lib/bitlbee/ \
41                         --arch=FreeWRT \
42                         --cpu="${ARCH}" \
43                         --debug=0 \
44                         --strip=1 \
45                         --sizeopt=1 \
46                         --ssl=openssl \
47                         --glib1=1 \
48                         --glib1prefix="${STAGING_DIR}/usr" \
49                         ${IPV6} \
50                 );
51
52 BUILD_STYLE=            auto
53 INSTALL_STYLE=          auto
54 INSTALL_TARGET=         install-etc install-bin
55
56 post-configure:
57         @echo 'CFLAGS+="-I${STAGING_DIR}/usr/include/iconv"' >> \
58                 ${WRKBUILD}/Makefile.settings
59         @echo 'LFLAGS+="-L${STAGING_DIR}/usr/lib/iconv"' >> \
60                 ${WRKBUILD}/Makefile.settings
61
62 post-install:
63         ${INSTALL_DIR} ${IDIR_BITLBEE}/etc/bitlbee
64         ${INSTALL_DIR} ${IDIR_BITLBEE}/etc/init.d
65         ${INSTALL_DIR} ${IDIR_BITLBEE}/usr/sbin
66         ${INSTALL_DATA} ${WRKINST}/etc/bitlbee/* ${IDIR_BITLBEE}/etc/bitlbee
67         ${INSTALL_BIN} ${WRKINST}/usr/sbin/bitlbee ${IDIR_BITLBEE}/usr/sbin
68         ${INSTALL_BIN} ./files/bitlbee.init \
69                 ${IDIR_BITLBEE}/etc/init.d/bitlbee
70
71 include ${TOPDIR}/mk/pkg-bottom.mk
Note: See TracBrowser for help on using the browser.