From owner-svn-ports-all@FreeBSD.ORG Fri Sep 26 18:44:23 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2C568259; Fri, 26 Sep 2014 18:44:23 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0C4A935B; Fri, 26 Sep 2014 18:44:23 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s8QIiMeT018029; Fri, 26 Sep 2014 18:44:22 GMT (envelope-from ak@FreeBSD.org) Received: (from ak@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s8QIiMOt018027; Fri, 26 Sep 2014 18:44:22 GMT (envelope-from ak@FreeBSD.org) Message-Id: <201409261844.s8QIiMOt018027@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: ak set sender to ak@FreeBSD.org using -f From: Alex Kozlov Date: Fri, 26 Sep 2014 18:44:22 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r369334 - head/x11/xdm X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Sep 2014 18:44:23 -0000 Author: ak Date: Fri Sep 26 18:44:22 2014 New Revision: 369334 URL: http://svnweb.freebsd.org/changeset/ports/369334 QAT: https://qat.redports.org/buildarchive/r369334/ Log: - Use options helpers - Convert to @sample - Strip binaries - Use new @dir syntax Reviewed by: bapt, kwm Approved by: x11 (bapt, kwm) Differential Revision: https://reviews.freebsd.org/D724 Modified: head/x11/xdm/Makefile head/x11/xdm/pkg-plist Modified: head/x11/xdm/Makefile ============================================================================== --- head/x11/xdm/Makefile Fri Sep 26 18:39:45 2014 (r369333) +++ head/x11/xdm/Makefile Fri Sep 26 18:44:22 2014 (r369334) @@ -2,7 +2,7 @@ PORTNAME= xdm PORTVERSION= 1.1.11 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= x11 MAINTAINER= x11@FreeBSD.org @@ -12,25 +12,21 @@ LICENSE= MIT XORG_CAT= app USE_XORG= xmu x11 xau xinerama xpm xdmcp xt xext xaw -CONFIGURE_ARGS+= --with-xdmconfigdir=${EXAMPLESDIR} \ - --with-xdmscriptdir=${EXAMPLESDIR} +CONFIGURE_ARGS+= --with-xdmconfigdir=${PREFIX}/lib/X11/xdm \ + --with-xdmscriptdir=${PREFIX}/lib/X11/xdm USES= libtool CFFILES= GiveConsole TakeConsole Xaccess Xreset Xresources \ Xservers Xsession Xsetup_0 Xstartup Xwilling xdm-config +OPTIONS_SUB= yes + OPTIONS_DEFINE= XDMSHELL XDMSHELL_DESC= Install xdmshell -.include +XDMSHELL_CONFIGURE_ENABLE= xdmshell -.if ${PORT_OPTIONS:MXDMSHELL} -CONFIGURE_ARGS+=--enable-xdmshell -PLIST_SUB+= XDMSHELL="" -.else -CONFIGURE_ARGS+=--disable-xdmshell -PLIST_SUB+= XDMSHELL="@comment " -.endif +INSTALL_TARGET= install-strip post-patch: @${REINPLACE_CMD} 's/test.*-traditional.*;/true;/' \ @@ -42,15 +38,11 @@ post-patch: ${WRKSRC}/config/Xreset.cpp @${REINPLACE_CMD} -e "s|@DESTDIR@||" ${WRKSRC}/Makefile.in -post-configure: - @${REINPLACE_CMD} -e "s|${EXAMPLESDIR}|${PREFIX}/lib/X11/xdm|" \ - ${WRKSRC}/config.h - post-install: .for f in ${CFFILES} - ${CP} -n ${EXAMPLESDIR}/$f ${STAGEDIR}${PREFIX}/lib/X11/xdm/$f || ${TRUE} + @${MV} ${STAGEDIR}${PREFIX}/lib/X11/xdm/${f} ${STAGEDIR}${PREFIX}/lib/X11/xdm/${f}.sample .endfor - ${MKDIR} /var/lib/xdm/authdir - ${LN} -sf /var/lib/xdm/authdir ${STAGEDIR}${PREFIX}/lib/X11/xdm/authdir + @${MKDIR} ${STAGEDIR}/var/lib/xdm/authdir + @${LN} -sf /var/lib/xdm/authdir ${STAGEDIR}${PREFIX}/lib/X11/xdm/authdir .include Modified: head/x11/xdm/pkg-plist ============================================================================== --- head/x11/xdm/pkg-plist Fri Sep 26 18:39:45 2014 (r369333) +++ head/x11/xdm/pkg-plist Fri Sep 26 18:44:22 2014 (r369334) @@ -8,47 +8,18 @@ lib/X11/xdm/pixmaps/xorg.xpm man/man1/xdm.1.gz %%XDMSHELL%%man/man1/xdmshell.1.gz share/X11/app-defaults/Chooser -@unexec if cmp -s %D/%%EXAMPLESDIR%%/GiveConsole %D/lib/X11/xdm/GiveConsole; then rm -f %D/lib/X11/xdm/GiveConsole; fi -@unexec if cmp -s %D/%%EXAMPLESDIR%%/TakeConsole %D/lib/X11/xdm/TakeConsole; then rm -f %D/lib/X11/xdm/TakeConsole; fi -@unexec if cmp -s %D/%%EXAMPLESDIR%%/Xaccess %D/lib/X11/xdm/Xaccess; then rm -f %D/lib/X11/xdm/Xaccess; fi -@unexec if cmp -s %D/%%EXAMPLESDIR%%/Xreset %D/lib/X11/xdm/Xreset; then rm -f %D/lib/X11/xdm/Xreset; fi -@unexec if cmp -s %D/%%EXAMPLESDIR%%/Xresources %D/lib/X11/xdm/Xresources; then rm -f %D/lib/X11/xdm/Xresources; fi -@unexec if cmp -s %D/%%EXAMPLESDIR%%/Xservers %D/lib/X11/xdm/Xservers; then rm -f %D/lib/X11/xdm/Xservers; fi -@unexec if cmp -s %D/%%EXAMPLESDIR%%/Xsession %D/lib/X11/xdm/Xsession; then rm -f %D/lib/X11/xdm/Xsession; fi -@unexec if cmp -s %D/%%EXAMPLESDIR%%/Xsetup_0 %D/lib/X11/xdm/Xsetup_0; then rm -f %D/lib/X11/xdm/Xsetup_0; fi -@unexec if cmp -s %D/%%EXAMPLESDIR%%/Xstartup %D/lib/X11/xdm/Xstartup; then rm -f %D/lib/X11/xdm/Xstartup; fi -@unexec if cmp -s %D/%%EXAMPLESDIR%%/Xwilling %D/lib/X11/xdm/Xwilling; then rm -f %D/lib/X11/xdm/Xwilling; fi -@unexec if cmp -s %D/%%EXAMPLESDIR%%/xdm-config %D/lib/X11/xdm/xdm-config; then rm -f %D/lib/X11/xdm/xdm-config; fi -%%EXAMPLESDIR%%/GiveConsole -%%EXAMPLESDIR%%/TakeConsole -%%EXAMPLESDIR%%/Xaccess -%%EXAMPLESDIR%%/Xreset -%%EXAMPLESDIR%%/Xresources -%%EXAMPLESDIR%%/Xservers -%%EXAMPLESDIR%%/Xsession -%%EXAMPLESDIR%%/Xsetup_0 -%%EXAMPLESDIR%%/Xstartup -%%EXAMPLESDIR%%/Xwilling -%%EXAMPLESDIR%%/xdm-config -@exec cp -n %D/%%EXAMPLESDIR%%/GiveConsole %D/lib/X11/xdm/GiveConsole -@exec cp -n %D/%%EXAMPLESDIR%%/TakeConsole %D/lib/X11/xdm/TakeConsole -@exec cp -n %D/%%EXAMPLESDIR%%/Xaccess %D/lib/X11/xdm/Xaccess -@exec cp -n %D/%%EXAMPLESDIR%%/Xreset %D/lib/X11/xdm/Xreset -@exec cp -n %D/%%EXAMPLESDIR%%/Xresources %D/lib/X11/xdm/Xresources -@exec cp -n %D/%%EXAMPLESDIR%%/Xservers %D/lib/X11/xdm/Xservers -@exec cp -n %D/%%EXAMPLESDIR%%/Xsession %D/lib/X11/xdm/Xsession -@exec cp -n %D/%%EXAMPLESDIR%%/Xsetup_0 %D/lib/X11/xdm/Xsetup_0 -@exec cp -n %D/%%EXAMPLESDIR%%/Xstartup %D/lib/X11/xdm/Xstartup -@exec cp -n %D/%%EXAMPLESDIR%%/Xwilling %D/lib/X11/xdm/Xwilling -@exec cp -n %D/%%EXAMPLESDIR%%/xdm-config %D/lib/X11/xdm/xdm-config -@exec mkdir -p /var/lib/xdm/authdir -@dirrmtry share/X11/app-defaults -@dirrmtry share/X11 -@unexec rm -f /var/lib/xdm/authdir/authfiles/* 2>/dev/null || true -@unexec rmdir /var/lib/xdm/authdir/authfiles 2>/dev/null || true -@unexec rmdir /var/lib/xdm/authdir 2>/dev/null -@unexec rmdir /var/lib/xdm 2>/dev/null -@unexec rmdir /var/lib 2>/dev/null -@dirrm lib/X11/xdm/pixmaps -@dirrm lib/X11/xdm -@dirrm %%EXAMPLESDIR%% +@sample lib/X11/xdm/GiveConsole.sample +@sample lib/X11/xdm/TakeConsole.sample +@sample lib/X11/xdm/Xaccess.sample +@sample lib/X11/xdm/Xreset.sample +@sample lib/X11/xdm/Xresources.sample +@sample lib/X11/xdm/Xservers.sample +@sample lib/X11/xdm/Xsession.sample +@sample lib/X11/xdm/Xsetup_0.sample +@sample lib/X11/xdm/Xstartup.sample +@sample lib/X11/xdm/Xwilling.sample +@sample lib/X11/xdm/xdm-config.sample +@unexec rm -rf /var/lib/xdm/authdir/* 2>/dev/null || true +@dir /var/lib/xdm/authdir +@dir /var/lib/xdm +@dir /var/lib