1 include $(TOPDIR
)/rules.mk
6 PKG_MAINTAINER
:=Harald Geyer
<harald@ccbib.org
>
7 PKG_LICENSE_FILES
:=README.md
9 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)/
11 include $(INCLUDE_DIR
)/package.mk
13 define Package
/gsmalarm
17 TITLE
:=Report alarm condiations via GSM network
22 mkdir
-p
$(PKG_BUILD_DIR
)
23 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
24 date
>$(PKG_BUILD_DIR
)/version
25 git show
-s
--oneline
>>$(PKG_BUILD_DIR
)/gsmalarm-version
28 define Build
/Configure
34 define Package
/gsmalarm
/install
35 $(INSTALL_DIR
) $(1)/etc
/gsmalarm
/actions
36 $(LN
) actions
$(1)/etc
/gsmalarm
/commands
37 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/verify_number_
* $(1)/etc
/gsmalarm
/
38 $(LN
) verify_number_default
$(1)/etc
/gsmalarm
/verify_number
39 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/actions
/* $(1)/etc
/gsmalarm
/actions
/
40 $(INSTALL_DIR
) $(1)/usr
/lib
/gsmalarm
/scripts
41 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/eventhandler
$(1)/usr
/lib
/gsmalarm
/
42 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/alarmhandler
$(1)/usr
/lib
/gsmalarm
/
43 $(INSTALL_DIR
) $(1)/usr
/bin
/
44 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/gsmalarm
$(1)/usr
/bin
/
45 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/smsd_extract_number
$(1)/usr
/bin
/
46 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/smsd_getbody
$(1)/usr
/bin
/
47 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/smsd_process_commands
$(1)/usr
/bin
/
48 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/scripts
/* $(1)/usr
/lib
/gsmalarm
/scripts
49 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/gsmalarm-version
$(1)/etc
/
50 $(INSTALL_CONF
) .
/files
/conf
$(1)/etc
/gsmalarm
/
53 $(eval
$(call BuildPackage
,gsmalarm
))