Bug 25143 - new port: aggregate-1.1 (with port included, this time)
Summary: new port: aggregate-1.1 (with port included, this time)
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-02-16 18:00 UTC by Joe Abley
Modified: 2001-03-04 15:49 UTC (History)
0 users

See Also:


Attachments
file.shar (2.13 KB, text/plain)
2001-02-16 18:00 UTC, Joe Abley
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Abley 2001-02-16 18:00:00 UTC
Optimise a list of route prefixes to help make nice short filters

How-To-Repeat: 
N/A
Comment 1 Joe Abley 2001-02-16 18:37:57 UTC
The previous port for aggregate-1.1 contained assumed things about
$PREFIX in the Makefile. I have added a small patch to fix this.
Complete revised port follows.

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	aggregate
#	aggregate/Makefile
#	aggregate/pkg-comment
#	aggregate/pkg-descr
#	aggregate/pkg-plist
#	aggregate/distinfo
#	aggregate/files
#	aggregate/files/patch-aa
#
echo c - aggregate
mkdir -p aggregate > /dev/null 2>&1
echo x - aggregate/Makefile
sed 's/^X//' >aggregate/Makefile << 'END-of-aggregate/Makefile'
X# New ports collection makefile for:   aggregate
X# Date created:        16 Feb 2001
X# Whom:                jabley
X#
X# $FreeBSD$
X#
X
XPORTNAME=	aggregate
XPORTVERSION=	1.1
XCATEGORIES=	net
XMASTER_SITES=	http://www.mfnx.net/public/
X
XMAINTAINER=	jabley@automagic.org
X
XMAN1=          aggregate.1 aggregate-ios.1
X
X.include <bsd.port.mk>
END-of-aggregate/Makefile
echo x - aggregate/pkg-comment
sed 's/^X//' >aggregate/pkg-comment << 'END-of-aggregate/pkg-comment'
XOptimise a list of route prefixes to help make nice short filters
END-of-aggregate/pkg-comment
echo x - aggregate/pkg-descr
sed 's/^X//' >aggregate/pkg-descr << 'END-of-aggregate/pkg-descr'
Xakes a list of prefixes in conventional format on stdin,
Xand performs two optimisations to attempt to reduce the
Xlength of the prefix list.
X
XThe first optimisation is to remove any supplied prefixes
Xwhich are supurfluous because they are already included in
Xanother supplied prefix. For example, 203.97.2.0/24 would
Xbe removed if 203.97.0.0/17 was also supplied.
X
XThe second optimisation identifies adjacent prefixes that
Xcan be combined under a single, shorter-length prefix. For
Xexample, 203.97.2.0/24 and 203.97.3.0/24 can be combined
Xinto the single prefix 203.97.2.0/23.
X
X
Xjabley@automagic.org
END-of-aggregate/pkg-descr
echo x - aggregate/pkg-plist
sed 's/^X//' >aggregate/pkg-plist << 'END-of-aggregate/pkg-plist'
Xbin/aggregate
Xbin/aggregate-ios
END-of-aggregate/pkg-plist
echo x - aggregate/distinfo
sed 's/^X//' >aggregate/distinfo << 'END-of-aggregate/distinfo'
XMD5 (aggregate-1.1.tar.gz) = 6371136a8bef3f56da08c2a58c35f5ce
END-of-aggregate/distinfo
echo c - aggregate/files
mkdir -p aggregate/files > /dev/null 2>&1
echo x - aggregate/files/patch-aa
sed 's/^X//' >aggregate/files/patch-aa << 'END-of-aggregate/files/patch-aa'
X--- aggregate-1.1/Makefile	Fri Feb 16 11:31:55 2001
X+++ Makefile	Fri Feb 16 13:27:38 2001
X@@ -27,9 +27,9 @@
X 	rm aggregate
X 
X install: aggregate aggregate.1
X-	install -c -g wheel -m 0755 -o root aggregate /usr/local/bin/
X-	install -c -g wheel -m 0644 -o root aggregate.1 /usr/local/man/man1/
X-	install -c -g wheel -m 0755 -o root aggregate-ios /usr/local/bin/
X-	install -c -g wheel -m 0644 -o root aggregate-ios.1 /usr/local/man/man1/
X+	install -c -g wheel -m 0755 -o root aggregate ${PREFIX}/bin/
X+	install -c -g wheel -m 0644 -o root aggregate.1 ${PREFIX}/man/man1/
X+	install -c -g wheel -m 0755 -o root aggregate-ios ${PREFIX}/bin/
X+	install -c -g wheel -m 0644 -o root aggregate-ios.1 ${PREFIX}/man/man1/
X 
X aggregate: aggregate.c
END-of-aggregate/files/patch-aa
exit
Comment 2 Peter Pentchev freebsd_committer freebsd_triage 2001-03-04 15:49:00 UTC
State Changed
From-To: open->closed

Committed, thanks!