1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= Painless, self-hosted Git service (GitHub-like)
8 HOMEPAGE= https://forgejo.org/
9 CONTACT= Michael_Reim[kraileth@elderlinux.org]
11 DOWNLOAD_GROUPS= main bundles
12 SITES[main]= https://codeberg.org/forgejo/forgejo/releases/download/v1.20.4-1/
13 DISTFILE[1]= forgejo-src-1.20.4-1.tar.gz:main
15 SPKGS[standard]= single
17 OPTIONS_AVAILABLE= none
18 OPTIONS_STANDARD= none
20 BUILD_DEPENDS= golang:single:standard
21 RUN_DEPENDS= git-lfs:single:standard
25 USERGROUP_SPKG= single
29 DISTNAME= forgejo-src-1.20.4-1
32 LICENSE_FILE= MIT:{{WRKSRC}}/LICENSE
35 MAKE_ENV= GOFLAGS="-mod=vendor"
36 GOBIN="{{WRKDIR}}/bin"
37 TAGS="bindata sqlite sqlite_unlock_notify"
39 INSTALL_REQ_TOOLCHAIN= yes
40 RC_SUBR= forgejo:single
41 SUB_FILES= app.ini.sample
43 SUB_LIST= GITUSER=forgejo
47 ${SETENV} ${MAKE_ENV} go build . )
50 ${INSTALL_PROGRAM} ${WRKDIR}/bin/gitea ${STAGEDIR}${PREFIX}/bin
51 ${LN} -s ${PREFIX}/bin/gitea ${STAGEDIR}${PREFIX}/bin/forgejo
52 ${MKDIR} ${STAGEDIR}${PREFIX}/etc/forgejo/conf
53 ${INSTALL_DATA} ${WRKSRC}/custom/conf/app.example.ini ${STAGEDIR}${PREFIX}/etc/forgejo/conf/app.ini.examples
54 ${INSTALL_DATA} ${WRKDIR}/app.ini.sample ${STAGEDIR}${PREFIX}/etc/forgejo/conf/app.ini.sample
57 ${ECHO_CMD} 1.20.4-1 > ${WRKSRC}/VERSION
59 [FILE:524:descriptions/desc.single]
60 Forgejo is a self-hosted lightweight software forge written in Go. Easy to
61 install and low maintenance, it just does the job if you're looking for an
62 alternative to GitHub.
64 It is currently a "soft" fork of Gitea which is a fork of Gogs. Forgejo
65 was started by members of the Gitea community who were unhappy that the
66 leaders founded a for-profit company and acted rather intransparently in
67 that regard. Other than being guaranteed to always remain Free Software,
68 it puts its focus on scaling, federation and privacy.
72 732281d0f31d284499fd2a3708bd06250a7cfdad422e07886adb67a195881910 55536581 forgejo-src-1.20.4-1.tar.gz
75 [FILE:95:manifests/plist.single]
76 @sample etc/forgejo/conf/app.ini.sample
80 etc/forgejo/conf/app.ini.examples
83 [FILE:2653:files/app.ini.sample.in]
85 # Sample Configuration for Forgejo using SQLite
87 # For information on the available settings, consult the online
88 # documentation, or see the accompanying file app.ini.examples, which
89 # contains the settings incorporated into the gitea binary.
91 # This sample configuration runs Forgejo with a local database. Before
92 # running this configuration, make sure to change the INTERNAL_TOKEN,
93 # JWT_SECRET, and SECRET_KEY variables. SECRET_KEY is a password of your
94 # choosing, INTERNAL_TOKEN is a 64-byte random number in BASE64 encoding,
95 # JWT_SECRET is a 32-byte random number in BASE64 encoding.
97 # You can generate the token using for example:
98 # openssl rand -base64 64
100 # You can let Forgejo add these to the config for you; you need to make
101 # app.ini writeable by the configured user (default: forgejo).
103 # There are no pre-configured users; the first user to register becomes an
104 # admin. In this sample configuration, the HTTP server only listens on
107 # If you'd rather use the web-based installer, remove this conf/app.ini file
108 # and make %%PREFIX%%/etc/forgejo/conf writeable to the configured user.
110 APP_NAME = Gitea: Git with a cup of tea
111 RUN_USER = %%GITUSER%%
116 HOST = 127.0.0.1:3306
119 PATH = /var/db/forgejo/forgejo.db
124 ISSUE_INDEXER_PATH = /var/db/forgejo/indexers/issues.bleve
127 ROOT_PATH = /var/log/forgejo
135 JWT_SECRET = D56bmu6xCtEKs9vKKgMKnsa4X9FDwo64HVyaS4fQ4mY
138 AVATAR_UPLOAD_PATH = /var/db/forgejo/data/avatars
139 DISABLE_GRAVATAR = false
140 ENABLE_FEDERATED_AVATAR = false
143 ROOT = /var/db/forgejo/forgejo-repositories
144 # Forgejo's default is 'bash', so if you have bash installed, you can comment
149 TEMP_PATH = /var/db/forgejo/data/tmp/uploads
153 INTERNAL_TOKEN = 1FFhAklka01JhgJTRUrFujWYiv4ijqcTIfXJ9o4n1fWxz+XVQdXhrqDTlsnD7fvz7gugdhgkx0FY2Lx6IBdPQw==
154 SECRET_KEY = ChangeMeBeforeRunning
158 PROVIDER_CONFIG = /var/db/forgejo/data/sessions
162 HTTP_ADDR = 127.0.0.1
164 ROOT_URL = http://localhost:3000/
166 SSH_DOMAIN = %(DOMAIN)s
169 APP_DATA_PATH = /var/db/forgejo/data
172 REGISTER_EMAIL_CONFIRM = false
173 ENABLE_NOTIFY_MAIL = false
174 DISABLE_REGISTRATION = false
175 ENABLE_CAPTCHA = true
176 REQUIRE_SIGNIN_VIEW = false
179 PATH = %%PREFIX%%/bin/git
182 [FILE:1050:files/forgejo.in]
186 # REQUIRE: NETWORKING SYSLOG
189 # Add the following lines to /etc/rc.conf to enable forgejo:
191 #forgejo_enable="YES"
196 rcvar="forgejo_enable"
200 : ${forgejo_user:="%%GITUSER%%"}
201 : ${forgejo_enable:="NO"}
202 : ${forgejo_facility:="daemon"}
203 : ${forgejo_priority:="debug"}
204 : ${forgejo_shared:="%%PREFIX%%/share/${name}"}
205 : ${forgejo_custom:="%%PREFIX%%/etc/${name}"}
207 command="%%PREFIX%%/bin/${name} web"
208 procname="%%PREFIX%%/bin/${name}"
209 githome="$(eval echo ~${forgejo_user})"
211 pidfile="/var/run/${name}.pid"
213 start_cmd="${name}_start"
216 for d in /var/db/forgejo /var/log/forgejo; do
217 if [ ! -e "$d" ]; then
219 chown ${forgejo_user} "$d"
222 /usr/sbin/daemon -f \
223 -u ${forgejo_user} -p ${pidfile} \
225 "GITEA_WORK_DIR=${forgejo_shared}" \
226 "GITEA_CUSTOM=${forgejo_custom}" \
228 "PATH=%%PREFIX%%/bin:${PATH}" \
229 "USER=${forgejo_user}" \
236 [FILE:179:files/pkg-message-single.in]
237 A sample configuration using SQLite has been installed as
238 %%PREFIX%%/etc/forgejo/conf/app.ini. Change according to your
239 needs or use as-is to quickly get Forgejo up for testing.