Skip site navigation (1)Skip section navigation (2)
Date:      15 Sep 2000 14:05:37 -0000
From:      "Peter Pentchev" <roam@orbitel.bg>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/21290: New port: bogosort-0.3.1
Message-ID:  <20000915140537.51829.qmail@ringwraith.office1>

next in thread | raw e-mail | index | archive | help

>Number:         21290
>Category:       ports
>Synopsis:       New port: bogosort-0.3.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 15 07:20:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     "Peter Pentchev" <roam@orbitel.bg>
>Release:        FreeBSD 4.1-STABLE i386
>Organization:
Orbitel JSCo.
>Environment:

current ports tree

>Description:

bogosort is a program which sorts files or its standard output using
the bogo-sort algorithm as described in the Jargon File.

>How-To-Repeat:

N/A

>Fix:

# 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:
#
#	bogosort
#	bogosort/files
#	bogosort/files/md5
#	bogosort/Makefile
#	bogosort/patches
#	bogosort/patches/patch-aa
#	bogosort/pkg
#	bogosort/pkg/COMMENT
#	bogosort/pkg/DESCR
#	bogosort/pkg/PLIST
#
echo c - bogosort
mkdir -p bogosort > /dev/null 2>&1
echo c - bogosort/files
mkdir -p bogosort/files > /dev/null 2>&1
echo x - bogosort/files/md5
sed 's/^X//' >bogosort/files/md5 << 'END-of-bogosort/files/md5'
XMD5 (bogosort.tar.gz) = 80a8f3f29949802f6a7e75fa8d3237ef
END-of-bogosort/files/md5
echo x - bogosort/Makefile
sed 's/^X//' >bogosort/Makefile << 'END-of-bogosort/Makefile'
X# New ports collection makefile for:	bogosort
X# Date created:		15 September 2000
X# Whom:			roam@orbitel.bg
X#
X# $FreeBSD$
X#
X
XPORTNAME=	bogosort
XPORTVERSION=	0.3.1
XCATEGORIES=	misc
XMASTER_SITES=	http://www.lysator.liu.se/~qha/bogosort/ \
X		ftp://l82.ryd.student.liu.se/pub/unix/bogosort/
XDISTNAME=	${PORTNAME}
X
XMAINTAINER=	roam@orbitel.bg
X
XWRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
X
XGNU_CONFIGURE=	yes
XUSE_AUTOMAKE=	yes
XUSE_GMAKE=	yes
X
XMAN1=		bogosort.1
X
X.include <bsd.port.mk>
END-of-bogosort/Makefile
echo c - bogosort/patches
mkdir -p bogosort/patches > /dev/null 2>&1
echo x - bogosort/patches/patch-aa
sed 's/^X//' >bogosort/patches/patch-aa << 'END-of-bogosort/patches/patch-aa'
X--- bogosort.texinfo	2000/09/15 13:16:16	1.1
X+++ bogosort.texinfo	2000/09/15 13:35:49	1.2
X@@ -2,6 +2,10 @@
X @c %**start of header
X @setfilename bogosort.info
X @settitle sorts or doesn't sort files or its standard input
X+@dircategory Miscellaneous
X+@direntry
X+* Bogosort: (bogosort).  Sort (or not) files (or standard input)
X+@end direntry
X @finalout
X @setchapternewpage odd
X @c %**end of header
END-of-bogosort/patches/patch-aa
echo c - bogosort/pkg
mkdir -p bogosort/pkg > /dev/null 2>&1
echo x - bogosort/pkg/COMMENT
sed 's/^X//' >bogosort/pkg/COMMENT << 'END-of-bogosort/pkg/COMMENT'
XSort (or not) stdin using the bogo-sort algorithm
END-of-bogosort/pkg/COMMENT
echo x - bogosort/pkg/DESCR
sed 's/^X//' >bogosort/pkg/DESCR << 'END-of-bogosort/pkg/DESCR'
XSort files or its standard input using the bogo-sort algorithm
Xdescribed in the Jargon File <http://www.tuxedo.org/~esr/jargon>.
X
XA quote from the Jargon File 'bogo-sort' entry:
X
X     ...The archetypical perversely awful algorithm (as opposed to
X     _bubble sort_, which is merely the generic bad algorithm).
X     _Bogo-sort_ is equivalent to repeatedly throwing a deck of cards
X     in the air, picking them up at random, and then testing whether
X     they are in order. It serves as a sort of canonical example of
X     awfulness. Looking at a program and seeing a dumb algorithm, one
X     might say "Oh, I see, this program uses _bogo-sort_." Esp.
X     appropriate for algorithms with factorial or super-exponential
X     running time in the average case and probabilistically infinite
X     worst-case running time. Compare _bogus_, _brute force_,
X     _lasherism_...
X
XAuthor: Ulrik Haugen <qha@lysator.liu.se>
XWWW:	http://www.lysator.liu.se/~qha/bogosort/
END-of-bogosort/pkg/DESCR
echo x - bogosort/pkg/PLIST
sed 's/^X//' >bogosort/pkg/PLIST << 'END-of-bogosort/pkg/PLIST'
Xbin/bogosort
X@unexec install-info --delete %D/info/bogosort.info %D/info/dir
Xinfo/bogosort.info
X@exec install-info %D/info/bogosort.info %D/info/dir
END-of-bogosort/pkg/PLIST
exit


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000915140537.51829.qmail>