secubox-openwrt/package/secubox/secubox-app-ksmbd/Makefile
CyberMind-FR 9ddf5a4e0b fix(build): Fix 16 failed packages with missing Build/Compile and URL config
- Add missing 'define Build/Compile' to script-only packages:
  - secubox-app-config-vault
  - secubox-app-gotosocial
  - secubox-app-ipblocklist
  - secubox-app-ksmbd
  - secubox-app-qbittorrent
  - secubox-app-talk-hpb
  - secubox-app-vhost-manager
  - secubox-app-webtorrent
  - secubox-avatar-tap
  - secubox-core-users
  - secubox-dpi-dual
  - secubox-app-backup

- Fix luci-app-interceptor: Add missing BuildPackage call
- Fix luci-app-master-link: Correct RPCD handler filename (underscore → dash)
- Fix luci-app-config-vault: Add Build/Compile definition

- Create secubox-console Makefile (new package for remote management)
- Create secubox-app-backup cron job file

- Update secubox-app-repo: Change feed URLs from local IP (192.168.255.1:8888)
  to repo.secubox.in domain with HTTPS and proper src/gz format

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-18 18:01:51 +01:00

52 lines
1.2 KiB
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=secubox-app-ksmbd
PKG_VERSION:=0.1.0
PKG_RELEASE:=1
PKG_MAINTAINER:=SecuBox Team
PKG_LICENSE:=MIT
include $(INCLUDE_DIR)/package.mk
define Package/secubox-app-ksmbd
SECTION:=secubox
CATEGORY:=SecuBox
SUBMENU:=Applications
TITLE:=SecuBox Mesh Media Server (ksmbd)
DEPENDS:=+ksmbd-server +ksmbd-avahi-service
PKGARCH:=all
PKG_FLAGS:=nonshared
endef
define Package/secubox-app-ksmbd/description
SecuBox wrapper for ksmbd in-kernel SMB3 server.
Provides mesh media sharing with automatic discovery,
pre-configured media shares, and P2P integration.
endef
define Package/secubox-app-ksmbd/conffiles
/etc/config/secubox-ksmbd
endef
define Build/Compile
endef
define Package/secubox-app-ksmbd/install
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) ./files/etc/config/secubox-ksmbd $(1)/etc/config/secubox-ksmbd
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) ./files/usr/sbin/ksmbdctl $(1)/usr/sbin/ksmbdctl
endef
define Package/secubox-app-ksmbd/postinst
#!/bin/sh
[ -n "$${IPKG_INSTROOT}" ] || {
# Apply default shares on first install
/usr/sbin/ksmbdctl apply 2>/dev/null || true
}
exit 0
endef
$(eval $(call BuildPackage,secubox-app-ksmbd))