2 # Copyright (C) 2008-2011 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:=@SF/openslp
16 PKG_MD5SUM:=ff9999d1b44017281dd00ed2c4d32330
21 include $(INCLUDE_DIR)/package.mk
23 define Package/openslp
27 URL:=http://www.openslp.org/
34 # CFLAGS="$(TARGET_CFLAGS) -Wall -D_REENTRANT" \
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/
50 define Package/openslp/conffiles
54 $(eval $(call BuildPackage,openslp))