svn commit: r476237 - in head/archivers: . opkg
Martin Matuska
mm at FreeBSD.org
Thu Aug 2 15:08:01 UTC 2018
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 <mm at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= opkg
+DISTVERSION= 20180802
+DISTVERSIONSUFFIX= -3b417b9f
+CATEGORIES= archivers sysutils
+MASTER_SITES= LOCAL/mm/openwrt
+
+MAINTAINER= mm at 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 <bsd.port.pre.mk>
+
+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, at PACKAGE_NAME@,opkg-cl,g' \
+ -e 's, at PACKAGE_STRING@,opkg-cl,g' \
+ -e 's|@CLEAN_DATE@|October 5, 2010|g' \
+ ${WRKSRC}/man/opkg-cl.1.in
+ @${REINPLACE_CMD} -e 's, at PACKAGE_NAME@,opkg-key,g' \
+ -e 's, at 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 <bsd.port.post.mk>
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
More information about the svn-ports-all
mailing list