[package] also install rbash (#6927)
[openwrt/svn-archive/archive.git] / utils / pipacs / Makefile
1 #
2 # Copyright (C) 2006-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=pipacs
11 PKG_RELEASE:=2
12
13 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define Package/pipacs
18 SECTION:=utils
19 CATEGORY:=Utilities
20 TITLE:=UNIX socket accounting/wiewer program
21 endef
22
23 define Build/Prepare
24 $(CP) ./src/* $(PKG_BUILD_DIR)
25 endef
26
27 define Build/Compile
28 $(MAKE) -C $(PKG_BUILD_DIR) \
29 $(TARGET_CONFIGURE_OPTS) \
30 CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
31 all
32 endef
33
34 define Package/pipacs/install
35 $(INSTALL_DIR) $(1)/usr/bin
36 $(INSTALL_BIN) $(PKG_BUILD_DIR)/pipacs $(1)/usr/bin/
37 endef
38
39 $(eval $(call BuildPackage,pipacs))