Fix README to work with the repo.or.cz markdown interpreter
[gsmalarm.git] / Makefile
blobfdcb8772a1f50cf5b07554ae82412386a08ed24d
1 include $(TOPDIR)/rules.mk
3 PKG_NAME:=gsmalarm
4 PKG_RELEASE:=1
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
14 SECTION:=utils
15 CATEGORY:=Utilities
16 DEPENDS:=smstools3
17 TITLE:=Report alarm condiations via GSM network
18 PKGARCH:=all
19 endef
21 define Build/Prepare
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
26 endef
28 define Build/Configure
29 endef
31 define Build/Compile
32 endef
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/
51 endef
53 $(eval $(call BuildPackage,gsmalarm))