Using Artifactory 5.x ?
JFrog Artifactory 5.x User Guide


Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Changed "downloads.openwrt.com" to "downloads.openwrt.org” to address MAR-2913 and DOC-904
Section
Column
width75%

Overview

From version 4.4, Artifactory supports Opkg repositories. As a fully-fledged Opkg repository, Artifactory generates index files that are fully compliant with the Opkg client.

Artifactory support for Opkg provides:

  1. The ability to provision ipk packages from Artifactory to an Opkg client from local and remote repositories.
  2. Calculation of Metadata for ipk packages hosted in Local Repositories.
  3. Access to remote Opkg resources (such as downloads.openwrt.comorg) through Remote Repositories which provide the usual proxy and caching functionality.
  4. Providing GPG signatures that can be used by Opkg clients to verify packages.
  5. Complete management of GPG signatures using the Artifactory UI and the REST API.
Column
Info
iconfalse
titlePage Contents

Table of Contents
maxLevel4
minLevel2

...

To specify that a Remote Repository supports Opkg packages, you need to set its Package Type to Opkg when it is created.

Opkg New Remote Repository 


You can either point the remote to a specific feed (location of a Packages file), i.e. http://downloads.openwrt.org/chaos_calmer/15.05/adm5120/rb1xx/packages/luci

Or you can specify some base level and point your client to the relevant feeds in it i.e. url is http://downloads.openwrt.org/chaos_calmer/15.05/ and your opkg.conf file has the entry src adm5120/rb1xx/packages/luci 


Note that the index files for remote Opkg repositories are stored and renewed according to the Retrieval Cache Period setting.

...

Code Block
languagebash
titleCompiling Opkg
# Download opkg release (latest when this was written was 0.3.1):
wget http://downloads.yoctoproject.org/releases/opkg/opkg-0.3.1.tar.gz
tar -zxvf opkg-0.3.1.tar.gz
# Install compilation dependencies:
apt-get update && apt-get install -y gcc libtool autoconf pkg-config libarchive13 libarchive-dev libcurl3 libcurl4-gnutls-dev libssl-dev libgpgme11-dev
# Compile Opkg(compile with curl to support basic auth, and with gpg support for signature verification):
# Note: if there's no configure script in the release you downloaded you need to call ./autogen.sh first
./configure --with-static-libopkg --disable-shared --enable-gpg --enable-curl --prefix=/usr && make && sudo make install

...


Each Opkg feed corresponds to a path in Artifactory where you have chosen to upload ipk packages to.  This is where the Packages index is written.

...

Code Block
languagetext
titleOpkg signature verification
option check_signature true

...


...

Authenticated Access to Servers

...