]> git.proxmox.com Git - mirror_frr.git/commitdiff
snapcraft: Update bgpd to use newer rpki lib
authorMartin Winter <mwinter@opensourcerouting.org>
Thu, 7 Feb 2019 22:44:47 +0000 (14:44 -0800)
committerMartin Winter <mwinter@opensourcerouting.org>
Tue, 28 May 2019 23:23:27 +0000 (01:23 +0200)
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
snapcraft/scripts/bgpd-service
snapcraft/snapcraft.yaml.in

index 6c3a6f595955a913b54028ce5d90037e465b6037..64273d9f80cb83070941d7f4c3318d7b023d519c 100644 (file)
@@ -10,7 +10,7 @@ fi
 if ! [ -e $SNAP_DATA/rpki.conf ]; then
     echo "-M rpki" > $SNAP_DATA/rpki.conf
 fi
-EXTRA_OPTIONS="`cat $SNAP_DATA/rpki.conf`"
+EXTRA_OPTIONS="`$SNAP/bin/cat $SNAP_DATA/rpki.conf`"
 exec $SNAP/sbin/bgpd \
     -f $SNAP_DATA/bgpd.conf \
     --pid_file $SNAP_DATA/bgpd.pid \
index 5a92f9800591619572c72493a12fa04bd20a982a..a0222a86a4726a8c1bb66fd00e81096c8ab96928 100644 (file)
@@ -136,7 +136,7 @@ apps:
             - network-bind
             - network-control
     bgpd-debug:
-        command: sbin/bgpd -f $SNAP_DATA/bgpd.conf --pid_file $SNAP_DATA/bgpd.pid --socket $SNAP_DATA/zsock --vty_socket $SNAP_DATA --moduledir $SNAP/lib/frr/modules `cat $SNAP_DATA/rpki.conf 2> /dev/null`
+        command: sbin/bgpd -f $SNAP_DATA/bgpd.conf --pid_file $SNAP_DATA/bgpd.pid --socket $SNAP_DATA/zsock --vty_socket $SNAP_DATA --moduledir $SNAP/lib/frr/modules
         plugs:
             - network
             - network-bind
@@ -230,7 +230,7 @@ parts:
         stage-packages:
            - libssh-4
         prime:
-           - lib/x86_64-linux-gnu/librtr.so*
+           - lib/librtr.so*
            - usr/lib/x86_64-linux-gnu/libssh.so*
         source: https://github.com/rtrlib/rtrlib.git
         source-type: git