From owner-svn-ports-head@FreeBSD.ORG Fri Jul 19 15:16:32 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id E05DC7EC; Fri, 19 Jul 2013 15:16:32 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id C146DF3F; Fri, 19 Jul 2013 15:16:32 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r6JFGW9p022690; Fri, 19 Jul 2013 15:16:32 GMT (envelope-from danfe@svn.freebsd.org) Received: (from danfe@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r6JFGWLX022687; Fri, 19 Jul 2013 15:16:32 GMT (envelope-from danfe@svn.freebsd.org) Message-Id: <201307191516.r6JFGWLX022687@svn.freebsd.org> From: Alexey Dokuchaev Date: Fri, 19 Jul 2013 15:16:32 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r323304 - in head/sysutils/ucspi-unix: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Jul 2013 15:16:33 -0000 Author: danfe Date: Fri Jul 19 15:16:31 2013 New Revision: 323304 URL: http://svnweb.freebsd.org/changeset/ports/323304 Log: - Trim Makefile header, define LICENSE (GPLv2) - Try to fix parallel builds by coalescing build commands - Silence the patching routine - Convert NOPORTDOCS -> PORT_OPTIONS:MDOCS - Retouch COMMENT and port description: s/UNIX/Unix/ Reported by: pointyhat-west Added: head/sysutils/ucspi-unix/files/ head/sysutils/ucspi-unix/files/patch-Makefile (contents, props changed) Modified: head/sysutils/ucspi-unix/Makefile head/sysutils/ucspi-unix/pkg-descr Modified: head/sysutils/ucspi-unix/Makefile ============================================================================== --- head/sysutils/ucspi-unix/Makefile Fri Jul 19 15:15:47 2013 (r323303) +++ head/sysutils/ucspi-unix/Makefile Fri Jul 19 15:16:31 2013 (r323304) @@ -1,9 +1,5 @@ -# New ports collection makefile for: ucspi-unix -# Date created: 23.Sep.2003 -# Whom: patrick@rinke-bochum.de -# +# Created by: Patrick Rinke # $FreeBSD$ -# PORTNAME= ucspi-unix PORTVERSION= 0.36 @@ -12,7 +8,9 @@ CATEGORIES= sysutils MASTER_SITES= http://untroubled.org/${PORTNAME}/ MAINTAINER= ports@FreeBSD.org -COMMENT= UNIX-domain socket client-server command-line tools +COMMENT= Unix-domain socket client-server command-line tools + +LICENSE= GPLv2 BUILD_DEPENDS= ${BGLIBS_LIB}/libbg.a:${PORTSDIR}/devel/bglibs @@ -25,7 +23,11 @@ PLIST_FILES= bin/unixcat bin/unixclient MAN1= unixclient.1 unixserver.1 PORTDOCS= NEWS PROTOCOL README TODO -post-patch: +OPTIONS_DEFINE= DOCS + +.include + +post-patch: .SILENT ${ECHO_CMD} "${PREFIX}" > ${WRKSRC}/conf-home ${ECHO_CMD} "${PREFIX}/bin" > ${WRKSRC}/conf-bin ${ECHO_CMD} "${MANPREFIX}/man" > ${WRKSRC}/conf-man @@ -36,11 +38,9 @@ post-patch: do-install: cd ${WRKSRC} && ./installer - -.if !defined(NOPORTDOCS) -post-install: +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} - cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} .endif .include Added: head/sysutils/ucspi-unix/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/ucspi-unix/files/patch-Makefile Fri Jul 19 15:16:31 2013 (r323304) @@ -0,0 +1,56 @@ +--- Makefile.orig 2002-06-11 05:12:06.000000000 +0800 ++++ Makefile 2013-07-19 22:55:35.000000000 +0800 +@@ -19,8 +19,7 @@ + echo 'source=$$1; shift'; \ + echo 'base=`echo "$$source" | sed -e s:\\\\.c$$::`'; \ + echo exec `head -1 conf-cc` '-I. -o $${base}.o -c $$source $${1+"$$@"}'; \ +- ) >compile +- chmod 755 compile ++ ) >compile && chmod 755 compile + + conf_bin.c: conf-bin + head -1 conf-bin | \ +@@ -38,37 +37,31 @@ + ./compile env.c + + installer: load insthier.o +- ./load insthier -linstaller +- mv insthier installer ++ ./load insthier -linstaller && mv insthier installer + + instcheck: load insthier.o +- ./load insthier -linstcheck +- mv insthier instcheck ++ ./load insthier -linstcheck && mv insthier instcheck + + insthier.o: compile insthier.c conf_bin.c conf_man.c + ./compile insthier.c + + instshow: load insthier.o +- ./load insthier -linstshow +- mv insthier instshow ++ ./load insthier -linstshow && mv insthier instshow + + load: conf-ld + ( echo '#!/bin/sh';\ + echo 'main="$$1"; shift';\ + echo exec `head -1 conf-ld` '-o "$$main" "$$main.o" $${1+"$$@"}' -lsysdeps;\ +- ) >load +- chmod 755 load ++ ) >load && chmod 755 load + + programs: unixclient unixserver unixcat + + socket.lib: compile load trylib.c + ( ( ./compile trylib.c && ./load trylib -lsocket -lnsl ) >/dev/null 2>&1 \ +- && echo -lsocket -lnsl || exit 0 ) >socket.lib +- rm -f trylib.o trylib ++ && echo -lsocket -lnsl || exit 0 ) >socket.lib && rm -f trylib.o trylib + + unixcat: warn-auto.sh unixcat.sh +- cat warn-auto.sh unixcat.sh >unixcat +- chmod 755 unixcat ++ cat warn-auto.sh unixcat.sh >unixcat && chmod 755 unixcat + + unixclient: load unixclient.o env.o utoa.o socket.lib + ./load unixclient env.o utoa.o `cat socket.lib` Modified: head/sysutils/ucspi-unix/pkg-descr ============================================================================== --- head/sysutils/ucspi-unix/pkg-descr Fri Jul 19 15:15:47 2013 (r323303) +++ head/sysutils/ucspi-unix/pkg-descr Fri Jul 19 15:16:31 2013 (r323304) @@ -1,4 +1,4 @@ -UNIX domain socket client and server programs that conform to UCSPI, -the UNIX Client-Server Program Interface. +Unix domain socket client and server programs that conform to UCSPI, the +Unix Client-Server Program Interface. WWW: http://untroubled.org/ucspi-unix/