Does a CentOS or Fedora repo exists?

Hello community,
Does anyone maintain an RPM or a repository to install urBackup on Centos 6.x systems?

EDIT: When installing from source on centos 6.4 the make install script outputs an error when creating the user urbackup.
The correct syntax is:

root@box urbackup-server-1.2.3.261]# adduser urbackup --system -U -d "/usr/local/var/urbackup"  

Thanks,
Palmeiro

As far as I know nobody is working on a RPM package.
There is a free build service which one could use to do that: https://build.opensuse.org/ (Can target CentOS and RHEL, as far as I can see).

Hmm, if I change that it won’t work on debian anymore.

Hi uroni,

I’ve changed the Makefile.am to create the user in this test system I’m building.
I’m now creating an InitScript to use the builtin commands to manage the service.

I’ll Check if I can make an Makefile.am for both Centos and Debian without breaking either of them… :)

Looking at:

Will report back…

Cheers,
Palmeiro

I have a working InitScript. (Shamelessly stolen from ntpd :))

What I’ve wHacked so far…
[list]

  1. Install EPEL repo (required for cryptopp > 7.20 and libcurl-devel)

  2. Download and extract sources

  3. Makefile.am -> line 26 - changed to
    adduser urbackup --system -U -d “$(DESTDIR)$(localstatedir)/urbackup” || true

    3.1 ./configure && make && make install

  4. Create/download the InitScript provided into /etc/init.d
    [/list:u:2g9g3e4w]

Create the file /etc/init.d/urbackup_srv with the following content:

#!/bin/bash
#
# chkconfig: - 93 29
# description: Starts and stops urBackup server. \
#              used to provide backup services to clients over the local network or the internet.  

### BEGIN INIT INFO
# Provides: urbackup
# Required-Start: $syslog $network $named $local_fs $remote_fs
# Required-Stop: $syslog $network $named $local_fs $remote_fs
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: start|stop|restart|try-restart|status|force-reload urbackup_srv
# Description: control urBackup server
### END INIT INFO  

# Source function library.
. /etc/init.d/functions  

# some varialbes to make the script easier to change
prog=$"urbackup_srv"
lockfile=/var/lock/subsys/$prog
exec=/usr/local/sbin/start_urbackup_server  

start() {
        [ "$EUID" != "0" ] && exit 4
        [ "$NETWORKING" = "no" ] && exit 1
        [ -x /usr/local/sbin/start_urbackup_server ] || exit 5  

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $exec $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}  

stop() {
        [ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}  


# See how we were called.
case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart|force-reload)
        stop
        sleep 3
        start
        ;;
  try-restart|condrestart)
        if [ -e ${lockfile} ]; then
            stop
            sleep 3
            start
        fi
        ;;
  status)
        status $prog
        RETVAL=$?
        ;;
  reload)
        exit 3
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|try-restart|status|force-reload}"
        exit 2
esac  

execute

chmod +x /etc/init.d/urbackup_srv
chkconfig --add urbackup_srv
chkconfig --level 345 urbackup_srv  

service urbackup_srv start  

This should get urBackup started and stopped in the standard CentOS way.

Will work on an RPM now. Can’t promise anything right now…

Cheers,
Palmeiro

ppalmeiro please can you help

i am trying to install the urbackup server source on a centos 6 server

i have followd your how to but when i do: " ./configure && make && make install " i get the following output

checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking for a thread-safe mkdir -p… /bin/mkdir -p
checking for gawk… gawk
checking whether make sets $(MAKE)… yes
checking for g++… no
checking for c++… no
checking for gpp… no
checking for aCC… no
checking for CC… no
checking for cxx… no
checking for cc++… no
checking for cl.exe… no
checking for FCC… no
checking for KCC… no
checking for RCC… no
checking for xlC_r… no
checking for xlC… no
checking whether the C++ compiler works… no
configure: error: in /tmp/urbackup-server-1.2.3.261': configure: error: C++ compiler cannot create executables See config.log’ for more details

any ideas why i cannot get the urbackup-server installed

any help greatly appreciated

I’m running centos6.4 and can’t seem to ./configure because the libcurl version is 7.19 and the configure looks for >7.2
How have you gotten past this hurdle. I’ve got epel, remi, remi-test repos enabled.

Note that you can build it without libcurl if you run configure with the “–without-mail” configure option.