Welcome, Guest! Log In | Create Account

[HOW-TO] Build the latest development version from svn

Anything about nzbget and nzbgetweb.
Forum rules
This forum uses authorization system of sourceforge.net. You can login using your sourceforge name/password. This allows to subscribe to whole forum or individual topics, skip the typing of confirmation codes and activates other forum features available for registered users.

[HOW-TO] Build the latest development version from svn

Postby hugbug » 10 Dec 2008, 13:23

Few hints to help with svn.

  1. Get the latest version from subversion repository to your computer:
    Code: Select all
    svn co https://nzbget.svn.sourceforge.net/svnroot/nzbget/trunk nzbget-svn

    This command creates directory "nzbget-svn" in current directory. You can use any other name instead of "nzbget-svn".

  2. Change to new directory:
    Code: Select all
    cd nzbget-svn

  3. Update timestamps of two important files to prevent the unnecessary executing of autoconf and automake:
    Code: Select all
    touch configure
    touch Makefile.in

  4. Now you can configure and make as usual:
    Code: Select all
    ./configure
    make
Important:
Because of new features in newer versions of nzbget the file format for download queue may change. Newer nzbget-versions can read older formats and update queue to new format on next saving of queue. If you want to be able to downgrade to older versions with preserving of queue, you should make a backup of queue-directory.
Otherwise you'll get a message "could not load queue due version message" in an older nzbget-version. If don't have a backup, just ignore the message and add nzb-files to queue again. If option "DupeCheck" is enabled, the already existed files will be skipped automatically.
Last edited by hugbug on 27 Sep 2009, 17:21, edited 1 time in total.
Reason: removed sticky-flag, it's in wiki now
hugbug
Site Admin
 
Posts: 556
Joined: 09 Sep 2008, 11:58
Location: Germany (NRW)

Re: [HOW-TO] Build the latest development version from svn

Postby KaraokeStu » 01 Feb 2009, 23:50

Will this method overwrite the currently installed version of NZBGet that I have installed to /opt ?
KaraokeStu
 
Posts: 39
Joined: 17 Sep 2008, 20:01

Re: [HOW-TO] Build the latest development version from svn

Postby hugbug » 02 Feb 2009, 00:01

1. The post describes only how to compile. To install call "make install" or manually copy created binary.
2. The method works for native compiling. Cross-compiling requires additional steps, which depend on target platform.
hugbug
Site Admin
 
Posts: 556
Joined: 09 Sep 2008, 11:58
Location: Germany (NRW)

Re: [HOW-TO] Build the latest development version from svn

Postby KaraokeStu » 02 Feb 2009, 00:12

To get it installed to /opt, you'll need to do the following:

From your nzbget-svn directory:
Code: Select all
make install
rm /opt/bin/nzbget
mv /usr/local/bin/nzbget /opt/bin


This works fine on a Linkstation Pro running Debian (Lenny)
KaraokeStu
 
Posts: 39
Joined: 17 Sep 2008, 20:01

Re: [HOW-TO] Build the latest development version from svn

Postby KaraokeStu » 15 Feb 2009, 21:38

Created an update script!

Call the file "upgrade" and put it in your nzbget-svn directory, then give it execute permissions

If your nzbget is installed in /opt/bin:
Code: Select all
#! /bin/sh
nzbget -Q
svn update
touch configure
touch Makefile.in
./configure
make install
rm /opt/bin/nzbget
mv /usr/local/bin/nzbget /opt/bin
nzbget -D


If your nzbget is installed in /usr/local/bin:
Code: Select all
#! /bin/sh
nzbget -Q
svn update
touch configure
touch Makefile.in
./configure
make install
nzbget -D


To run, go into your nzbget-svn directory and type:

Code: Select all
./upgrade
KaraokeStu
 
Posts: 39
Joined: 17 Sep 2008, 20:01


Return to General discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron