OPKG Repository Server Setup

4,818 views
Skip to first unread message

HenningS

unread,
Jun 1, 2012, 8:35:32 AM6/1/12
to opkg-devel
Hi Group,

im searching for information for setting up an repository for OPKG
pakages.
I could not find anything in this group (and in the internet surely) -
which i hope is mostly related to this topic.
Can someone give me some hints?

Would an OPKG repository be the same like an IPKG Repo?

Regards,

Henning

HenningS

unread,
Jun 5, 2012, 5:56:19 AM6/5/12
to opkg-devel
I see. No Replys. Found it myself.

For anyone else having the same question:

An OPKG Repository is just a simple HTTP Servier with a special file
structure.
Setup:
1. Checkout the opkg-utils from http://svn.openmoko.org/trunk/src/host/opkg-utils/
(svn checkout http://svn.openmoko.org/trunk/src/host/opkg-utils/)
2. make && make install
3. run "opkg-make-index" to add Packages to your Repository.
4. For a full featured opkg-repository you will need the Paketindex -
you can create one with
"gzip -c Packages > Packages.gz"
5. Copy files to your http server of your choice - add URL to your
"myrepo.conf" in /etc/opgk folder.



Correct?

Thanx for the help.

(like doing conversations with myself)


Anyone has a clue (or a guideline) how to secure a repository to
unauthorized access?

Martin Jansa

unread,
Jun 5, 2012, 6:20:12 AM6/5/12
to opkg-...@googlegroups.com
On Tue, Jun 05, 2012 at 02:56:19AM -0700, HenningS wrote:
> I see. No Replys. Found it myself.
>
> For anyone else having the same question:
>
> An OPKG Repository is just a simple HTTP Servier with a special file
> structure.
> Setup:
> 1. Checkout the opkg-utils from http://svn.openmoko.org/trunk/src/host/opkg-utils/
> (svn checkout http://svn.openmoko.org/trunk/src/host/opkg-utils/)

newer version is here
http://git.yoctoproject.org/cgit/cgit.cgi/opkg-utils/
for python-2.6 you need last patch from:
https://github.com/shr-project/opkg-utils/tree/jansa/pull
until it's merged to yoctoproject repo.

> 2. make && make install
> 3. run "opkg-make-index" to add Packages to your Repository.

and use -r option when regenerating index (won't parse all .ipk files,
just new and changed).

> 4. For a full featured opkg-repository you will need the Paketindex -
> you can create one with
> "gzip -c Packages > Packages.gz"
> 5. Copy files to your http server of your choice - add URL to your
> "myrepo.conf" in /etc/opgk folder.
>
>
>
> Correct?

yes

Cheers,

> Thanx for the help.
>
> (like doing conversations with myself)
>
>
> Anyone has a clue (or a guideline) how to secure a repository to
> unauthorized access?
>
> On 1 Jun., 14:35, HenningS <h.spi...@googlemail.com> wrote:
> > Hi Group,
> >
> > im searching for information for setting up an repository for OPKG
> > pakages.
> > I could not find anything in this group (and in the internet surely) -
> > which i hope is mostly related to this topic.
> > Can someone give me some hints?
> >
> > Would an OPKG repository be the same like an IPKG Repo?
> >
> > Regards,
> >
> > Henning
>
> --
> You received this message because you are subscribed to the Google Groups "opkg-devel" group.
> To post to this group, send email to opkg-...@googlegroups.com.
> To unsubscribe from this group, send email to opkg-devel+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/opkg-devel?hl=en.
>

--
Martin 'JaMa' Jansa jabber: Martin...@gmail.com
signature.asc

gto...@bulogics.com

unread,
Jan 9, 2015, 2:28:56 PM1/9/15
to opkg-...@googlegroups.com, h.sp...@googlemail.com
Henning,

This post was very helpful. Were you able to figure out how to secure the opkg repository?

Henning Spille

unread,
Jan 12, 2015, 4:22:13 AM1/12/15
to gto...@bulogics.com, opkg-...@googlegroups.com, Henning Spille
Hi,

nope sorry can't remember. Securing the WS may be no problem. But the
client... Can't remember how i did it.

Gabe Torres

unread,
Jan 12, 2015, 6:47:54 AM1/12/15
to Henning Spille, opkg-...@googlegroups.com, Henning Spille
Henning,

Thanks for your help. I ended up patching OPKG to do basic http auth through libcurl. 

Thanks again,
Gabe


----

Gabe Torres
BuLogics, Inc.
Skype: gtorres88

Henning Spille

unread,
Jan 12, 2015, 7:02:28 AM1/12/15
to Gabe Torres, opkg-...@googlegroups.com, Henning Spille
Nice work! Is it on GitHub already? :)
Reply all
Reply to author
Forward
0 new messages