[packages] openslp: use PKG_INSTALL, move daemon in /usr/sbin and libraries in /usr...
[openwrt/svn-archive/archive.git] / net / openslp / Makefile
1 #
2 # Copyright (C) 2008-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=openslp
11 PKG_VERSION:=1.2.1
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/openslp
16 PKG_MD5SUM:=ff9999d1b44017281dd00ed2c4d32330
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/openslp
23 SECTION:=net
24 CATEGORY:=Network
25 TITLE:=openslp
26 URL:=http://www.openslp.org/
27 endef
28
29 #CONFIGURE_ARGS += \
30 # --disable-libwrap
31
32 #MAKE_FLAGS += \
33 # CFLAGS="$(TARGET_CFLAGS) -Wall -D_REENTRANT" \
34 # all
35
36 define Package/openslp/install
37 $(INSTALL_DIR) $(1)/usr/lib
38 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libslp.so.* $(1)/usr/lib/
39 $(INSTALL_DIR) $(1)/usr/bin
40 $(CP) $(PKG_INSTALL_DIR)/usr/bin/slptool $(1)/usr/bin/
41 $(INSTALL_DIR) $(1)/usr/sbin
42 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/slpd $(1)/usr/sbin/
43 $(INSTALL_DIR) $(1)/etc
44 $(INSTALL_DATA) ./files/etc/slp.* $(1)/etc/
45 $(INSTALL_DIR) $(1)/etc/init.d
46 $(INSTALL_BIN) ./files/etc/init.d/* $(1)/etc/init.d/
47 endef
48
49 $(eval $(call BuildPackage,openslp))