mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
samba4: add package samba-4.8
Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=wsdd2
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://github.com/Andy2244/wsdd2.git
|
||||
PKG_SOURCE_DATE:=2018-07-24
|
||||
PKG_SOURCE_VERSION:=2c31ba3b720af81848c47dff7ad7c6c30c0c0f50
|
||||
PKG_MIRROR_HASH:=eb903a870d99c6001996dbfc22c15e1020278c45ed2441ceb61bc5395f417afa
|
||||
|
||||
PKG_MAINTAINER:=Andy Walsh <andy.walsh44+github@gmail.com>
|
||||
PKG_LICENSE:=GPL-3.0-only
|
||||
PKG_LICENSE_FILES:=COPYING
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/wsdd2
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
SUBMENU:=IP Addresses and Names
|
||||
TITLE:=Web Services for Devices (WSD) daemon
|
||||
URL:=https://kb.netgear.com/2649/NETGEAR-Open-Source-Code-for-Programmers-GPL
|
||||
endef
|
||||
|
||||
define Package/wsdd2/description
|
||||
Web Services for Devices or Web Services on Devices (WSD),
|
||||
is a Microsoft API to simplify programming connections to web service
|
||||
enabled devices, such as printers, scanners and file shares.
|
||||
|
||||
This daemon advertises and responds to probe requests from Windows clients looking for file shares.
|
||||
It also implements LLMNR multicast name lookup services.
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) $(PKG_BUILD_DIR)/{wsdd2.c,wsd.c,llmnr.c} -o $(PKG_BUILD_DIR)/wsdd2
|
||||
endef
|
||||
|
||||
define Package/wsdd2/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/wsdd2 $(1)/usr/bin/
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./files/wsdd2.init $(1)/etc/init.d/wsdd2
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,wsdd2))
|
||||
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
START=99
|
||||
USE_PROCD=1
|
||||
|
||||
start_service() {
|
||||
procd_open_instance
|
||||
procd_set_param command /usr/bin/wsdd2 -w
|
||||
procd_set_param respawn
|
||||
procd_set_param file /var/etc/smb.conf
|
||||
procd_close_instance
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
--- a/wsd.c 2018-07-20
|
||||
+++ b/wsd.c 2018-07-20
|
||||
@@ -97,12 +97,17 @@ static void uuid_endpoint(char *uuid, si
|
||||
FILE *fp = fopen("/etc/machine-id", "r");
|
||||
int c, i = 0;
|
||||
|
||||
+ if (!fp) {
|
||||
+ DEBUG(0, W, "Can't open '/etc/machine-id', trying '/proc/sys/kernel/random/boot_id'");
|
||||
+ fp = fopen("/proc/sys/kernel/random/boot_id", "r");
|
||||
+ }
|
||||
+
|
||||
if (!fp)
|
||||
return;
|
||||
|
||||
while (i < 36 && (c = getc(fp)) != EOF &&
|
||||
- (isdigit(c) || (islower(c) && isxdigit(c)))) {
|
||||
- if (i == 8 || i == 13 || i == 18 || i == 23)
|
||||
+ ((c == '-') || isdigit(c) || (islower(c) && isxdigit(c)))) {
|
||||
+ if ((c != '-') && (i == 8 || i == 13 || i == 18 || i == 23))
|
||||
uuid[i++] = '-';
|
||||
uuid[i++] = c;
|
||||
}
|
||||
Reference in New Issue
Block a user