0
0
mirror of https://github.com/openwrt/packages.git synced 2025-07-05 13:33:08 +00:00
Files
packages/net/cifs-utils/Makefile
Ryan Keane a0f153e9a2 network: Add SUBMENU variable for some packages
Add SUBMENU variable for some packages in Network category.
Add title for `dnscrypt-proxy` package.
Shorten TITLE variable for `xray-core` package.

Filesystem:
- cifs-utils

File Transfer:
- onionshare-cli

IP Addresses and Names:
- dnscrypt-proxy2
- family-dns
- https-dns-proxy
- mdns-repeater
- nextdns
- smartdns

Version Control Systems:
- git-lfs

Wireless:
- dawn

Signed-off-by: Ryan Keane <the.ra2.ifv@gmail.com>
2024-11-22 23:39:38 +02:00

83 lines
1.9 KiB
Makefile

#
# Copyright (C) 2007-2012 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=cifs-utils
PKG_VERSION:=6.11
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=https://download.samba.org/pub/linux-cifs/cifs-utils/
PKG_HASH:=b859239a3f204f8220d3e54ed43bf8109e1ef202042dd87ba87492f8878728d9
PKG_MAINTAINER:=
PKG_LICENSE:=GPL-3.0-or-later
PKG_LICENSE_FILES:=COPYING
PKG_CPE_ID:=cpe:/a:samba:cifs-utils
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1
PKG_BUILD_FLAGS:=lto
include $(INCLUDE_DIR)/package.mk
define Package/cifsmount
SECTION:=net
CATEGORY:=Network
SUBMENU:=Filesystem
DEPENDS:=+kmod-fs-cifs
TITLE:=CIFS mount
URL:=https://wiki.samba.org/index.php/LinuxCIFS_utils
endef
define Package/smbinfo
SECTION:=net
CATEGORY:=Network
DEPENDS:=+kmod-fs-cifs
TITLE:=SMB info
URL:=https://wiki.samba.org/index.php/LinuxCIFS_utils
endef
CONFIGURE_ARGS += \
--disable-cifsupcall \
--disable-cifscreds \
--disable-cifsidmap \
--disable-cifsacl \
--disable-pam \
--disable-pie \
--disable-relro \
--disable-systemd \
--disable-man \
--without-libcap
CONFIGURE_ARGS += \
ac_cv_lib_cap_ng_capng_clear=no
TARGET_CFLAGS += $(FPIC) -ffunction-sections
TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/include/cifsidmap.h $(1)/usr/include/
endef
define Package/cifsmount/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/mount.cifs $(1)/usr/sbin/
$(LN) mount.cifs $(1)/usr/sbin/mount.smb3
endef
define Package/smbinfo/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/smbinfo $(1)/usr/bin/
endef
$(eval $(call BuildPackage,cifsmount))
$(eval $(call BuildPackage,smbinfo))