Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Dec 2015 20:48:09 +0100
From:      olli hauer <ohauer@gmx.de>
To:        Miroslav Lachman <000.fbsd@quip.cz>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Using pkg updating without /usr/ports
Message-ID:  <5675B479.5070903@gmx.de>
In-Reply-To: <56758BBB.9030804@quip.cz>
References:  <56755B17.3080904@quip.cz> <20151219134610.GO1173@albert.catwhisker.org> <56758BBB.9030804@quip.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2015-12-19 17:54, Miroslav Lachman wrote:
> David Wolfskill wrote on 12/19/2015 14:46:
>> On Sat, Dec 19, 2015 at 02:26:47PM +0100, Miroslav Lachman wrote:
...
> pkg update and pkg upgrade works fine for me too, but pkg updating not. pkg updating is intended to read /usr/ports/UPDATING file and compare its content to installed packages and show important messages before running `pkg upgrade`.
> But UPDATING file is not automatically synchronised between build server and 'client' (machine where I need to run `pkg updating`).
> 

Absolute crude hack, but maybe works for you.
Please note the port is absolute not supported and breaks many porting rules ...
Instead installing the file on the servers to /usr/ports it can be installed anywhere and then use `pkg updating -f $file'
It should be also the first port that is updated before all other ports


on you build host:
$ mkdir /usr/ports/misc/updating

cat > /usr/ports/misc/updating/Makefile << _EOF
PORTNAME=       updating
PORTVERSION!=   /bin/date -j "+%Y%m%d.%H%M"
CATEGORIES=     misc
MASTER_SITES=   # none
DISTFILES=      # none

MAINTAINER=     updating@example.org
COMMENT=        UPDATING info

LICENSE=        BSD2

NO_BUILD=       yes
WRKSRC=         ${WRKDIR}/UPDATING
SRC=            ${PORTSDIR}/UPDATING

PLIST_FILES=    ${PORTSDIR}/UPDATING
PLIST_DIRS=     ${PORTSDIR}

do-extract:
        @${DO_NADA}

do-install:
        @${MKDIR} ${STAGEDIR}/${PORTSDIR}
        ${INSTALL_DATA} ${PORTSDIR}/UPDATING ${STAGEDIR}/${PORTSDIR}

.include <bsd.port.mk>
_EOF


cat > /usr/ports/misc/updating/pkg-descr << _EOF
ports UPDATING file
_EOF


-- 
Happy hacking ;}

olli



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5675B479.5070903>