port pwlib to buildroot-ng
[packages.git] / utils / cifsmount / Makefile
1
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=cifsmount
12 PKG_VERSION:=1.5
13 PKG_RELEASE:=2
14
15 PKG_BUILD_DIR:=$(BUILD_DIR)/cifsmount
16
17 include $(INCLUDE_DIR)/package.mk
18
19 define Package/cifsmount
20   SECTION:=utils
21   CATEGORY:=Utilities
22   TITLE:=CIFS mounting helper utility
23   DESCRIPTION:=Helper utility for mounting remote CIFS shares.\\\
24     An user space helper for mounting remote CIFS shares
25 endef
26
27 define Build/Prepare
28         mkdir -p $(PKG_BUILD_DIR)
29 endef
30
31 define Build/Configure
32 endef
33
34 define Build/Compile
35         $(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/mount.cifs mount.cifs.c
36 endef
37
38 define Package/cifsmount/install
39         install -d -m0755 $(1)/sbin
40         install -m0755 $(PKG_BUILD_DIR)/mount.cifs $(1)/sbin/
41 endef
42
43 $(eval $(call BuildPackage,cifsmount))