2 # Copyright (C) 2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://tedfelix.com
/linux
/
16 PKG_MD5SUM
:=d5dd88bcfaa4a0bf51905e95115da6df
18 include $(INCLUDE_DIR
)/package.mk
23 TITLE
:=The ACPI Daemon
(acpid
) With Netlink Support
24 URL
:=http
://tedfelix.com
/linux
/acpid-netlink.html
25 DEPENDS
:=+kmod-input-evdev
+kmod-acpi-button
28 define Package
/acpid
/description
29 The ACPI Daemon
(acpid
) With Netlink Support
33 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
36 LDFLAGS
="$(TARGET_LDFLAGS)" \
40 define Package
/acpid
/install
41 $(INSTALL_DIR
) $(1)/usr
/sbin
42 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/acpid
$(1)/usr
/sbin
/
43 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/acpi_listen
$(1)/usr
/sbin
/
44 $(INSTALL_DIR
) $(1)/etc
/acpi
/events
45 $(INSTALL_CONF
) .
/files
/default
$(1)/etc
/acpi
/events
/default
46 $(INSTALL_DIR
) $(1)/etc
/init.d
47 $(INSTALL_CONF
) .
/files
/acpid.init
$(1)/etc
/init.d
/acpid
48 chmod
0750 $(1)/etc
/init.d
/acpid
49 $(INSTALL_DIR
) $(1)/etc
/hotplug.d
/input
/
50 $(INSTALL_CONF
) .
/files
/acpid.hotplug
$(1)/etc
/hotplug.d
/input
/
53 define Package
/acpid
/postinst
55 [ -n
"$${IPKG_INSTROOT}" ] ||
{
56 echo
"waiting for input devices to come up"
57 /etc
/init.d
/acpid enable
59 /etc
/init.d
/acpid start
60 echo
"please try the power button"
65 $(eval
$(call BuildPackage
,acpid
))