Retain symlinks. $(INSTALL_*) copys the contens of a file, so if we want to keep
[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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=openslp
12 PKG_VERSION:=1.2.1
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://prdownloads.sourceforge.net/openslp/
17 PKG_MD5SUM:=ff9999d1b44017281dd00ed2c4d32330
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/openslp
22 SECTION:=net
23 CATEGORY:=Network
24 TITLE:=openslp
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))