xaizek / rocketgit (License: AGPLv3+) (since 2018-12-09)
Light and fast Git hosting solution suitable to serve both as a hub or as a personal code storage with its tickets, pull requests, API and much more.
Commit 6cbfef4abe177ad8dad6bdc5ba3fb1d0e2270a9b

Other bulk stuff.
Author: Catalin(ux) M. BOIE
Author date (UTC): 2011-06-27 19:50
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2011-06-27 19:50
Parent(s): a87bc5c123478e429f430684a0962c8301e7cf90
Signing key:
Tree: 547cffb5b8d125b31635092b0f44ea2b59d6ff65
File Lines added Lines deleted
duilder 40 32
duilder.conf 2 2
rocketgit.spec.in 3 2
File duilder changed (mode: 100755) (index 62411b6..eb0f11a)
... ... function duilder_final()
10 10
11 11 # Run release script # Run release script
12 12 if [ ! -z "${RELEASE_SCRIPT}" -a -x "${RELEASE_SCRIPT}" ]; then if [ ! -z "${RELEASE_SCRIPT}" -a -x "${RELEASE_SCRIPT}" ]; then
13 echo "Running ${RELEASE_SCRIPT}..."
13 echo "[*] Running ${RELEASE_SCRIPT}..."
14 14 ${RELEASE_SCRIPT} ${RELEASE_SCRIPT}
15 15 fi fi
16 16 } }
 
