Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Oct 1999 18:20:46 -0400 (EDT)
From:      howardjp@wam.umd.edu
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/14613: New port:  freelibiberty
Message-ID:  <199910302220.SAA04474@byzantine.student.umd.edu>

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

>Number:         14613
>Category:       ports
>Synopsis:       New port:  freelibiberty
>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:   Sat Oct 30 15:20:00 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     James Howard
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
University of Maryland
>Environment:

FreeBSD byzantine.student.umd.edu 4.0-CURRENT FreeBSD 4.0-CURRENT #55: Wed Oct 27 19:59:09 EDT 1999     howardjp@byzantine.student.umd.edu:/usr/src/sys/compile/BYZANTINE  i386

>Description:

I needed getopt_long() from GNU libiberty.  However, being GNU, it has
the usual load of afflictions including a worse than NDA license.

So I stole the getopt_long() from NetBSD, the PD parts of libiberty from
egcs, and rewrote some of the other parts of libiberty.

It is not done yet, but it does a lot of what libiberty does.  Below is a 
shar archive which contains a port/package of it for FreeBSD.

>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:
#
#	freelibiberty
#	freelibiberty/files
#	freelibiberty/files/md5
#	freelibiberty/pkg
#	freelibiberty/pkg/COMMENT
#	freelibiberty/pkg/DESCR
#	freelibiberty/pkg/PLIST
#	freelibiberty/Makefile
#
echo c - freelibiberty
mkdir -p freelibiberty > /dev/null 2>&1
echo c - freelibiberty/files
mkdir -p freelibiberty/files > /dev/null 2>&1
echo x - freelibiberty/files/md5
sed 's/^X//' >freelibiberty/files/md5 << 'END-of-freelibiberty/files/md5'
XMD5 (libiberty-0.1.tar.gz) = 757eb8df7c271ecf764ca45165645fef
END-of-freelibiberty/files/md5
echo c - freelibiberty/pkg
mkdir -p freelibiberty/pkg > /dev/null 2>&1
echo x - freelibiberty/pkg/COMMENT
sed 's/^X//' >freelibiberty/pkg/COMMENT << 'END-of-freelibiberty/pkg/COMMENT'
XA freely-redistributable libiberty clone.
END-of-freelibiberty/pkg/COMMENT
echo x - freelibiberty/pkg/DESCR
sed 's/^X//' >freelibiberty/pkg/DESCR << 'END-of-freelibiberty/pkg/DESCR'
XThis is my freely-redistributable libiberty clone.  I wrote this because I
Xneeded getopt_long().  Anything else is in here because I got bored and
Xadded it.  None of it is guarenteed to work.
X
XJames Howard <howardjp@wam.umd.edu>
END-of-freelibiberty/pkg/DESCR
echo x - freelibiberty/pkg/PLIST
sed 's/^X//' >freelibiberty/pkg/PLIST << 'END-of-freelibiberty/pkg/PLIST'
Xlib/libiberty.a
Xlib/libiberty_p.a
Xlib/libiberty.so.1
Xlib/libiberty.so
Xinclude/libiberty.h
Xinclude/getopt.h
END-of-freelibiberty/pkg/PLIST
echo x - freelibiberty/Makefile
sed 's/^X//' >freelibiberty/Makefile << 'END-of-freelibiberty/Makefile'
X# New ports collection makefile for: free-libiberty
X# Version required:	0.1
X# Date created: 	30 October 1999
X#
X#	$Id$
X
XDISTNAME=	libiberty-0.1
XPKGNAME=	freelibiberty-0.1
XCATEGORIES=	devel
XMASTER_SITES=	ftp://ftp.wam.umd.edu/pub/howardjp/software/libiberty/ \
X                http://www.wam.umd.edu/~howardjp/software/libiberty \
X                ftp://dragon.ham.muohio.edu/pub/howardjp/software/libiberty
X
XMAINTAINER=	howardjp@wam.umd.edu
X
XNOMAN=		none yet
X
Xdo-install:
X	${INSTALL_DATA} ${WRKSRC}/libiberty.a ${PREFIX}/lib
X	${INSTALL_DATA} ${WRKSRC}/libiberty_p.a ${PREFIX}/lib
X	${INSTALL_DATA} ${WRKSRC}/libiberty.so.1 ${PREFIX}/lib
X	${LN} ${PREFIX}/lib/libiberty.so.1 ${PREFIX}/lib/libiberty.so
X	${INSTALL_DATA} ${WRKSRC}/libiberty.h ${PREFIX}/include
X	${INSTALL_DATA} ${WRKSRC}/getopt.h ${PREFIX}/include
X
X.include <bsd.port.mk>
END-of-freelibiberty/Makefile
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?199910302220.SAA04474>