From owner-freebsd-ports@FreeBSD.ORG Tue Nov 26 18:07:09 2013 Return-Path: Delivered-To: freebsd-ports@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 1D590F8B for ; Tue, 26 Nov 2013 18:07:09 +0000 (UTC) Received: from mailout4.lrau.net (mailout4.lrau.net [IPv6:2a02:d40:2:2::73]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BDC372181 for ; Tue, 26 Nov 2013 18:07:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=chaos1.de; s=email; h=To:References:Message-Id:Content-Transfer-Encoding:Date:In-Reply-To:From:Subject:Mime-Version:Content-Type; bh=Vzl21bjbKXf4W2pFteQftrIpD3aY2EhlC+GgcRRblTo=; b=JJ/CbVEpGs3QsbLRyjij6OKvwSzgwR+1q6Kv7vKh7w+6RjI3Sr1x7Er5fLuswhBnYlsCRhYr8+RBmed40KhK/b7KKuqYR46zeBrYvGf17nOWkztJ1QRYQbSi+8kvczqC8YIRaXEcbg666ZcBffxy/EwL84zzfznm7YGOXoccfkg=; Received: from [91.216.35.74] (helo=imap.lrau.net) by mailout4.lrau.net with esmtp (Exim 4.82) (envelope-from ) id 1VlN2R-0004sV-Dq for freebsd-ports@freebsd.org; Tue, 26 Nov 2013 18:07:07 +0000 Received: from axel.rau@chaos1.de by imap.lrau.net (Archiveopteryx 3.1.4) with esmtpsa id 1385489226-6635-6631/8/523; Tue, 26 Nov 2013 18:07:06 +0000 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 Subject: Re: portmaster refuses to use pkgng with local packages From: Axel Rau In-Reply-To: <7AAE93C1-71EA-4185-876E-D3BFDD98624E@chaos1.de> Date: Tue, 26 Nov 2013 19:07:05 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <526D2FF9.5030301@egr.msu.edu> <6FBA83B6-DC8D-42D5-9B55-C90152E14F78@Chaos1.DE> <14CCEAEB-61E4-4BD3-8F2B-7EA809B1DC1B@chaos1.de> <42213F76-5A13-4BAF-B93F-BBAB2298D5C2@chaos1.de> <526D736C.4030705@FreeBSD.org> <7AAE93C1-71EA-4185-876E-D3BFDD98624E@chaos1.de> To: freebsd-ports@freebsd.org X-Mailer: Apple Mail (2.1510) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Nov 2013 18:07:09 -0000 Am 24.11.2013 um 12:43 schrieb Axel Rau : >=20 > Am 27.10.2013 um 21:11 schrieb Matthew Seaman : >=20 >> On 27/10/2013 18:53, Axel Rau wrote: >>> I looked at poudriere earlier, but did not recognize that it plays = with pkg nicely and also did not like to set up a web server to just = serve local jails. >>> I will give it a try. >>=20 >> You don't need to set up a webserver, necessarily. If you're using >> poudriere to build packages on the same machine where you want to >> install them, then you can just use a file:// URL in your pkg.conf and >> pkg will dtrt. If you want to maintain a bunch of machines on a >> network, then using a webserver to distribute the packages is probably >> easiest overall, but you could NFS mount the repo and use a file:// = URL >> again, or you could use ssh:// to pull the packages down. > While trying ports-mgmt/poudriere in my ezjail/portmaster environment, = I learned: > poudriere can't run at secure level 1, because it loads linux.ko and = uses chflags. Because of the chflags issue, I moved my repo to another server, = installed a web server, configured firewalls and now trying to let pkg = use my own repo, which does not work. With the help of Olli, I checked the index provided by my web server and = I added a config file in /usr/local/etc/pkg/repos/ . I need a configuration, where pkg uses *ONLY* *my* repo. This is the current situation: # pkg info pkg pkg-1.1.4_8 # pkg update Updating repository catalogue pkg: ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/Lates= t//digests.txz: File unavailable (e.g., file not found, no access) pkg: No digest falling back on legacy catalog format pkg: ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/Lates= t//repo.txz: File unavailable (e.g., file not found, no access) # pkg -vv update Version: 1.1.4 PACKAGESITE: ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/pa= ckages-8-stable/Latest/ PKG_DBDIR: /var/db/pkg PKG_CACHEDIR: /tmp PORTSDIR: /usr/ports PUBKEY:=20 HANDLE_RC_SCRIPTS: no ASSUME_ALWAYS_YES: no REPOS_DIR: /usr/local/etc/pkg/repos/ PLIST_KEYWORDS_DIR:=20 SYSLOG: yes AUTODEPS: no ABI: freebsd:9:x86:64 DEVELOPER_MODE: no PORTAUDIT_SITE: http://portaudit.FreeBSD.org/auditfile.tbz VULNXML_SITE: http://www.vuxml.org/freebsd/vuln.xml.bz2 MIRROR_TYPE: SRV FETCH_RETRY: 3 PKG_PLUGINS_DIR: /usr/local/lib/pkg/ PKG_ENABLE_PLUGINS: yes PLUGINS: DEBUG_SCRIPTS: no PLUGINS_CONF_DIR: /usr/local/etc/pkg/ PERMISSIVE: no REPO_AUTOUPDATE: yes NAMESERVER:=20 EVENT_PIPE:=20 FETCH_TIMEOUT: 30 UNSET_TIMESTAMP: no SSH_RESTRICT_DIR:=20 PKG_ENV: DISABLE_MTREE: no Repositories: packagesite: url: ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8= -stable/Latest/ key:=20 enabled: yes mirror_type: SRV lrau-repo: url: http://db1.in.chaos1.de/92amd64-default key:=20 enabled: yes mirror_type: HTTP =2D-- # cat /usr/local/etc/pkg.conf=20 packagesite: http://db1.in.chaos1.de/92amd64-default PKG_CACHEDIR: /tmp # cat /usr/local/etc/pkg/repos/lrau-repo.conf=20 lrau-repo: { url: "http://db1.in.chaos1.de/92amd64-default" , mirror_type: "HTTP", enabled: yes, key: /usr/local/etc/ssl/certs/pkg.cert } Any help appreciated, Axel =2D-- PGP-Key:29E99DD6 =E2=98=80 +49 151 2300 9283 =E2=98=80 computing @ = chaos claudius