2010-08-30 19:08:38 +00:00
# Copyright (c) 2010 flukso.net
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := button
PKG_VERSION := 1.0
PKG_RELEASE := 1
PKG_BUILD_DIR := $( BUILD_DIR) /$( PKG_NAME) -$( PKG_VERSION)
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
2010-10-13 09:08:23 +00:00
d e f i n e P a c k a g e / b u t t o n
2010-08-30 19:08:38 +00:00
SECTION:= utils
CATEGORY:= Utilities
DEPENDS:=
TITLE:= Button
e n d e f
d e f i n e P a c k a g e / b u t t o n / d e s c r i p t i o n
Helper bash scripts used as a callback for hotplug button events. net_toggle toggles between ethernet and wifi mode. net_defaults reverts all firewall, network and wireless settings to factory defaults.
e n d e f
d e f i n e B u i l d / P r e p a r e
mkdir -p $( PKG_BUILD_DIR)
$( CP) ./src/* $( PKG_BUILD_DIR) /
e n d e f
d e f i n e B u i l d / C o m p i l e
e n d e f
2010-10-13 09:08:23 +00:00
d e f i n e P a c k a g e / b u t t o n / i n s t a l l
2010-08-30 19:08:38 +00:00
$( INSTALL_DIR) $( 1) /usr/sbin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /net_toggle $( 1) /usr/sbin/
$( INSTALL_BIN) $( PKG_BUILD_DIR) /net_defaults $( 1) /usr/sbin/
e n d e f
$( eval $ ( call BuildPackage ,button ) )