Date: Sat, 16 Jun 2001 18:29:17 -0700 (PDT) From: Dima Dorfman <dima@unixfreak.org> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/28213: New port of readlink, a command-line interface to readlink(2) Message-ID: <200106170129.f5H1THr68450@hornet.unixfreak.org>
next in thread | raw e-mail | index | archive | help
>Number: 28213 >Category: ports >Synopsis: New port of readlink, a command-line interface to readlink(2) >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 Jun 16 18:30:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Dima Dorfman >Release: FreeBSD 4.3-20010602-STABLE i386 >Organization: FreeBSD >Environment: System: FreeBSD hornet.unixfreak.org 4.3-20010602-STABLE FreeBSD 4.3-20010602-STABLE #6: Wed Jun 6 18:55:33 PDT 2001 dima@hornet.unixfreak.org:/a/home/dima/w/f/4/sys/compile/HORNET i386 >Description: The readlink utility when invoked with the pathname of a symbolic link as its argument dereferences the symbolic link and prints the name of target on standard output. If readlink is invoked with an argument other than the pathname of a symbolic link, it exits with a nonzero exit code with- out printing anything. In other words, this is a command-line interface to the readlink(2) system call. >How-To-Repeat: >Fix: --- /home/dima/w/f/myports/readlink.shar begins here --- # 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: # # readlink # readlink/files # readlink/files/tarignore # readlink/distinfo # readlink/pkg-descr # readlink/pkg-plist # readlink/pkg-comment # readlink/Makefile # echo c - readlink mkdir -p readlink > /dev/null 2>&1 echo c - readlink/files mkdir -p readlink/files > /dev/null 2>&1 echo x - readlink/files/tarignore sed 's/^X//' >readlink/files/tarignore << 'END-of-readlink/files/tarignore' XCVS END-of-readlink/files/tarignore echo x - readlink/distinfo sed 's/^X//' >readlink/distinfo << 'END-of-readlink/distinfo' XMD5 (readlink-20010616.tar.gz) = 63962889ba099fe004828ddeb7b8d72c END-of-readlink/distinfo echo x - readlink/pkg-descr sed 's/^X//' >readlink/pkg-descr << 'END-of-readlink/pkg-descr' XThe readlink utility when invoked with the pathname of a symbolic link as Xits argument dereferences the symbolic link and prints the name of target Xon standard output. If readlink is invoked with an argument other than Xthe pathname of a symbolic link, it exits with a nonzero exit code with- Xout printing anything. X XIn other words, this is a command-line interface to the readlink(2) Xsystem call. END-of-readlink/pkg-descr echo x - readlink/pkg-plist sed 's/^X//' >readlink/pkg-plist << 'END-of-readlink/pkg-plist' Xbin/readlink END-of-readlink/pkg-plist echo x - readlink/pkg-comment sed 's/^X//' >readlink/pkg-comment << 'END-of-readlink/pkg-comment' XDereference a symbol link and print the name of the target END-of-readlink/pkg-comment echo x - readlink/Makefile sed 's/^X//' >readlink/Makefile << 'END-of-readlink/Makefile' X# New ports collection makefile for: shuffle X# Date created: 16 June 2001 X# Whom: dd X# X# $FreeBSD$ X# X XPORTNAME= readlink XPORTVERSION= 20010616 XCATEGORIES= sysutils XMASTER_SITES= ${MASTER_SITE_LOCAL} \ X http://www.unixfreak.org/~dima/distfiles/ XMASTER_SITE_SUBDIR= dd X XMAINTAINER= dd@FreeBSD.org X XMAN1= readlink.1 XMANCOMPRESSED= maybe X X# This isn't very scalable, but I'm lazy.. X.if defined(NOMANCOMPRESS) XMANNAME= readlink.1 X.else XMANNAME= readlink.1.gz X.endif X Xdo-install: X @${INSTALL_PROGRAM} ${WRKSRC}/readlink ${PREFIX}/bin/readlink X @${INSTALL_MAN} ${WRKSRC}/${MANNAME} ${PREFIX}/man/man1 X X# X# Ports build/install stuff stops here. Tarball creation stuff begins here. X# X.include <bsd.port.pre.mk> XCVS_CMD?= cvs -z3 XCVS_DATE= Sun Jun 16 15:58:14 PDT 2001 XCVS_SITES?= anoncvs@anoncvs.openbsd.org:/cvs XCVS_MODULE= src/usr.bin/readlink X X# X# CVS checkout stuff mostly stolen from security/openssh-askpass port by X# kris@freebsd.org X# Xtarball: X @${MKDIR} ${DISTDIR}/${PKGNAME} && \ X cd ${DISTDIR}/${PKGNAME}; \ X for CVS_SITE in ${CVS_SITES}; do \ X ${ECHO_MSG} ">> Attempting to check out from $${CVS_SITE}."; \ X if ${CVS_CMD} -d $${CVS_SITE} co -D "${CVS_DATE}" \ X ${CVS_MODULE}; then \ X cd ${DISTDIR}; \ X ${ECHO_MSG} ">> Creating dist tarball in ${DISTDIR}"; \ X ${ECHO_MSG} ">> \"${PKGNAME}.tar.gz\"."; \ X ${MV} ${PKGNAME}/${CVS_MODULE} \ X ${PKGNAME}/${CVS_MODULE:H}/${PKGNAME}; \ X ${TAR} -cz \ X -X ${FILESDIR}/tarignore \ X -f ${PKGNAME}.tar.gz \ X -C ${PKGNAME}/${CVS_MODULE:H} \ X ${PKGNAME}; \ X exit; \ X fi \ X done; \ X ${RMDIR} ${DISTDIR}/${PKGNAME}; \ X ${ECHO_MSG} ">> CVS checkout failed."; \ X exit 1; X X.include <bsd.port.post.mk> END-of-readlink/Makefile exit --- /home/dima/w/f/myports/readlink.shar ends here --- >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?200106170129.f5H1THr68450>