root/trunk/freewrt/package/broadcom-watchbutton/Makefile

Revision 3512, 1.0 kB (checked in by tg, 4 years 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:=              broadcom-watchbutton
10 PKG_VERSION:=           1.0
11 PKG_RELEASE:=           8
12 NO_DISTFILES:=          1
13
14 include ${TOPDIR}/mk/package.mk
15
16 $(eval $(call PKG_template,BROADCOM_WATCHBUTTON,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
17
18 do-build:
19         ${TARGET_CC} -o ${WRKBUILD}/watchbutton watchbutton.c
20
21 do-install:
22         ${INSTALL_DIR} ${IDIR_BROADCOM_WATCHBUTTON}/sbin
23         ${INSTALL_DIR} ${IDIR_BROADCOM_WATCHBUTTON}/etc/init.d
24         ${INSTALL_BIN} ./files/watchbutton.init \
25                 ${IDIR_BROADCOM_WATCHBUTTON}/etc/init.d/watchbutton
26         ${INSTALL_DIR} ${IDIR_BROADCOM_WATCHBUTTON}/etc/hotplug.d/button
27         ${INSTALL_BIN} ./files/umts.hotplug \
28                 ${IDIR_BROADCOM_WATCHBUTTON}/etc/hotplug.d/button/umts
29         ${INSTALL_BIN} ${WRKBUILD}/watchbutton \
30                 ${IDIR_BROADCOM_WATCHBUTTON}/sbin/
31
32 include ${TOPDIR}/mk/pkg-bottom.mk
Note: See TracBrowser for help on using the browser.