mirror of
https://github.com/outbackdingo/ports.git
synced 2026-01-28 10:20:07 +00:00
17 lines
593 B
Plaintext
17 lines
593 B
Plaintext
post_upgrade() {
|
|
grep -q "/usr/ports/xorg" /etc/scratchpkg.repo && \
|
|
sed -i '\,/usr/ports/xorg,d' /etc/scratchpkg.repo
|
|
grep -q "/usr/ports/extra" /etc/scratchpkg.repo && \
|
|
sed -i '\,/usr/ports/extra,d' /etc/scratchpkg.repo
|
|
grep -q "/usr/ports/nonfree" /etc/scratchpkg.repo || \
|
|
echo "#/usr/ports/nonfree https://raw.githubusercontent.com/venomlinux/ports/master/nonfree" >> /etc/scratchpkg.repo
|
|
|
|
sed -i "/libuargp/d" /etc/scratchpkg.alias
|
|
sed -i "/musl-fts/d" /etc/scratchpkg.alias
|
|
sed -i "/musl-obstack/d" /etc/scratchpkg.alias
|
|
}
|
|
|
|
case $1 in
|
|
post-upgrade) post_upgrade;;
|
|
esac
|