... ... function duilder_docs()
22 22 EXPORT_PATH="${3}" EXPORT_PATH="${3}"
23 23
24 24 if [ ! -d "${EXPORT_PATH}" ]; then if [ ! -d "${EXPORT_PATH}" ]; then
25 echo "WARN: ${EXPORT_PATH} does not exists. Skipping..."
26 return
25 echo "[*] WARN: ${EXPORT_PATH} does not exists. Creating it..."
26 mkdir -p "${EXPORT_PATH}"
27 27 fi fi
28 28
29 echo "Copying docs to [${EXPORT_PATH}]..."
29 echo "[*] Copying docs to [${EXPORT_PATH}]..."
30 30 for f in README License LICENSE Changelog Changelog-last TODO FAQ INSTALL; do for f in README License LICENSE Changelog Changelog-last TODO FAQ INSTALL; do
31 31 if [ -r "${f}" ]; then if [ -r "${f}" ]; then
32 32 cp -vp "${f}" "${EXPORT_PATH}/" cp -vp "${f}" "${EXPORT_PATH}/"
33 33 fi fi
34 34 done done
35 echo
35 36
36 37 if [ -d "screenshot" ]; then if [ -d "screenshot" ]; then
37 echo "Copying screenshots..."
38 echo "[*] Copying screenshots..."
38 39 mkdir -p "${EXPORT_PATH}" mkdir -p "${EXPORT_PATH}"
39 40 cp -vp screenshot/* "${EXPORT_PATH}/" cp -vp screenshot/* "${EXPORT_PATH}/"
41 echo
40 42 fi fi
41 43 } }
42 44
 
... ... function duilder_git()
49 51 GIT_PUSH="${5}" GIT_PUSH="${5}"
50 52
51 53 if [ ! -x /usr/bin/git ]; then if [ ! -x /usr/bin/git ]; then
52 echo "Warning: Git not found!"
54 echo "[*] Warning: Git not found!"
53 55 exit 0 exit 0
54 56 fi fi
55 57
56 58 if [ ! -d .git ]; then if [ ! -d .git ]; then
57 echo "Warning: I cannot find .git directory!"
59 echo "[*] Warning: I cannot find .git directory!"
58 60 exit 0 exit 0
59 61 fi fi
60 62
61 63 if [ "${EXPORT_GIT}" = "1" ]; then if [ "${EXPORT_GIT}" = "1" ]; then
62 echo "Generate GIT tree for HTTP transport..."
64 echo "[*] Generating GIT tree for HTTP transport..."
63 65 if [ ! -d "${GIT_DEST}/${PRJ}.git" ]; then if [ ! -d "${GIT_DEST}/${PRJ}.git" ]; then
64 66 git clone --bare . "${GIT_DEST}/${PRJ}.git" git clone --bare . "${GIT_DEST}/${PRJ}.git"
65 67
 
... ... function duilder_srpm()
165 167 P="${PRJ}-${VER}" P="${PRJ}-${VER}"
166 168
167 169 if [ ! -d "${EXPORT_PATH}" ]; then if [ ! -d "${EXPORT_PATH}" ]; then
168 echo "WARN: ${EXPORT_PATH} does not exists. Skipping..."
169 return
170 echo "WARN: ${EXPORT_PATH} does not exists. Creating it..."
171 mkdir -p "${EXPORT_PATH}"
170 172 fi fi
171 173
172 174 if [ "${BUILD_SRPM}" != "1" ]; then if [ "${BUILD_SRPM}" != "1" ]; then
173 175 exit 0 exit 0
174 176 fi fi
175 177
176 echo "Building SRPM..."
178 echo "[*] Building SRPM..."
177 179 rpmbuild -ts "${P}.tar.gz" rpmbuild -ts "${P}.tar.gz"
180 echo
178 181
179 182 PKG="${RPMBUILD}/SRPMS/${P}-1.src.rpm" PKG="${RPMBUILD}/SRPMS/${P}-1.src.rpm"
180 183
 
... ... function duilder_srpm()
182 185 if [ -x /usr/bin/rpmlint ]; then if [ -x /usr/bin/rpmlint ]; then
183 186 echo "[*] RPMlinting..." echo "[*] RPMlinting..."
184 187 rpmlint -iv "${PKG}" > rpmlint.out rpmlint -iv "${PKG}" > rpmlint.out
188 else
189 echo "[*] WARN: rpmlint is missing!"
185 190 fi fi
186 191
187 192 if [ ! -z "${SRPM_DEST}" ]; then if [ ! -z "${SRPM_DEST}" ]; then
188 echo "Copying [${PKG}] to [${SRPM_DEST}]..."
193 echo "[*] Copying [${PKG}] to [${SRPM_DEST}]..."
189 194 cp -vp "${PKG}" "${SRPM_DEST}/" cp -vp "${PKG}" "${SRPM_DEST}/"
195 echo
190 196 fi fi
191 197
192 echo "Copying to export dir [${EXPORT_PATH}]..."
198 echo "[*] Copying to export dir [${EXPORT_PATH}]..."
193 199 mkdir -p "${EXPORT_PATH}" mkdir -p "${EXPORT_PATH}"
194 200 cp -vp "${PKG}" "${EXPORT_PATH}/" cp -vp "${PKG}" "${EXPORT_PATH}/"
201 echo
195 202
196 203 if [ -x "${SRPM_POST_RUN}" ]; then if [ -x "${SRPM_POST_RUN}" ]; then
197 echo "Running post SRPM build script [${SRPM_POST_RUN}]..."
204 echo "[*] Running post SRPM build script [${SRPM_POST_RUN}]..."
198 205 ${SRPM_POST_RUN} "${PKG}" ${SRPM_POST_RUN} "${PKG}"
199 206 fi fi
200 207 } }
 
... ... function duilder_tar()
209 216 P="${PRJ}-${VER}" P="${PRJ}-${VER}"
210 217
211 218 if [ ! -d "${EXPORT_PATH}" ]; then if [ ! -d "${EXPORT_PATH}" ]; then
212 echo "WARN: ${EXPORT_PATH} does not exists. Skipping..."
213 return
219 echo "[*] WARN: ${EXPORT_PATH} does not exists. Creating it..."
220 mkdir -p "${EXPORT_PATH}"
214 221 fi fi
215 222
216 echo "Generating tarball [${P}.tar.gz]..."
223 echo "[*] Generating tarball [${P}.tar.gz]..."
217 224 ADD_EXCLUDE="" ADD_EXCLUDE=""
218 225 if [ ! -z "${EXCLUDE}" ]; then if [ ! -z "${EXCLUDE}" ]; then
219 226 ADD_EXCLUDE="--exclude-from ${P}/${EXCLUDE}" ADD_EXCLUDE="--exclude-from ${P}/${EXCLUDE}"
 
... ... function duilder_tar()
222 229 (cd .. \ (cd .. \
223 230 && rm -rf "${P}" \ && rm -rf "${P}" \
224 231 && cp -a --link "${PRJ}" "${P}" \ && cp -a --link "${PRJ}" "${P}" \
225 && tar czf "${PRJ}/${P}.tar.gz" \
232 && tar czvf "${PRJ}/${P}.tar.gz" \
226 233 --exclude-vcs \ --exclude-vcs \
227 234 --exclude ${P}/Makefile \ --exclude ${P}/Makefile \
228 235 ${ADD_EXCLUDE} \ ${ADD_EXCLUDE} \
 
... ... function duilder_tar()
230 237 && rm -rf "${P}" && rm -rf "${P}"
231 238 ) )
232 239
233 echo "Copying source to ${EXPORT_PATH}/..."
240 echo "[*] Copying source to ${EXPORT_PATH}..."
234 241 mkdir -p "${EXPORT_PATH}" mkdir -p "${EXPORT_PATH}"
235 242 cp -vp "${P}.tar.gz" "${EXPORT_PATH}/" cp -vp "${P}.tar.gz" "${EXPORT_PATH}/"
243 echo
236 244 } }
237 245
238 246 #################################################################### ####################################################################
 
... ... fi
246 254
247 255
248 256 if [ ! -r duilder.conf ]; then if [ ! -r duilder.conf ]; then
249 echo "You must build a duilder.conf file!"
257 echo "[*] You must build a duilder.conf file!"
250 258 exit 1 exit 1
251 259 fi fi
252 260
 
... ... if [ -z "${PRJ}" ]; then
263 271 fi fi
264 272
265 273 if [ -z "${VER}" ]; then if [ -z "${VER}" ]; then
266 echo "ERROR: PRJ= parameter is missing."
274 echo "ERROR: VER= parameter is missing."
267 275 exit 1 exit 1
268 276 fi fi
269 277
 
... ... fi
311 319 ###### Main stuff ###### Main stuff
312 320 echo echo
313 321 echo "Duilder builder script" echo "Duilder builder script"
314 echo "Copyright Catalin(ux) M. BOIE"
322 echo "Copyright Catalin(ux) M. BOIE - catab at embedromix dot ro"
315 323 echo echo
316 324 echo "PRJ=${PRJ}, VER=${VER}, REV=${REV}" echo "PRJ=${PRJ}, VER=${VER}, REV=${REV}"
317 325 echo "System: `uname -a`" echo "System: `uname -a`"
 
... ... done
362 370
363 371 DB_SUPPORT=0 DB_SUPPORT=0
364 372
365 echo -n "Searching for PostgreSQL..."
373 echo -n "[*] Searching for PostgreSQL..."
366 374 set +e set +e
367 375 PG_VERSION="`pg_config --version 2>/dev/null`" PG_VERSION="`pg_config --version 2>/dev/null`"
368 376 set -e set -e
 
... ... fi
385 393 echo "s#@PG_FOUND@#${PG_FOUND}#g" >> tmp.sed echo "s#@PG_FOUND@#${PG_FOUND}#g" >> tmp.sed
386 394
387 395
388 echo -n "Searching for MySQL..."
396 echo -n "[*] Searching for MySQL..."
389 397 set +e set +e
390 398 MYSQL_VERSION="`mysql_config --version 2>/dev/null`" MYSQL_VERSION="`mysql_config --version 2>/dev/null`"
391 399 set -e set -e
 
... ... else
407 415 fi fi
408 416 echo "s#@MYSQL_FOUND@#${MYSQL_FOUND}#g" >> tmp.sed echo "s#@MYSQL_FOUND@#${MYSQL_FOUND}#g" >> tmp.sed
409 417
410 echo -n "Searching for poll..."
418 echo -n "[*] Searching for poll..."
411 419 set +e set +e
412 420 echo -e "#include <poll.h> \n int main(void) { return poll(0, 0, 0); }" | gcc -x c -pipe - -o /dev/null 2>/dev/null echo -e "#include <poll.h> \n int main(void) { return poll(0, 0, 0); }" | gcc -x c -pipe - -o /dev/null 2>/dev/null
413 421 E="${?}" E="${?}"
 
... ... else
420 428 echo "s#@POLL_FOUND@#1#g" >> tmp.sed echo "s#@POLL_FOUND@#1#g" >> tmp.sed
421 429 fi fi
422 430
423 echo -n "Searching for epoll..."
431 echo -n "[*] Searching for epoll..."
424 432 set +e set +e
425 433 echo -e "#include <sys/epoll.h> \n int main(void) { return epoll_create(64); }" | gcc -x c -pipe - -o /dev/null 2>/dev/null echo -e "#include <sys/epoll.h> \n int main(void) { return epoll_create(64); }" | gcc -x c -pipe - -o /dev/null 2>/dev/null
426 434 E="${?}" E="${?}"
 
... ... else
433 441 echo "s#@EPOLL_FOUND@#1#g" >> tmp.sed echo "s#@EPOLL_FOUND@#1#g" >> tmp.sed
434 442 fi fi
435 443
436 echo -n "Searching for ncurses..."
444 echo -n "[*] Searching for ncurses..."
437 445 set +e set +e
438 446 echo -e "#include <ncurses.h> \n int main(void) { initscr(); return 0; }" | gcc -x c -pipe - -o /dev/null -lncurses 2>/dev/null echo -e "#include <ncurses.h> \n int main(void) { initscr(); return 0; }" | gcc -x c -pipe - -o /dev/null -lncurses 2>/dev/null
439 447 E="${?}" E="${?}"
 
... ... echo "s#@EXPORT_PATH@#${EXPORT_PATH}#g" >> tmp.sed
468 476
469 477
470 478 if [ -r Makefile.in ]; then if [ -r Makefile.in ]; then
471 echo "Building Makefile..."
479 echo "[*] Building Makefile..."
472 480 echo -n > Makefile echo -n > Makefile
473 481 echo "# duilder header starts #" >> Makefile echo "# duilder header starts #" >> Makefile
474 482 echo "export PRJ := ${PRJ}" >> Makefile echo "export PRJ := ${PRJ}" >> Makefile
 
... ... if [ -r Makefile.in ]; then
525 533 fi fi
526 534
527 535 if [ -r "${PRJ}.spec.in" ]; then if [ -r "${PRJ}.spec.in" ]; then
528 echo "Generate .spec file..."
536 echo "[*] Generating .spec file..."
529 537 sed -f tmp.sed ${PRJ}.spec.in > ${PRJ}.spec sed -f tmp.sed ${PRJ}.spec.in > ${PRJ}.spec
530 538 fi fi
531 539
532 540 if [ ! -z "${CONFIG_H}" ]; then if [ ! -z "${CONFIG_H}" ]; then
533 echo "Generating ${CONFIG_H} file..."
541 echo "[*] Generating ${CONFIG_H} file..."
534 542 sed -f tmp.sed ${CONFIG_H}.in > ${CONFIG_H} sed -f tmp.sed ${CONFIG_H}.in > ${CONFIG_H}
535 543 fi fi
536 544
537 545 rm -f tmp.sed rm -f tmp.sed
538 546
539 547 if [ "`basename ${0}`" = "duilderx" ]; then if [ "`basename ${0}`" = "duilderx" ]; then
540 echo "Clone myself to destination as 'duilder'..."
548 echo "[*] Cloning myself to destination as 'duilder'..."
541 549 cp -vpf "${0}" ${PWD}/duilder cp -vpf "${0}" ${PWD}/duilder
542 550 fi fi
543 551
544 echo "Done. Run make."
552 echo "[*] Done. Run make."
File duilder.conf changed (mode: 100644) (index aefe13c..eb03e0e)
1 1 PRJ="rocketgit" PRJ="rocketgit"
2 VER="0.1"
2 VER="0.2"
3 3 REV="1" REV="1"
4 EXCLUDE=""
4 EXCLUDE=".exclude"
5 5 EXPORT_PATH="/data/www/umbrella/kernel/us/rocketgit" EXPORT_PATH="/data/www/umbrella/kernel/us/rocketgit"
6 6 EXPORT_GIT="0" EXPORT_GIT="0"
7 7 GIT_CHANGELOG="1" GIT_CHANGELOG="1"
File rocketgit.spec.in changed (mode: 100644) (index 23674f5..f71a948)
... ... Name: @PRJ@
3 3 Version: @VER@ Version: @VER@
4 4 Release: @REV@ Release: @REV@
5 5 License: GPLv3 License: GPLv3
6 Group: Applications/Network
6 Group: Development/Tools
7 7 Source: http://kernel.embedromix.ro/us/rocketgit/%{name}-%{version}.tar.gz Source: http://kernel.embedromix.ro/us/rocketgit/%{name}-%{version}.tar.gz
8 8 URL: http://kernel.embedromix.ro/us/ URL: http://kernel.embedromix.ro/us/
9 Packager: Catalin(ux) M. BOIE <catab@embedromix.ro>
10 9 BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
11 10 BuildArch: noarch BuildArch: noarch
12 11 Requires: httpd, php-process, php-cli, xinetd Requires: httpd, php-process, php-cli, xinetd
 
... ... rm -rf ${RPM_BUILD_ROOT}
34 33 %attr (-,root,root) %attr (-,root,root)
35 34 %dir @USR_SHARE@/* %dir @USR_SHARE@/*
36 35 %doc README LICENSE Changelog TODO %doc README LICENSE Changelog TODO
36
37 %changelog
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/rocketgit

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/rocketgit

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master