From owner-freebsd-ports@FreeBSD.ORG Fri Sep 20 19:07:18 2013 Return-Path: Delivered-To: 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 ESMTP id 3EEF16F5 for ; Fri, 20 Sep 2013 19:07:18 +0000 (UTC) (envelope-from mbw500@york.ac.uk) Received: from mail-ie0-f175.google.com (mail-ie0-f175.google.com [209.85.223.175]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1324E2B16 for ; Fri, 20 Sep 2013 19:07:18 +0000 (UTC) Received: by mail-ie0-f175.google.com with SMTP id e14so1740361iej.34 for ; Fri, 20 Sep 2013 12:07:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=v1pgRc2Uhe1sDShN6noM/hBHGC61TgFSa1UterpYmeY=; b=PEynpJ0ocfdd3BxDA2J5kOXFx76O9KeFk3nVh9jRGp/EWimasnVOB18+5mx0S36Q3W dxctpdDGJrGIfyUpY1+ueSQ/rQUMAlLyNy8V9sErgP8PUG4LFgtxxCp3VOXhQLjbpE90 GHn00mdCiGpz6MPunI5hEsSllwrfon1G0K+ZaOCpIstRoWujAvb2Mz1v58w3tWzmspQN qthJgmumIuxsjUBZiS/yVcEAcOme8m/TVnWsGH8bbANIfWJEEZmfvaMqmm9NTE01URIu oqPiqWG4fKXkzJ+6JitvzIt6mpc/ewoBugpkueLOOBlBkLX/0Ov2+fjsEwsQkLQK9csO VWOg== X-Gm-Message-State: ALoCoQkckE4y8575zUU3eNyAOYHDekv7Xv6dZPVNni0/sKPdKDA0RcF8USCH2HWhRGUlN07zh75q MIME-Version: 1.0 X-Received: by 10.50.73.66 with SMTP id j2mr3701380igv.1.1379704037263; Fri, 20 Sep 2013 12:07:17 -0700 (PDT) Received: by 10.43.102.193 with HTTP; Fri, 20 Sep 2013 12:07:17 -0700 (PDT) Date: Fri, 20 Sep 2013 19:07:17 +0000 Message-ID: Subject: [CFT] pkgpackagekit (GSoC: PackageKit backend for pkgng) From: Matthew Windsor To: ports@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Sep 2013 19:07:18 -0000 Hi, This is the first time I've ever done anything related to ports, so apologies if I'm going about this in the wrong way! I've been working on a PackageKit backend for Google Summer of Code 2013, and I'm now at a position where I'd like a call for testing on the port that is the end result of the project. The port currently lives in the socsvn repository (URL below, in the /port directory); an attempt at a directory patch containing the port is below. PackageKit is a package abstraction layer that provides a unified D-Bus, graphical and command-line interface for package managers (predominantly Linux-based) like apt-get, rpm and ALPM (as well as FreeBSD Ports). This port adds a new PackageKit backend that targets the FreeBSD pkgng package system. The backend is experimental but can be used to perform basic package management. There are some known issues (some of which are in the README, but include minor cosmetic issues such as poor percentage updating, some missing switches and an inability to cancel transactions; in addition, this port targets the current, obsolete, ported version of PackageKit due to issues getting the newer versions to work), but I've been using this to install and remove packages locally (and there are several unit tests and a basic run-through test available) so I'd like other people's eyes on it if possible. The single distfile is currently on my university filestore; this won't be sustainable for long, so any suggestions as to where it should live afterwards would be greatly appreciated. (Currently I'm considering github as pkg; an alternative could be trying to get this into PackageKit's distribution, but this would require the use of Autotools as well as targeting a modern version of PackageKit) Licence: GPL2 (due to linking against PackageKit) Project page: https://wiki.freebsd.org/SummerOfCode2013/pkgPackagekit (contains some basic information on how to use PackageKit from the CLI, as well as ) PackageKit: http://www.packagekit.org/ SVN: https://socsvn.freebsd.org/socsvn/soc2013/mattbw/ Distfile: http://www-student.cs.york.ac.uk/~mbw500/pkgpackagekit-0.1.1.tar.gz Thanks in advance, and please let me know if you need further information, ~ Matt Windsor --- empty/Makefile 1970-01-01 01:00:00.000000000 +0100 +++ port/Makefile 2013-09-20 13:23:13.000000000 +0100 @@ -0,0 +1,19 @@ +# $FreeBSD$ + +PORTNAME= pkgpackagekit +PORTVERSION= 0.1.1 +CATEGORIES= ports-mgmt +MASTER_SITES= http://www-student.cs.york.ac.uk/~mbw500/ + +MAINTAINER= mattbw@FreeBSD.org +COMMENT= PackageKit backend for pkgng + +LIB_DEPENDS= libpackagekit-glib2.so:${PORTSDIR}/ports-mgmt/packagekit \ + libpkg.so:${PORTSDIR}/ports-mgmt/pkg + +WRKSRC= ${WRKDIR}/backend + +post-install: + ${CAT} pkg-message | ${SED} 's,%%PREFIX%%,${PREFIX},g' + +.include diff -rupN empty/distinfo port/distinfo --- empty/distinfo 1970-01-01 01:00:00.000000000 +0100 +++ port/distinfo 2013-09-20 13:24:11.000000000 +0100 @@ -0,0 +1,2 @@ +SHA256 (pkgpackagekit-0.1.1.tar.gz) = 855e70060e623dbaba043753b658f23fef33a88b98c6b0113bd13439188ce354 +SIZE (pkgpackagekit-0.1.1.tar.gz) = 40960 diff -rupN empty/pkg-descr port/pkg-descr --- empty/pkg-descr 1970-01-01 01:00:00.000000000 +0100 +++ port/pkg-descr 2013-09-19 13:16:28.000000000 +0100 @@ -0,0 +1,6 @@ +This is an experimental PackageKit backend for pkgng, the FreeBSD next +generation package manager. In conjunction with PackageKit frontends such as +Apper and GPackageKit, it allows for maintenance of the pkgng system inside a +graphical user environment. + +WWW: http://wiki.FreeBSD.org/SummerOfCode2013/pkgPackagekit diff -rupN empty/pkg-message port/pkg-message --- empty/pkg-message 1970-01-01 01:00:00.000000000 +0100 +++ port/pkg-message 2013-09-20 12:37:27.000000000 +0100 @@ -0,0 +1,11 @@ +In order to enable this backend by default, you will need to change the file +%%PREFIX%%/etc/PackageKit/PackageKit.conf, replacing the line: + +< DefaultBackend=ports + +with: + +> DefaultBackend=pkgng + +Otherwise, PackageKit will default to using the ports backend unless you +explicitly launch packagekitd with a different backend. diff -rupN empty/pkg-plist port/pkg-plist --- empty/pkg-plist 1970-01-01 01:00:00.000000000 +0100 +++ port/pkg-plist 2013-09-19 13:16:28.000000000 +0100 @@ -0,0 +1 @@ +lib/packagekit-backend/libpk_backend_pkgng.so