install-libs
endef
-define Build/UninstallDev
- -$(MAKE) -C $(PKG_BUILD_DIR) \
- BUILDCC="$(HOSTCC)" \
- DESTDIR="$(STAGING_DIR)" \
- uninstall-libs
-endef
-
define Package/e2fsprogs/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/e2fsck $(1)/usr/sbin/
$(SED) 's,-I$$$${includedir}/fuse,,g' $(1)/usr/lib/pkgconfig/fuse.pc
$(SED) 's,-L$$$${libdir},,g' $(1)/usr/lib/pkgconfig/fuse.pc
endef
-
-define Build/UninstallDev
- rm -rf $(1)/usr/include/fuse{,.h} \
- $(1)/usr/lib/libfuse.{a,so*} \
- $(1)/usr/lib/pkgconfig/fuse.pc
-endef
define Package/fuse-utils/install
$(INSTALL_DIR) $(1)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libgmp.{a,so*} $(1)/usr/lib/
endef
-define Build/UninstallDev
- rm -rf $(1)/usr/include/gmp* \
- $(1)/usr/lib/libgmp.{a,so*}
-endef
-
define Package/libgmp/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libgmp.so.* $(1)/usr/lib/
$(CP) $(PKG_BUILD_DIR)/libiptc/libiptc.a $(1)/usr/lib
endef
-define Build/UninstallDev
- rm -rf $(1)/usr/include/libipq.h
- rm -rf $(1)/usr/include/libipulog
- rm -rf $(1)/usr/include/libipq
- rm -rf $(1)/usr/include/libiptc
- rm -rf $(1)/usr/include/linux/netfilter*
- rm -rf $(1)/usr/include/iptables*
- rm -rf $(1)/usr/include/ip6tables*
- rm -rf $(1)/usr/lib/libipq.a
- rm -rf $(1)/usr/lib/libiptc.a
-endef
-
define Package/iptables/install
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_DATA) ./files/firewall.config $(1)/etc/config/firewall
$(CP) $(PKG_BUILD_DIR)/libkeynote.a $(1)/usr/lib/
endef
-define Build/UninstallDev
- rm -rf $(1)/usr/include/keynote \
- $(1)/usr/lib/libkeynote.a
-endef
-
define Package/keynote/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/keynote $(1)/usr/sbin/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/json.pc $(1)/usr/lib/pkgconfig/
endef
-define Build/UninstallDev
- rm -rf $(1)/usr/include/json \
- $(1)/usr/lib/libjson.{a,so*} \
- $(1)/usr/lib/pkgconfig/json.pc
-endef
-
define Package/libjson/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libjson.so.* $(1)/usr/lib/
$(CP) $(PKG_BUILD_DIR)/include/linux $(1)/usr/include/libnl/
endef
- define Build/UninstallDev
- endef
-
define Package/libnl/install
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libnl.so.1 $(1)/usr/lib/
$(1)/usr/lib/
endef
-define Build/UninstallDev
- rm -rf $(1)/usr/include/pcap{,-bpf,-namedb}.h \
- $(1)/usr/lib/libpcap.{a,so*}
-endef
-
define Package/libpcap/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcap.so.* $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libatm.{a,so*} \
$(1)/usr/lib/
endef
-
- define Build/UninstallDev
- rm -rf $(1)/usr/include/atm{,d,sap}.h \
- $(1)/usr/lib/libatm.{a,so*}
- endef
endif
define Package/linux-atm/install
$(CP) $(PKG_BUILD_DIR)/net/mac80211/*.h $(PKG_BUILD_DIR)/include/* $(1)/usr/include/mac80211/
endef
- define Build/UninstallDev
- rm -rf $(1)/usr/include/mac80211
- endef
-
define KernelPackage/mac80211/install
$(INSTALL_DIR) $(1)/lib/wifi
$(INSTALL_DATA) ./files/lib/wifi/mac80211.sh $(1)/lib/wifi
$(CP) $(PKG_BUILD_DIR)/net80211/*.h $(1)/usr/include/madwifi/net80211/
endef
-define Build/UninstallDev
- rm -rf $(1)/usr/include/madwifi
-endef
-
define KernelPackage/madwifi/install
$(INSTALL_DIR) $(1)/lib/wifi
$(INSTALL_DATA) ./files/lib/wifi/madwifi.sh $(1)/lib/wifi
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{ncurses,panel,menu,form}.{a,so*} $(1)/usr/lib/
endef
-define Build/UninstallDev
- rm -rf \
- $(1)/usr/include/curses.h \
- $(1)/usr/include/ncurses.h \
- $(1)/usr/include/ncurses_dll.h \
- $(1)/usr/include/menu.h \
- $(1)/usr/include/panel.h \
- $(1)/usr/include/term{,cap}.h \
- $(1)/usr/include/unctrl.h \
- $(1)/usr/include/form.h \
- $(1)/usr/include/eti.h \
- $(1)/usr/lib/libcurses.so \
- $(1)/usr/lib/lib{ncurses,panel,menu,form}.{a,so*}
-endef
-
$(eval $(call BuildPackage,libncurses))
$(CP) $(PKG_BUILD_DIR)/lib{nvram,shared}*.so $(1)/usr/lib/
endef
-define Build/UninstallDev
- rm -f $(1)/usr/lib/lib{nvram,shared}*.so
-endef
-
define Package/nvram/install
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/nvram.init $(1)/etc/init.d/nvram
$(SED) 's,$(TARGET_LDFLAGS),,g' $(1)/usr/lib/pkgconfig/{openssl,libcrypto,libssl}.pc
endef
-define Build/UninstallDev
- rm -rf $(1)/usr/include/openssl \
- $(1)/usr/lib/lib{crypto,ssl}.{a,so*} \
- $(1)/usr/lib/pkgconfig/{openssl,libcrypto,libssl}.pc
-endef
-
define Package/libopenssl/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{crypto,ssl}.so.* $(1)/usr/lib/
$(CP) $(PKG_BUILD_DIR)/libiw.so* $(1)/usr/lib/
ln -sf libiw.so.$(PKG_VERSION) $(1)/usr/lib/libiw.so
endef
-
-define Build/UninstallDev
- rm -f $(1)/usr/include/{iwlib,wireless}.h \
- $(1)/usr/lib/libiw.so*
-endef
define Package/wireless-tools/install
$(INSTALL_DIR) $(1)/usr/sbin
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libz.{a,so*} \
$(1)/usr/lib/
endef
-
-define Build/UninstallDev
- rm -rf $(1)/usr/include/z{conf,lib}.h \
- $(1)/usr/lib/libz.{a,so*}
-endef
# libz.so is needed for openssl (zlib-dynamic)
define Package/zlib/install