Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Jan 2001 02:53:57 +0000 (GMT)
From:      George Reid <greid@dogma.freebsd-uk.eu.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/24519: New port: asmutils: A set of UNIX utilities written in assembly language
Message-ID:  <Pine.BSF.4.21.0101220253010.9313-100000@sobek.openirc.co.uk>

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

>Number:         24519
>Category:       ports
>Synopsis:       New port: asmutils: A set of UNIX utilities written in assembly language
>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:   Sun Jan 21 18:50:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     George Reid
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
FreeBSD UKUG
>Environment:
n/a
>Description:
asmutils is a set of miscellaneous utilities written in assembly language,
targeted on embedded systems and small distributions (like rescue or
installation disks); also it contains small libc and crypto library.
It features the smallest possible size and memory requirements,
the fastest speed and good functionality.

- George Reid
greid@ukug.uk.freebsd.org
>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:
#
#	asmutils
#	asmutils/Makefile
#	asmutils/distinfo
#	asmutils/files
#	asmutils/files/patch-aa
#	asmutils/files/patch-ab
#	asmutils/files/patch-ac
#	asmutils/files/patch-ad
#	asmutils/pkg-plist
#	asmutils/pkg-descr
#	asmutils/pkg-comment
#
echo c - asmutils
mkdir -p asmutils > /dev/null 2>&1
echo x - asmutils/Makefile
sed 's/^X//' >asmutils/Makefile << 'END-of-asmutils/Makefile'
X# New ports collection makefile for:   asmutils
X# Date created:        22 January 2001
X# Whom:                George Reid <greid@ukug.uk.freebsd.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=       	asmutils
XPORTVERSION=		0.12
XCATEGORIES=     	devel
XMASTER_SITES=   	ftp://ftp.linuxassembly.org/pub/asm/
X
XMAINTAINER=		greid@ukug.uk.freebsd.org
X
XBUILD_DEPENDS=		nasm:${PORTSDIR}/devel/nasm
X
XONLY_FOR_ARCHS=		i386
X
XUSE_GMAKE=		yes
X
XINSTALLS_SHLIB=		yes
XLDCONFIG_DIRS=		${PREFIX}/lib/asmutils
X
X# This will play merry hell with portlint
XBINARIES=		basename cat chmod chroot chown cp cpuinfo dirname \
X			echo env extname factor grep head hostname httpd id \
X			kill ln lzss mkdir more mv nc pwd renice rm sh sleep \
X			strings sync tee true uname wc yes md5sum rmdsum \
X			rc6crypt execve report asmutils
X
XDOCFILES=		Asmutils-HOWTO acknowledgements endorsements history \
X			index s-contrib s-debug s-include s-layout s-optimize
X
Xpost-patch:
X	@(${SED} -e 's,%%KERNEL%%,${OSREL:S/.//g},g' ${WRKSRC}/MCONFIG > foo \
X		&& ${MV} foo ${WRKSRC}/MCONFIG)
X
Xdo-install:
X	${MKDIR} ${PREFIX}/bin/asmutils
X	${MKDIR} ${PREFIX}/lib/asmutils
X.for B in ${BINARIES}
X	${INSTALL_PROGRAM} ${WRKSRC}/src/$B ${PREFIX}/bin/asmutils
X.endfor
X.for L in c crypto m
X	${INSTALL_PROGRAM} ${WRKSRC}/lib/lib$L.so ${PREFIX}/lib/asmutils
X	${INSTALL_DATA} ${WRKSRC}/lib/lib$L.a ${PREFIX}/lib/asmutils
X.endfor
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${PREFIX}/share/doc/asmutils
X.for D in ${DOCFILES}
X	${INSTALL_DATA} ${WRKSRC}/doc/$D.html ${PREFIX}/share/doc/asmutils
X.endfor
X.endif
X
X.include <bsd.port.mk>
END-of-asmutils/Makefile
echo x - asmutils/distinfo
sed 's/^X//' >asmutils/distinfo << 'END-of-asmutils/distinfo'
XMD5 (asmutils-0.12.tar.gz) = 6f2db72b2bb0735f1f6442b62f57bec2
END-of-asmutils/distinfo
echo c - asmutils/files
mkdir -p asmutils/files > /dev/null 2>&1
echo x - asmutils/files/patch-aa
sed 's/^X//' >asmutils/files/patch-aa << 'END-of-asmutils/files/patch-aa'
X--- MCONFIG.orig	Mon Jan 22 02:05:00 2001
X+++ MCONFIG	Mon Jan 22 02:12:30 2001
X@@ -12,11 +12,11 @@
X 
X # Target Operating System (LINUX/FREEBSD/NETBSD/OPENBSD/BEOS/ATHEOS/LIBC)
X 
X-OS = LINUX
X+OS = FREEBSD
X 
X # Kernel version (1.4 = 14, 2.0 = 20, 3.2 = 32, etc)
X 
X-KERNEL = 22
X+KERNEL = %%KERNEL%%
X 
X # Optimization method (SIZE/SPEED)
X 
END-of-asmutils/files/patch-aa
echo x - asmutils/files/patch-ab
sed 's/^X//' >asmutils/files/patch-ab << 'END-of-asmutils/files/patch-ab'
X--- lib/libm.c.orig	Mon Jan 22 02:19:05 2001
X+++ lib/libm.c		Mon Jan 22 02:19:44 2001
X@@ -13,7 +13,7 @@
X     and build universal models.
X */
X  
X-#include <stdint.h>
X+#include <sys/types.h>
X  
X static const double one = 1.0;
X 	/* It is not important that this constant is precise.  It is only
END-of-asmutils/files/patch-ab
echo x - asmutils/files/patch-ac
sed 's/^X//' >asmutils/files/patch-ac << 'END-of-asmutils/files/patch-ac'
X--- src/head.asm.orig	Mon Jan 22 02:23:03 2001
X+++ src/head.asm	Mon Jan 22 02:27:18 2001
X@@ -46,7 +46,7 @@
X .nextfile:			
X 	pop	ebx			; get next arg
X 	or	ebx,ebx		
X-	jz	.exit			; exit if none
X+	jmp	.exit			; exit if none
X 	
X 	cmp word [ebx], "-n"
X 	je	.set_num_of_lines
END-of-asmutils/files/patch-ac
echo x - asmutils/files/patch-ad
sed 's/^X//' >asmutils/files/patch-ad << 'END-of-asmutils/files/patch-ad'
X--- src/rc6crypt.asm.orig	Mon Jan 22 02:26:10 2001
X+++ src/rc6crypt.asm	Mon Jan 22 02:27:02 2001
X@@ -84,7 +84,7 @@
X .read_loop:
X 	sys_read ebp
X 	test	eax,eax
X-	js	error
X+	jmp	error
X 	jz	.next_f2
X 	
X 	pusha
END-of-asmutils/files/patch-ad
echo x - asmutils/pkg-plist
sed 's/^X//' >asmutils/pkg-plist << 'END-of-asmutils/pkg-plist'
Xbin/asmutils/asmutils
Xbin/asmutils/basename
Xbin/asmutils/cat
Xbin/asmutils/chmod
Xbin/asmutils/chown
Xbin/asmutils/chroot
Xbin/asmutils/cp
Xbin/asmutils/cpuinfo
Xbin/asmutils/dirname
Xbin/asmutils/echo
Xbin/asmutils/env
Xbin/asmutils/execve
Xbin/asmutils/extname
Xbin/asmutils/factor
Xbin/asmutils/grep
Xbin/asmutils/head
Xbin/asmutils/hostname
Xbin/asmutils/httpd
Xbin/asmutils/id
Xbin/asmutils/kill
Xbin/asmutils/ln
Xbin/asmutils/lzss
Xbin/asmutils/md5sum
Xbin/asmutils/mkdir
Xbin/asmutils/more
Xbin/asmutils/mv
Xbin/asmutils/nc
Xbin/asmutils/pwd
Xbin/asmutils/rc6crypt
Xbin/asmutils/renice
Xbin/asmutils/report
Xbin/asmutils/rm
Xbin/asmutils/rmdsum
Xbin/asmutils/sh
Xbin/asmutils/sleep
Xbin/asmutils/strings
Xbin/asmutils/sync
Xbin/asmutils/tee
Xbin/asmutils/true
Xbin/asmutils/uname
Xbin/asmutils/wc
Xbin/asmutils/yes
Xlib/asmutils/libc.a
Xlib/asmutils/libc.so
Xlib/asmutils/libcrypto.a
Xlib/asmutils/libcrypto.so
Xlib/asmutils/libm.a
Xlib/asmutils/libm.so
Xshare/doc/asmutils/Asmutils-HOWTO.html
Xshare/doc/asmutils/acknowledgements.html
Xshare/doc/asmutils/endorsements.html
Xshare/doc/asmutils/history.html
Xshare/doc/asmutils/index.html
Xshare/doc/asmutils/s-contrib.html
Xshare/doc/asmutils/s-debug.html
Xshare/doc/asmutils/s-include.html
Xshare/doc/asmutils/s-layout.html
Xshare/doc/asmutils/s-optimize.html
X@dirrm bin/asmutils
X@dirrm lib/asmutils
X@dirrm share/doc/asmutils
END-of-asmutils/pkg-plist
echo x - asmutils/pkg-descr
sed 's/^X//' >asmutils/pkg-descr << 'END-of-asmutils/pkg-descr'
Xasmutils is a set of miscellaneous utilities written in assembly language,
Xtargeted on embedded systems and small distributions (like rescue or
Xinstallation disks); also it contains small libc and crypto library.
XIt features the smallest possible size and memory requirements,
Xthe fastest speed and good functionality.
X
X- George Reid
Xgreid@ukug.uk.freebsd.org
END-of-asmutils/pkg-descr
echo x - asmutils/pkg-comment
sed 's/^X//' >asmutils/pkg-comment << 'END-of-asmutils/pkg-comment'
XA set of UNIX utilities written in assembly language
END-of-asmutils/pkg-comment
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?Pine.BSF.4.21.0101220253010.9313-100000>