From owner-svn-ports-all@freebsd.org Thu Aug 2 15:08:01 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C87B11069C98; Thu, 2 Aug 2018 15:08:00 +0000 (UTC) (envelope-from mm@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 77C3F8C4B6; Thu, 2 Aug 2018 15:08:00 +0000 (UTC) (envelope-from mm@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5022913471; Thu, 2 Aug 2018 15:08:00 +0000 (UTC) (envelope-from mm@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w72F80br052132; Thu, 2 Aug 2018 15:08:00 GMT (envelope-from mm@FreeBSD.org) Received: (from mm@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w72F7xql052126; Thu, 2 Aug 2018 15:07:59 GMT (envelope-from mm@FreeBSD.org) Message-Id: <201808021507.w72F7xql052126@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mm set sender to mm@FreeBSD.org using -f From: Martin Matuska Date: Thu, 2 Aug 2018 15:07:59 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r476237 - in head/archivers: . opkg X-SVN-Group: ports-head X-SVN-Commit-Author: mm X-SVN-Commit-Paths: in head/archivers: . opkg X-SVN-Commit-Revision: 476237 X-SVN-Commit-Repository: ports 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.27 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: Thu, 02 Aug 2018 15:08:01 -0000 Author: mm Date: Thu Aug 2 15:07:58 2018 New Revision: 476237 URL: https://svnweb.freebsd.org/changeset/ports/476237 Log: New port: archivers/opkg The opkg utility (an ipkg fork) is a lightweight package manager used to download and install OpenWrt packages from local package repositories or ones located in the Internet. opkg is part of the OpenWrt project WWW: https://wiki.openwrt.org/doc/techref/opkg Added: head/archivers/opkg/ head/archivers/opkg/Makefile (contents, props changed) head/archivers/opkg/distinfo (contents, props changed) head/archivers/opkg/pkg-descr (contents, props changed) head/archivers/opkg/pkg-plist (contents, props changed) Modified: head/archivers/Makefile Modified: head/archivers/Makefile ============================================================================== --- head/archivers/Makefile Thu Aug 2 15:04:39 2018 (r476236) +++ head/archivers/Makefile Thu Aug 2 15:07:58 2018 (r476237) @@ -97,6 +97,7 @@ SUBDIR += nwreckdum SUBDIR += ocaml-bz2 SUBDIR += ocaml-zip + SUBDIR += opkg SUBDIR += p5-Archive-Any SUBDIR += p5-Archive-Any-Lite SUBDIR += p5-Archive-Any-Plugin-Rar Added: head/archivers/opkg/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/archivers/opkg/Makefile Thu Aug 2 15:07:58 2018 (r476237) @@ -0,0 +1,61 @@ +# Created by: Martin Matuska +# $FreeBSD$ + +PORTNAME= opkg +DISTVERSION= 20180802 +DISTVERSIONSUFFIX= -3b417b9f +CATEGORIES= archivers sysutils +MASTER_SITES= LOCAL/mm/openwrt + +MAINTAINER= mm@FreeBSD.org +COMMENT= OpenWrt package manager + +LICENSE= GPLv2 + +OPKG_GITURL= https://git.openwrt.org/project/opkg-lede.git + +USES= cmake tar:xz +LIB_DEPENDS+= libubox.so:devel/libubox + +.include + +CFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib +CMAKE_ARGS+= -DLUAPATH="${LUA_MODLIBDIR}" \ + -DPATH_SPEC="${LOCALBASE}/sbin:${LOCALBASE}/bin:/usr/sbin:/usr/bin:/sbin:/bin" + +post-patch: + @${REINPLACE_CMD} -e 's,/etc/opkg.conf,${PREFIX}/etc/opkg.conf,g' \ + ${WRKSRC}/src/opkg-cl.c + @${REINPLACE_CMD} -e 's,ROOT="",ROOT="${PREFIX}",g' \ + ${WRKSRC}/utils/opkg-key + @${REINPLACE_CMD} -e \ + 's,OPKGETCDIR="/etc",OPKGETCDIR="${PREFIX}/etc",g' \ + ${WRKSRC}/CMakeLists.txt + @${REINPLACE_CMD} -e 's,@PACKAGE_NAME@,opkg-cl,g' \ + -e 's,@PACKAGE_STRING@,opkg-cl,g' \ + -e 's|@CLEAN_DATE@|October 5, 2010|g' \ + ${WRKSRC}/man/opkg-cl.1.in + @${REINPLACE_CMD} -e 's,@PACKAGE_NAME@,opkg-key,g' \ + -e 's,@PACKAGE_STRING@,opkg-key,g' \ + -e 's|@CLEAN_DATE@|October 8, 2010|g' \ + ${WRKSRC}/man/opkg-key.1.in + +post-install: + ${INSTALL_SCRIPT} ${WRKSRC}/utils/opkg-key ${STAGEDIR}${PREFIX}/bin +.for file in opkg-cl.1 opkg-key.1 + ${INSTALL_MAN} ${WRKSRC}/man/${file}.in \ + ${STAGEDIR}${MANPREFIX}/man/man1/${file} +.endfor + +maintainer-fetch: + @${MAKE} clean + @${MKDIR} ${WRKSRC} + @git clone ${OPKG_GITURL} ${WRKSRC} + @cd ${WRKSRC} && git reset --hard ${DISTVERSIONSUFFIX:S|^-||} + @${TAR} -c -J -f ${_DISTDIR:S|/$||}/${DISTFILES:M${PORTNAME}-*} \ + -C ${WRKDIR} --exclude .git ${WRKSRC:S|${WRKDIR}/||} + @${MAKE} makesum + @${MAKE} clean + +.include Added: head/archivers/opkg/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/archivers/opkg/distinfo Thu Aug 2 15:07:58 2018 (r476237) @@ -0,0 +1,3 @@ +TIMESTAMP = 1533218886 +SHA256 (opkg-20180802-3b417b9f.tar.xz) = f03cbf7f22c8fe1ab9d43a2562be1bbc1eb0b236d817b735e74e3a1ceebe9c78 +SIZE (opkg-20180802-3b417b9f.tar.xz) = 120104 Added: head/archivers/opkg/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/archivers/opkg/pkg-descr Thu Aug 2 15:07:58 2018 (r476237) @@ -0,0 +1,7 @@ +The opkg utility (an ipkg fork) is a lightweight package manager used +to download and install OpenWrt packages from local package repositories +or ones located in the Internet. + +opkg is part of the OpenWrt project + +WWW: https://wiki.openwrt.org/doc/techref/opkg Added: head/archivers/opkg/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/archivers/opkg/pkg-plist Thu Aug 2 15:07:58 2018 (r476237) @@ -0,0 +1,4 @@ +bin/opkg-cl +bin/opkg-key +man/man1/opkg-cl.1.gz +man/man1/opkg-key.1.gz