Skip to content

Commit 9b0f388

Browse files
committed
init
0 parents  commit 9b0f388

1 file changed

Lines changed: 60 additions & 0 deletions

File tree

Makefile

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
include $(TOPDIR)/rules.mk
2+
3+
PKG_NAME:=usb-config-scripts
4+
PKG_VERSION:=0.1.0
5+
PKG_RELEASE:=1
6+
7+
PKG_BUILD_DIR:=$(BUILD_DIR)/usb-config-scripts-$(PKG_VERSION)
8+
PKG_SOURCE:=$(PKG_VERSION).tar.gz
9+
PKG_SOURCE_URL:=https://github.com/MaStr/usb-config-scripts/archive/$(PKG_VERSION).tar.gz
10+
PKG_MD5SUM:=fe211e1e37530673600f31b1391a79cc
11+
PKG_CAT:=zcat
12+
13+
14+
include $(INCLUDE_DIR)/package.mk
15+
16+
define Package/usb-config-scripts
17+
SECTION:=net
18+
CATEGORY:=Network
19+
TITLE:=Scripts for USB-Config files
20+
SUBMENU:=PirateBox
21+
URL:=http:///github.com/MaStr/usb-config-scripts
22+
DEPENDS:=
23+
PKGARCH:=all
24+
MAINTAINER:=Matthias Strubel <matthias.strubel@aod-rpg.de>
25+
endef
26+
27+
define Package/usb-config-scripts
28+
Helps easier configuration via simple files on USB Stick for i.e. LibraryBox
29+
endef
30+
31+
32+
define Package/usb-config-scripts/postinst
33+
#!/bin/sh
34+
35+
if ! grep -q $($$PKG_ROOT)/etc/rc.local /opt/autocfg/bin/auto_config.sh ; then
36+
echo "#/opt/autocfg/bin/auto_config_startup.sh" >> $($$PKG_ROOT)/etc/rc.local
37+
fi
38+
endef
39+
40+
define Build/Compile
41+
endef
42+
43+
define Build/Configure
44+
endef
45+
46+
47+
define Package/usb-config-scripts/install
48+
$(INSTALL_DIR) $(1)/opt/autocfg
49+
$(INSTALL_DIR) $(1)/opt/autocfg/cfg
50+
$(INSTALL_DIR) $(1)/opt/autocfg/lib
51+
$(INSTALL_DIR) $(1)/opt/autocfg/modules.available
52+
$(INSTALL_DIR) $(1)/opt/autocfg/modules.enabled
53+
54+
$(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/* $(1)/opt/autocfg/bin/
55+
$(INSTALL_BIN) $(PKG_BUILD_DIR)/cfg/* $(1)/opt/autocfg/cfg/
56+
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/* $(1)/opt/autocfg/lib/
57+
$(INSTALL_BIN) $(PKG_BUILD_DIR)/modules.available/* $(1)/opt/autocfg/modules.available/*
58+
endef
59+
60+
$(eval $(call BuildPackage,usb-config-scripts))

0 commit comments

Comments
 (0)