Compare commits

..

2 Commits

Author SHA1 Message Date
c0206926e6 This should not be in git 2024-05-28 14:42:03 +02:00
4f5f301a82 Portshaker 2024-05-28 14:41:24 +02:00
38 changed files with 30 additions and 136 deletions

View File

@ -0,0 +1,12 @@
# vim:set syntax=sh:
# $Id$
#---[ Base directory for mirrored Ports Trees ]---
mirror_base_dir="/var/cache/portshaker"
#---[ Directories where to merge ports ]---
ports_trees="main"
main_ports_tree="/usr/local/poudriere/ports/default"
main_merge_from="freebsd kiwi"

View File

@ -0,0 +1,8 @@
#!/bin/sh
. /usr/local/share/portshaker/portshaker.subr
if [ "$1" != '--' ]; then
err 1 "Extra arguments"
fi
shift
method="portsnap"
run_portshaker_command $*

10
portshaker/portshaker.d/kiwi Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
. /usr/local/share/portshaker/portshaker.subr
if [ "$1" != '--' ]; then
err 1 "Extra arguments"
fi
shift
method="git"
git_clone_uri="https://framagit.org/kiwi/freebsd-ports.git"
git_branch=master
run_portshaker_command $*

View File

@ -1,52 +0,0 @@
#!/bin/sh
# /usr/local/etc/poudriere.d/hooks/bulk.sh
EMAIL_FROM=an@example.com
EMAIL_TO=another@example.com
status="$1"
shift
if [ "$status" = "start" ]; then
mail_subject="[${MASTERNAME}] bulk started on `hostname`"
sendmail -f ${EMAIL_FROM} ${EMAIL_TO} << EOF
To: ${EMAIL_TO}
Subject: ${mail_subject}
Build URL: ${BUILD_URL}
EOF
elif [ "$status" = "crashed" ]; then
mail_subject="[${MASTERNAME}] bulk crashed on `hostname`"
sendmail -f ${EMAIL_FROM} ${EMAIL_TO} << EOF
To: ${EMAIL_TO}
Subject: ${mail_subject}
Build URL: ${BUILD_URL}
EOF
elif [ "$status" = "done" ]; then
n_built=$1
n_failed=$2
n_ignored=$3
n_skipped=$4
n_total=$((${n_built} + ${n_failed} + ${n_ignored} + ${n_skipped}))
mail_subject="[RELEASE - ${MASTERNAME}] bulk done on `hostname`"
sendmail -f ${EMAIL_FROM} ${EMAIL_TO} << EOF
To: ${EMAIL_TO}
Subject: ${mail_subject}
Build URL: ${BUILD_URL}
Built: ${n_built}
Failed: ${n_failed}
Ignored: ${n_ignored}
Skipped: ${n_skipped}
EOF
fi
exit 0

View File

@ -1,51 +0,0 @@
#!/bin/sh
# /usr/local/etc/poudriere.d/hooks/pkgbuild.sh
EMAIL_FROM=an@example.com
EMAIL_TO=some@example.com
# The failure email will snip out the middle of a build log to help
# save BW. A URL is provided to view the full log
# Set to how many header lines from the build to display
HEADER_LINES=200
# Set to how many footer lines from the build to display
FOOTER_LINES=200
status="$1"
port="$2"
pkgname="$3"
if [ "$status" = "failed" ]; then
failed_phase="$4"
log="$5"
maintainer=$(awk '/maintained by:/ {print $3}' ${log})
ident=$(awk '/Makefile ident:/ {print $0}' ${log})
last_committer=$(awk '/Makefile ident:/ {print $8}' ${log})
mail_subject="[${MASTERNAME}] Build failed for ${pkgname} during ${failed_phase}"
log_lines=$(wc -l ${log}|awk '{print $1}')
if [ ${log_lines} -lt $((${FOOTER_LINES} + ${HEADER_LINES})) ]; then
# Log is short enough, just print it all
awk_script='{print $0}'
else
# Trim out the middle of the log
awk_script="NR < ${HEADER_LINES} || NR > $((${log_lines} - ${FOOTER_LINES})); NR == ${HEADER_LINES} { print \"<snip>\" }"
fi
sendmail -f ${EMAIL_FROM} -t << EOF
To: ${EMAIL_TO}
Subject: ${mail_subject}
Maintainer: ${maintainer}
Last committer: ${last_committer}@FreeBSD.org
Ident: ${ident#Makefile ident: }
Log URL: ${LOG_URL}/${pkgname}.log
Build URL: ${BUILD_URL}
Log:
$(awk "${awk_script}" ${log})
EOF
fi
exit 0

View File

@ -1 +0,0 @@
amd64

View File

@ -1 +0,0 @@
zroot/poudriere/jails/120x64

View File

@ -1 +0,0 @@
http

View File

@ -1 +0,0 @@
/usr/local/poudriere/jails/120x64

View File

@ -1 +0,0 @@
1698488466

View File

@ -1 +0,0 @@
12.4-RELEASE-p6

View File

@ -1 +0,0 @@
amd64

View File

@ -1 +0,0 @@
zroot/poudriere/jails/130x64

View File

@ -1 +0,0 @@
http

View File

@ -1 +0,0 @@
/usr/local/poudriere/jails/130x64

View File

@ -1 +0,0 @@
1698488482

View File

@ -1 +0,0 @@
13.2-RELEASE-p4

View File

@ -1 +0,0 @@
amd64

View File

@ -1 +0,0 @@
zroot/poudriere/jails/140x64

View File

@ -1 +0,0 @@
http

View File

@ -1 +0,0 @@
/usr/local/poudriere/jails/140x64

View File

@ -1 +0,0 @@
1699952100

View File

@ -1 +0,0 @@
14.0-RELEASE

View File

@ -1 +0,0 @@
riscv.riscv64

View File

@ -1 +0,0 @@
zroot/poudriere/jails/14riscv64

View File

@ -1 +0,0 @@
http

View File

@ -1 +0,0 @@
/usr/local/poudriere/jails/14riscv64

View File

@ -1 +0,0 @@
1699379673

View File

@ -1 +0,0 @@
14.0-RC4

View File

@ -1 +0,0 @@
amd64

View File

@ -1 +0,0 @@
zroot/poudriere/jails/verisign

View File

@ -1 +0,0 @@
http

View File

@ -1 +0,0 @@
/usr/local/poudriere/jails/verisign

View File

@ -1 +0,0 @@
1698489586

View File

@ -1 +0,0 @@
13.2-RELEASE-p4

View File

@ -1 +0,0 @@
git+https

View File

@ -1 +0,0 @@
/usr/local/poudriere/ports/default