diff options
author | Slávek Banko <[email protected]> | 2023-04-22 00:00:02 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2023-04-22 20:51:11 +0200 |
commit | 4975402d7f239a520dfcbd48e03dbab43e491d68 (patch) | |
tree | 1fa8069b82399fccffe1736bbc8af73d1f3a4d93 /freebsd/tde-ports-map | |
parent | 718961e63499208eae72b6d4f56ae94004d41020 (diff) | |
download | tde-packaging-4975402d7f239a520dfcbd48e03dbab43e491d68.tar.gz tde-packaging-4975402d7f239a520dfcbd48e03dbab43e491d68.zip |
FreeBSD: Add ports updated for final release R14.1.0.
Add a script to synchronize ports to the FreeBSD ports structure.
Add meta-port 'tde-meta' to install all TDE ports.
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'freebsd/tde-ports-map')
-rwxr-xr-x | freebsd/tde-ports-map | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/freebsd/tde-ports-map b/freebsd/tde-ports-map new file mode 100755 index 000000000..090aaf0c8 --- /dev/null +++ b/freebsd/tde-ports-map @@ -0,0 +1,26 @@ +#!/bin/sh + +PORTSDIR=${PORTSDIR:-"/usr/ports"} +[ -d $PORTSDIR ] || exit 1 + +echo "Update TDE ports" +echo "+ trinity.port.mk > Mk/bsd.trinity.mk" +rsync -a $(dirname $0)/trinity.port.mk $PORTSDIR/Mk/bsd.trinity.mk + +find $(dirname $0) -name "Makefile" |\ +xargs -r grep -l "^# TDE port map: "|\ +sort |\ +while read TDE_PORT; do + TDE_PORT_MAP=$(sed -n "s|^# TDE port map: ||p" $TDE_PORT) + TDE_PORT_SOURCE=$(echo $TDE_PORT_MAP | sed "s| > .*||") + if echo "$TDE_PORT_MAP" | grep -q " > "; then + TDE_PORT_TARGET=$(echo $TDE_PORT_MAP | sed "s|.* > ||") + else + PORTNAME=$(sed -n "s|^PORTNAME[\t ]*=[\t ]*||p" $TDE_PORT) + CATEGORY=$(sed -n "s|^CATEGORIES[\t ]*=[\t ]*\([^\t ]*\).*|\1|p" $TDE_PORT) + TDE_PORT_TARGET=$CATEGORY/$PORTNAME + fi + + echo "+ $TDE_PORT_SOURCE > $TDE_PORT_TARGET" + rsync -a --del ${TDE_PORT%/Makefile}/ $PORTSDIR/$TDE_PORT_TARGET/ +done |