secubox-openwrt/package/secubox/secubox-app-gitea/Makefile
CyberMind-FR 92a82967bb fix(deps): Remove libubox/libubus/libuci from all SecuBox package dependencies
These base OpenWrt libraries are always present on the system but their
versions in the SDK-built feed don't match the router's installed versions,
causing opkg to fail with "Cannot satisfy dependencies" errors.

Fixed packages (18 total):
- secubox-core: removed libubox, libubus, libuci
- luci-app-ksm-manager: removed libubus, libubox
- luci-app-mqtt-bridge: removed libuci
- secubox-app-adguardhome: removed uci, libuci
- secubox-app-auth-logger: removed libubox-lua
- secubox-app-domoticz: removed uci, libuci
- secubox-app-gitea: removed uci, libuci
- secubox-app-glances: removed uci, libuci
- secubox-app-hexojs: removed uci, libuci
- secubox-app-lyrion: removed uci, libuci
- secubox-app-magicmirror2: removed uci, libuci
- secubox-app-mailinabox: removed uci, libuci
- secubox-app-mitmproxy: removed uci, libuci
- secubox-app-nextcloud: removed uci, libuci
- secubox-app-ollama: removed uci, libuci
- secubox-app-picobrew: removed uci, libuci
- secubox-app-streamlit: removed uci, libuci
- secubox-app-zigbee2mqtt: removed uci, libuci

The packages still work because these libs are implicitly available.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 19:49:27 +01:00

81 lines
1.8 KiB
Makefile

# SPDX-License-Identifier: MIT
#
# Copyright (C) 2025 CyberMind.fr
#
# SecuBox Gitea App - Self-hosted Git platform
include $(TOPDIR)/rules.mk
PKG_NAME:=secubox-app-gitea
PKG_VERSION:=1.0.0
PKG_RELEASE:=5
PKG_ARCH:=all
PKG_MAINTAINER:=CyberMind Studio <contact@cybermind.fr>
PKG_LICENSE:=MIT
include $(INCLUDE_DIR)/package.mk
define Package/secubox-app-gitea
SECTION:=utils
CATEGORY:=Utilities
PKGARCH:=all
SUBMENU:=SecuBox Apps
TITLE:=SecuBox Gitea Platform
DEPENDS:=jsonfilter +wget-ssl +tar +lxc +lxc-common +git
endef
define Package/secubox-app-gitea/description
Gitea Git Platform - Self-hosted lightweight Git service
Features:
- Run Gitea in LXC container
- Git HTTP and SSH support
- Repository management
- User management with web UI
- SQLite database (embedded)
- Backup and restore
Runs in LXC container with Alpine Linux.
Configure in /etc/config/gitea.
endef
define Package/secubox-app-gitea/conffiles
/etc/config/gitea
endef
define Build/Compile
endef
define Package/secubox-app-gitea/install
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) ./files/etc/config/gitea $(1)/etc/config/gitea
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/etc/init.d/gitea $(1)/etc/init.d/gitea
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) ./files/usr/sbin/giteactl $(1)/usr/sbin/giteactl
endef
define Package/secubox-app-gitea/postinst
#!/bin/sh
[ -n "$${IPKG_INSTROOT}" ] || {
echo ""
echo "Gitea Platform installed."
echo ""
echo "To install and start Gitea:"
echo " giteactl install"
echo " /etc/init.d/gitea start"
echo ""
echo "Web interface: http://<router-ip>:3000"
echo "SSH Git access: ssh://git@<router-ip>:2222"
echo ""
echo "Create admin user: giteactl admin create-user --username admin --password secret --email admin@localhost"
echo ""
}
exit 0
endef
$(eval $(call BuildPackage,secubox-app-gitea))