buildroot:gitea
gitea
Painless self-hosted Git service, community managed.
runtime dependencies | git (Development tools) |
---|---|
sqlite (Database) | |
make dependencies | go |
nodejs (Interpreter languages and scripting) | |
npm |
mkdir /data/buildroot/package/gitea cat > /data/buildroot/package/gitea/Config.in<< 'EOF' config BR2_PACKAGE_GITEA bool "gitea" depends on BR2_PACKAGE_GIT depends on BR2_PACKAGE_SQLITE help Painless self-hosted Git service, community managed. EOF cat > /data/buildroot/package/gitea/gitea.mk<< 'EOF' ############################################################# # # gitea # https://github.com/go-gitea/gitea/releases/download/v1.16.5/gitea-src-1.16.5.tar.gz # gitea.tmpfiles 9f63a517e8da6865fa6d9e87f6b08fe25ea56285304115e052809663c48dc3d7 # gitea.service b16d02a9f32a17cc14dfa46a980bad795a4ed744627e6342248f60236dc2be43 # gitea.sysusers 7e7b798b8ce035c1fb55993ece41c5efb6cad5922708866804fa50ada0cf9fa5 ############################################################# GITEA_VERSION = 1.16.5 GITEA_SOURCE = gitea-src-$(GITEA_VERSION).tar.gz GITEA_SITE = https://github.com/go-gitea/gitea/releases/download/v$(GITEA_VERSION) GITEA_DEPENDENCIES = git sqlite define GITEA_BUILD_CMDS cd $(@D)/ && \ git clone https://aur.archlinux.org/gitea-git.git && \ GOROOT=/go GOPATH=$(@D)/go TAGS="bindata sqlite sqlite_unlock_notify pam" make build endef define GITEA_INSTALL_TARGET_CMDS install -Dm755 $(@D)/gitea -t "${TARGET_DIR}"/usr/bin/ install -Dm644 $(@D)/LICENSE -t "${TARGET_DIR}"/usr/share/licenses/gitea/ install -Dm644 $(@D)/gitea-git/gitea.service -t "${TARGET_DIR}"/usr/lib/systemd/system/ install -Dm644 $(@D)/gitea-git/gitea.tmpfiles "${TARGET_DIR}"/usr/lib/tmpfiles.d/gitea.conf install -Dm644 $(@D)/gitea-git/gitea.sysusers "${TARGET_DIR}"/usr/lib/sysusers.d/gitea.conf install -D $(@D)/custom/conf/app.example.ini -t "${TARGET_DIR}"/etc/gitea/ endef define GITEA_USERS gitea -1 gitea -1 = - - - gitea user endef $(eval $(generic-package)) EOF sed -i '/menu "Custom packages"/a source "package/gitea/Config.in"' /data/buildroot/package/Config.in
buildroot/gitea.txt · Last modified: 2025/02/19 10:59 by 127.0.0.1