[OpenWrt-Devel] How to download 3rd party package from git in OpenWrt

Pratik Prajapati pratik.prajapati12 at gmail.com
Tue Jul 14 03:31:45 EDT 2015


 I was able to download radvd-2.11 using your changes. I was just worrying
about those git logs.

Thanks.

On Tue, Jul 14, 2015 at 12:28 PM, Yousong Zhou <yszhou4tech at gmail.com>
wrote:

> On 14 July 2015 at 14:32, Pratik Prajapati <pratik.prajapati12 at gmail.com>
> wrote:
> > It worked but still i got some logs but don't know i should worry about
> it
> > or not.
> >
>
> They were output from git.  You can check if there is a
> radvd-2.11-xxxx.yyy file available in your dl/ directory.
>
>                 yousong
>
> > logs:
> >
> > Checking out files from the git repository...
> > Cloning into 'radvd-2.11'...
> > remote: Counting objects: 3603, done.
> > remote: Total 3603 (delta 0), reused 0 (delta 0), pack-reused 3603
> > Receiving objects: 100% (3603/3603), 1.64 MiB | 591.00 KiB/s, done.
> > Resolving deltas: 100% (2324/2324), done.
> > Checking connectivity... done.
> > Note: checking out 'e3e2b38a0433f680a75dadb394692edec3ea66e3'.
> >
> > You are in 'detached HEAD' state. You can look around, make experimental
> > changes and commit them, and you can discard any commits you make in this
> > state without impacting any branches by performing another checkout.
> >
> > If you want to create a new branch to retain commits you create, you may
> > do so (now or later) by using -b with the checkout command again.
> Example:
> >
> >   git checkout -b new_branch_name
> >
> > HEAD is now at e3e2b38... Makefile.am: add --with-check to packages
> target
> >
> >
> > On Mon, Jul 13, 2015 at 8:05 PM, Yousong Zhou <yszhou4tech at gmail.com>
> wrote:
> >>
> >>
> >> On Jul 13, 2015 6:53 PM, "Pratik Prajapati" <
> pratik.prajapati12 at gmail.com>
> >> wrote:
> >> >
> >> > Hi,
> >> >
> >> > I want to build radvd-2.11 package in OpenWrt but i am unable to
> >> > download it using Makefile rules.
> >> >
> >> > Makefile:
> >> >
> >> > include $(TOPDIR)/rules.mk
> >> >
> >> > PKG_NAME:=radvd
> >> > PKG_VERSION:=2.11
> >> > PKG_SOURCE_PROTO:=git
> >> >
> >> > PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
> >> > PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip
> >>
> >> try changing the suffix to .tar.gz
> >>
> >> > PKG_SOURCE_URL:=https://github.com/reubenhwk/radvd.git
> >> > PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
> >> > PKG_SOURCE_VERSION:=e3e2b38a0433f680a75dadb394692edec3ea66e3
> >> > PKG_CAT:=unzip
> >>
> >> and remove this line
> >>
> >> > PKG_FIXUP:=autoreconf
> >> >
> >> > include $(INCLUDE_DIR)/package.mk
> >> > .
> >> > .
> >> > .
> >> >
> >> > Cmd: make ./package/radvd-2.11/compile V=s
> >> >
> >> > Cloning into 'radvd-2.11'...
> >> > remote: Counting objects: 3603, done.
> >> > remote: Total 3603 (delta 0), reused 0 (delta 0), pack-reused 3603
> >> > Receiving objects: 100% (3603/3603), 1.64 MiB | 712.00 KiB/s, done.
> >> > Resolving deltas: 100% (2324/2324), done.
> >> > Checking connectivity... done.
> >> > Note: checking out 'e3e2b38a0433f680a75dadb394692edec3ea66e3'.
> >> >
> >> > You are in 'detached HEAD' state. You can look around, make
> experimental
> >> > changes and commit them, and you can discard any commits you make in
> >> > this
> >> > state without impacting any branches by performing another checkout.
> >> >
> >> > If you want to create a new branch to retain commits you create, you
> may
> >> > do so (now or later) by using -b with the checkout command again.
> >> > Example:
> >> >
> >> >   git checkout -b new_branch_name
> >> >
> >> > HEAD is now at e3e2b38... Makefile.am: add --with-check to packages
> >> > target
> >> > Packing checkout...
> >> > ERROR: Unknown pack format for file
> >> >
> /home/pratik.prajapati/work/openwrt-radvd/openwrt-tip/openwrt/tmp/dl/radvd-2.11.zip
> >> >
> >>
> >> looks like git archive cannot do zip packing.
> >>
> >> cheers
> >>
> >>                 yousong
> >>
> >> >
> >> > I am not able to download radvd-2.11 using my makefile. What part I am
> >> > missing in Makefile ?
> >> >
> >> > _______________________________________________
> >> > openwrt-devel mailing list
> >> > openwrt-devel at lists.openwrt.org
> >> > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> >> >
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20150714/7e0090bc/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list