Ports

Dec 18, 2016
1 min read
May 30, 2023 14:12 EEST

Downgrade a port

Define in the /etc/make.conf

# the default cvs server for portdowngrade
DEFAULT_CVS_SERVER=":pserver:anoncvs@anoncvs2.de.FreeBSD.org:/home/ncvs"

and install

sysutils/portdowngrade

Finding the fastest CVSUP Server

Install fastest_cvsup with:

cd /usr/ports/sysutils/fastest_cvsup
make install
make clean

To find the fastest server enter:

/usr/local/bin/fastest_cvsup -Q -c de

Create an own Port

See [http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/]]

Upgrade plist

mkdir /var/tmp/`make -V PORTNAME`
mtree -U -f `make -V MTREE_FILE` -d -e -p /var/tmp/`make -V PORTNAME`
make depends PREFIX=/var/tmp/`make -V PORTNAME`
make install PREFIX=/var/tmp/`make -V PORTNAME`
/usr/ports/Tools/scripts/plist -Md -m `make -V MTREE_FILE` /var/tmp/`make -V PORTNAME` > pkg-plist

Second approach:

pkg install genplist
genplist create /var/tmp/`make -V PORTNAME`
genplist diff
genplist commit
genplist test
genplist clean

Related Posts