d0be77d276dc80704b5a6702a063e3d26f2f74b7
[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 PKG_FIXUP:=libtool
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/openslp
24 SECTION:=net
25 CATEGORY:=Network
26 TITLE:=openslp
27 URL:=http://www.openslp.org/
28 endef
29
30 #CONFIGURE_ARGS += \
31 # --disable-libwrap
32
33 #MAKE_FLAGS += \
34 # CFLAGS="$(TARGET_CFLAGS) -Wall -D_REENTRANT" \
35 # all
36
37 define Package/openslp/install
38 $(INSTALL_DIR) $(1)/usr/lib
39 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libslp.so.* $(1)/usr/lib/
40 $(INSTALL_DIR) $(1)/usr/bin
41 $(CP) $(PKG_INSTALL_DIR)/usr/bin/slptool $(1)/usr/bin/
42 $(INSTALL_DIR) $(1)/usr/sbin
43 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/slpd $(1)/usr/sbin/
44 $(INSTALL_DIR) $(1)/etc
45 $(INSTALL_DATA) ./files/etc/slp.* $(1)/etc/
46 $(INSTALL_DIR) $(1)/etc/init.d
47 $(INSTALL_BIN) ./files/etc/init.d/* $(1)/etc/init.d/
48 endef
49
50 $(eval $(call BuildPackage,openslp))