[patchteam] Add mrtg software package - Signed-off: Paolo Pisati <p.pisati@gmail...
[openwrt/svn-archive/archive.git] / net / mrtg / Makefile
1 #
2 # Copyright (C) 2011 OpenWrt.org
3 # Copyright (C) 2011 Paolo Pisati <p.pisati@gmail.com>
4 #
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
7 #
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=mrtg
12 PKG_VERSION:=2.17.3
13 PKG_RELEASE:=
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://oss.oetiker.ch/mrtg/pub/
17 PKG_MD5SUM:=c803f671d04367ee719039ea71fb5b37
18
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/mrtg
24 SECTION:=net
25 CATEGORY:=Network
26 DEPENDS:=+libgd +libpng +zlib +perl +perlbase-essential +perlbase-findbin +perlbase-cwd +perlbase-config +perlbase-file +perlbase-getopt +perlbase-math +perlbase-integer +perlbase-xsloader +perlbase-pod +perlbase-universal +perlbase-socket +perlbase-posix +perlbase-autoloader +perlbase-fcntl +perlbase-tie +perlbase-io +perlbase-symbol +perlbase-selectsaver +perlbase-errno
27 TITLE:=The Multi Router Traffic Grapher
28 URL:=http://oss.oetiker.ch/mrtg/index.en.html
29 endef
30
31 define Package/mrtg/description
32 The Multi Router Traffic Grapher, or just simply MRTG, is free software for
33 monitoring and measuring the traffic load on network links. It allows the
34 user to see traffic load on a network over time in graphical form. It was
35 originally developed by Tobias Oetiker and Dave Rand to monitor router
36 traffic, but has developed into a tool that can create graphs and statistics
37 for almost anything.
38 endef
39
40 EXTRA_CFLAGS+= $(TARGET_CPPFLAGS)
41 EXTRA_LDFLAGS+= $(TARGET_LDFLAGS) -Wl,-rpath-link,$(STAGING_DIR)/usr/lib
42
43 define Package/mrtg/install
44 $(INSTALL_DIR) $(1)/usr/bin
45 $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
46 $(INSTALL_DIR) $(1)/usr/lib
47 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
48 $(INSTALL_DIR) $(1)/usr/share
49 $(CP) $(PKG_INSTALL_DIR)/usr/share/* $(1)/usr/share/
50 endef
51
52 $(eval $(call BuildPackage,mrtg))