summaryrefslogtreecommitdiff
path: root/openwrt/package/psybnc/Makefile
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2005-11-06 17:19:05 +0000
committerNicolas Thill <nico@openwrt.org>2005-11-06 17:19:05 +0000
commitdacafff89cb9ff6b3a92f35a142bd5e1f37a0b93 (patch)
tree866032a623b5e0784f5cdf8db9bf01cda34bf274 /openwrt/package/psybnc/Makefile
parent4b8a6703c580445fe1f1fee6b97afd31831657f9 (diff)
downloadmtk-20170518-dacafff89cb9ff6b3a92f35a142bd5e1f37a0b93.zip
mtk-20170518-dacafff89cb9ff6b3a92f35a142bd5e1f37a0b93.tar.gz
mtk-20170518-dacafff89cb9ff6b3a92f35a142bd5e1f37a0b93.tar.bz2
add psybnc package (thanks to Peter Feuerer)
SVN-Revision: 2355
Diffstat (limited to 'openwrt/package/psybnc/Makefile')
-rw-r--r--openwrt/package/psybnc/Makefile39
1 files changed, 39 insertions, 0 deletions
diff --git a/openwrt/package/psybnc/Makefile b/openwrt/package/psybnc/Makefile
new file mode 100644
index 0000000..f48a191
--- /dev/null
+++ b/openwrt/package/psybnc/Makefile
@@ -0,0 +1,39 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=psybnc
+PKG_VERSION:=2.3.2-7
+PKG_RELEASE:=1
+PKG_MD5SUM:=4b893a92f914813450e0921b2894ad6c
+
+PKG_SOURCE_URL:=http://www.psybnc.info/download/beta/
+PKG_SOURCE:=psyBNC-$(PKG_VERSION).tar.gz
+PKG_CAT:=zcat
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
+
+include $(TOPDIR)/package/rules.mk
+
+$(eval $(call PKG_template,PSYBNC,psybnc,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
+
+$(PKG_BUILD_DIR)/.built:
+ $(MAKE) -C $(PKG_BUILD_DIR) \
+ CC="$(TARGET_CC)" \
+ CFLAGS="$(TARGET_CFLAGS)" \
+ HOSTCC="$(HOSTCC)" \
+ all
+ touch $@
+
+$(IPKG_PSYBNC):
+ install -d -m0755 $(IDIR_PSYBNC)/usr/share/psybnc/lang/
+ install -d -m0755 $(IDIR_PSYBNC)/usr/share/psybnc/log/
+ install -d -m0755 $(IDIR_PSYBNC)/usr/sbin/
+ install -m0755 $(PKG_BUILD_DIR)/psybnc $(IDIR_PSYBNC)/usr/share/psybnc/
+ install -m0600 $(PKG_BUILD_DIR)/psybnc.conf $(IDIR_PSYBNC)/usr/share/psybnc/
+ install -m0644 $(PKG_BUILD_DIR)/lang/english.lng $(IDIR_PSYBNC)/usr/share/psybnc/lang/
+ install -m0755 $(PKG_BUILD_DIR)/psybnc.sh $(IDIR_PSYBNC)/usr/sbin/psybnc
+ $(RSTRIP) $(IDIR_PSYBNC)
+ $(IPKG_BUILD) $(IDIR_PSYBNC) $(PACKAGE_DIR)
+
+mostlyclean:
+ -$(MAKE) -C $(PKG_BUILD_DIR) clean
+ rm -f $(PKG_BUILD_DIR)/.built