1a045f0d59ce1006368b5e6d9097e08c6a8dd111
[openwrt/svn-archive/archive.git] / net / openslp / Makefile
1 #
2 # Copyright (C) 2008 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:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/openslp
16 PKG_MD5SUM:=ff9999d1b44017281dd00ed2c4d32330
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/openslp
21 SECTION:=net
22 CATEGORY:=Network
23 TITLE:=openslp
24 URL:=http://www.openslp.org/
25 endef
26
27 #CONFIGURE_ARGS += \
28 # --disable-libwrap
29
30 #MAKE_FLAGS += \
31 # CFLAGS="$(TARGET_CFLAGS) -Wall -D_REENTRANT" \
32 # all
33
34 define Package/openslp/install
35 $(INSTALL_DIR) $(1)/etc $(1)/lib $(1)/usr/bin $(1)/etc/init.d
36 $(INSTALL_BIN) $(PKG_BUILD_DIR)/slpd/slpd $(1)/usr/bin/
37 $(INSTALL_BIN) $(PKG_BUILD_DIR)/slptool/.libs/slptool $(1)/usr/bin/
38 $(CP) $(PKG_BUILD_DIR)/libslp/.libs/libslp.so* $(1)/lib
39 $(INSTALL_DATA) ./files/etc/slp.* $(1)/etc
40 $(INSTALL_BIN) ./files/etc/init.d/* $(1)/etc/init.d
41 endef
42
43 $(eval $(call BuildPackage,openslp))