From owner-svn-ports-all@freebsd.org Sun Sep 27 21:38:18 2015 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 08A28A0A266; Sun, 27 Sep 2015 21:38:18 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org (repo.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 ED1151D28; Sun, 27 Sep 2015 21:38:17 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t8RLcHff093198; Sun, 27 Sep 2015 21:38:17 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t8RLcHbi093196; Sun, 27 Sep 2015 21:38:17 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201509272138.t8RLcHbi093196@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Sun, 27 Sep 2015 21:38:17 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r398054 - in head/net/boinc-client: . 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-all@freebsd.org X-Mailman-Version: 2.1.20 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: Sun, 27 Sep 2015 21:38:18 -0000 Author: amdmi3 Date: Sun Sep 27 21:38:16 2015 New Revision: 398054 URL: https://svnweb.freebsd.org/changeset/ports/398054 Log: - Implement clean deinstallation - Drop 8.x support - Switch to options helpers Added: head/net/boinc-client/files/pkg-deinstall.in (contents, props changed) Modified: head/net/boinc-client/Makefile Modified: head/net/boinc-client/Makefile ============================================================================== --- head/net/boinc-client/Makefile Sun Sep 27 21:32:30 2015 (r398053) +++ head/net/boinc-client/Makefile Sun Sep 27 21:38:16 2015 (r398054) @@ -23,7 +23,7 @@ BOINC_CLIENT_USER?= boinc BOINC_CLIENT_GROUP?= boinc BOINC_CLIENT_HOME?= /var/db/boinc -SUB_FILES= pkg-install +SUB_FILES= pkg-install pkg-deinstall SUB_LIST= BOINC_CLIENT_HOME="${BOINC_CLIENT_HOME}" \ BOINC_CLIENT_USER="${BOINC_CLIENT_USER}" \ BOINC_CLIENT_GROUP="${BOINC_CLIENT_GROUP}" \ @@ -74,10 +74,6 @@ X11_CONFIGURE_OFF= ax_cv_check_glut_libg .if ${PORT_OPTIONS:MMANAGER} WX_CONF_ARGS= absolute -WX_UNICODE= yes -. if ${OSVERSION} < 900506 || (${OSVERSION} >= 1000000 && ${OSVERSION} < 1000002) -CPPFLAGS+= -DNO_PER_THREAD_LOCALE -. endif SUB_LIST+= OPTION_MANAGER="true" .else SUB_LIST+= OPTION_MANAGER="" @@ -114,35 +110,33 @@ post-patch: ${WRKSRC}/zip/zip/zipup.c post-install: -.if ${PORT_OPTIONS:MMANAGER} || ${PORT_OPTIONS:MX11} +.for name in config.h project_specific_defines.h api/reduce.h \ + lib/opencl_boinc.h lib/shmem.h lib/std_fixes.h + ${INSTALL_DATA} ${WRKSRC}/${name} ${STAGEDIR}${PREFIX}/include/boinc +.endfor + +post-install-MANAGER-on: ${MKDIR} ${STAGEDIR}${PREFIX}/share/boinc -.endif -.if ${PORT_OPTIONS:MMANAGER} -. for name in 16 32 48 +.for name in 16 32 48 ${INSTALL_DATA} ${WRKSRC}/clientgui/res/boincmgr.${name}x${name}.png \ ${STAGEDIR}${PREFIX}/share/pixmaps -. endfor -. if ${PORT_OPTIONS:MSKINS} +.endfor +.if ${PORT_OPTIONS:MSKINS} (cd ${WRKSRC}/clientgui && \ ${COPYTREE_SHARE} skins ${STAGEDIR}${PREFIX}/share/boinc/ ) -. else +.else ${MKDIR} ${STAGEDIR}${PREFIX}/share/boinc/skins (cd ${WRKSRC}/clientgui/skins && \ ${COPYTREE_SHARE} Default ${STAGEDIR}${PREFIX}/share/boinc/skins/ ) -. endif .endif -. for name in config.h project_specific_defines.h api/reduce.h \ - lib/opencl_boinc.h lib/shmem.h lib/std_fixes.h - ${INSTALL_DATA} ${WRKSRC}/${name} ${STAGEDIR}${PREFIX}/include/boinc -. endfor -.if ${PORT_OPTIONS:MX11} -. for name in api/boinc_gl.h api/graphics_api.h api/graphics_data.h \ + +post-install-X11-on: +.for name in api/boinc_gl.h api/graphics_api.h api/graphics_data.h \ api/ttfont.h ${INSTALL_DATA} ${WRKSRC}/${name} ${STAGEDIR}${PREFIX}/include/boinc -. endfor +.endfor ${MKDIR} ${STAGEDIR}${PREFIX}/share/boinc/ttf (cd ${WRKSRC}/api/ttf/liberation-fonts-ttf-2.00.0 && \ ${COPYTREE_SHARE} \*.ttf ${STAGEDIR}${PREFIX}/share/boinc/ttf/ ) -.endif .include Added: head/net/boinc-client/files/pkg-deinstall.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/boinc-client/files/pkg-deinstall.in Sun Sep 27 21:38:16 2015 (r398054) @@ -0,0 +1,28 @@ +#!/bin/sh +# +# $FreeBSD: head/net/boinc-client/files/pkg-install.in 325489 2013-08-27 21:37:47Z rene $ +# + +PATH=/bin:/usr/sbin:/usr/bin:/usr/sbin + +user=%%BOINC_CLIENT_USER%% +group=%%BOINC_CLIENT_GROUP%% +home="%%BOINC_CLIENT_HOME%%" +option_manager=%%OPTION_MANAGER%% +option_user=%%OPTION_USER%% + +case $2 in +POST-DEINSTALL) + if [ -n "${option_user}" ] ; then + if [ -n "${option_manager}" -a -e "${home}/skins" -a `readlink "${home}/skins"` = "%%PREFIX%%/share/boinc/skins" ]; then + rm -f "${home}/skins" + fi + if [ -e "${home}/ca-bundle.crt" -a `readlink "${home}/ca-bundle.crt"` = "%%LOCALBASE%%/share/certs/ca-root-nss.crt" ]; then + rm -f "${home}/ca-bundle.crt" + fi + rmdir "${home}" >/dev/null 2>&1 + fi + ;; +esac + +exit 0