]> git.puffer.fish Git - mirror/frr.git/log
mirror/frr.git
6 years agowatchfrr: build in defaults for -r/-s/-k 3629/head
David Lamparter [Thu, 24 Jan 2019 17:17:40 +0000 (18:17 +0100)]
watchfrr: build in defaults for -r/-s/-k

There's no good reason to not have these options default to the
installation path of tools/watchfrr.sh.  Doing so allows us to ditch
watchfrr_options from daemons/daemons.conf completely.

Fixes: #3652
Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebian: remove superseded systemd lintian override
David Lamparter [Tue, 19 Feb 2019 13:32:08 +0000 (14:32 +0100)]
debian: remove superseded systemd lintian override

This was fixed in f351f5f971e2a37c74e1c966532376177ba920ec.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebian: update libyang dependency to >= 0.16.74
David Lamparter [Tue, 19 Feb 2019 13:24:25 +0000 (14:24 +0100)]
debian: update libyang dependency to >= 0.16.74

We're using builtin extension loading, so we need libyang 0.16.74.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agoMerge remote-tracking branch 'frr/dev/7.0' into 7.0-kill-backports
David Lamparter [Tue, 19 Feb 2019 13:22:59 +0000 (14:22 +0100)]
Merge remote-tracking branch 'frr/dev/7.0' into 7.0-kill-backports

6 years agodebian: fix autopkgtest
David Lamparter [Tue, 19 Feb 2019 13:15:19 +0000 (14:15 +0100)]
debian: fix autopkgtest

pgrep is in procps, which is an essential package.  killall is in
psmisc, which isn't.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebian: add missing Conflicts:
David Lamparter [Mon, 4 Feb 2019 19:16:34 +0000 (20:16 +0100)]
debian: add missing Conflicts:

We were missing several Conflicts: (or Breaks:) lines.  Specifically,
- the .png diagrams in frr-doc conflict with quagga-doc
- the quagga package was split up and we conflict on each on the
  daemon's man pages
- pimd also conflicts on the man page.

This is a "conservative" fix for the time being, putting everything into
Conflicts:.  Some of these might have other options to fix them (e.g.
renaming the diagrams or man pages) but that needs more thought and
isn't appropriate for a simple fix.

There is also the "layer 9" consideration of whether to add "Replaces:
quagga" lines.  For the time being I'd say it's a bit early to have that
discussion.

Reported-by: Andreas Beckmann <anbe@debian.org>
References: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=921376
Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebian: remove bogus libjson0 dependency
David Lamparter [Mon, 4 Feb 2019 03:52:16 +0000 (04:52 +0100)]
debian: remove bogus libjson0 dependency

Dependencies for the actual library packages are autogenerated by shlib
handling.  Removing the bogus line should hopefully get this to build
on Debian buildd...

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebian: extend comments on pre/postinst hooks
David Lamparter [Sun, 27 Jan 2019 16:24:36 +0000 (17:24 +0100)]
debian: extend comments on pre/postinst hooks

While originally created to support upgrading within non-official
previous FRR packages, the same logic makes upgrading from Quagga
configs more straightforward.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agoMerge pull request #3824 from opensourcerouting/isis-fix-3533
Donald Sharp [Tue, 19 Feb 2019 00:28:23 +0000 (19:28 -0500)]
Merge pull request #3824 from opensourcerouting/isis-fix-3533

[7.0] isisd: skip over deleted fragments

6 years agoisisd: skip over deleted fragments 3824/head
David Lamparter [Mon, 18 Feb 2019 20:34:06 +0000 (21:34 +0100)]
isisd: skip over deleted fragments

Since LSP fragments are also on our lspdb dict, lsp_tick() needs to skip
over them after calling lsp_destroy().  Otherwise it ends up accessing
free'd memory.

Fixes: #3533
Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agoMerge pull request #3784 from qlyoung/fix-aspath-prepend-heap-uaf-7.0
Renato Westphal [Wed, 13 Feb 2019 14:09:38 +0000 (12:09 -0200)]
Merge pull request #3784 from qlyoung/fix-aspath-prepend-heap-uaf-7.0

[7.0] bgpd: fix as-path prepend heap uaf

6 years agobgpd: fix as-path prepend heap uaf 3784/head
Quentin Young [Tue, 29 Jan 2019 16:13:39 +0000 (16:13 +0000)]
bgpd: fix as-path prepend heap uaf

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agoMerge pull request #3716 from qlyoung/fix-systemd-deps-7.0
David Lamparter [Mon, 11 Feb 2019 06:50:25 +0000 (07:50 +0100)]
Merge pull request #3716 from qlyoung/fix-systemd-deps-7.0

[7.0] tools: fix systemd dependency graph

6 years agoMerge pull request #3763 from opensourcerouting/snap-7.0
Donald Sharp [Sat, 9 Feb 2019 13:03:22 +0000 (08:03 -0500)]
Merge pull request #3763 from opensourcerouting/snap-7.0

[7.0] Snap Package Update for 7.0

6 years agoMerge pull request #3757 from manuhalo/log_hook_7.0
Renato Westphal [Sat, 9 Feb 2019 01:54:47 +0000 (23:54 -0200)]
Merge pull request #3757 from manuhalo/log_hook_7.0

[7.0] lib: add hooks for external logging function

6 years agosnapcraft: Add FabricD to Snap package 3763/head
Martin Winter [Thu, 7 Feb 2019 23:12:14 +0000 (15:12 -0800)]
snapcraft: Add FabricD to Snap package

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
6 years agosnapcraft: Update bgpd to use newer rpki lib
Martin Winter [Thu, 7 Feb 2019 22:44:47 +0000 (14:44 -0800)]
snapcraft: Update bgpd to use newer rpki lib

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
6 years agosnapcraft: Add missing staticd.conf.default
Martin Winter [Thu, 7 Feb 2019 15:07:25 +0000 (07:07 -0800)]
snapcraft: Add missing staticd.conf.default

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
6 years agosnapcraft: Add libyang to snap package
Martin Winter [Thu, 17 Jan 2019 19:02:04 +0000 (11:02 -0800)]
snapcraft: Add libyang to snap package

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
6 years agosnapcraft: Don't stage libc6
Martin Winter [Thu, 17 Jan 2019 19:01:05 +0000 (11:01 -0800)]
snapcraft: Don't stage libc6

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
6 years agosnapcraft: Update RTRLIB to 0.6.3
Martin Winter [Thu, 17 Jan 2019 16:32:47 +0000 (08:32 -0800)]
snapcraft: Update RTRLIB to 0.6.3

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
6 years agoMerge pull request #3663 from opensourcerouting/7.0/yang-embed-extensions
Donald Sharp [Fri, 8 Feb 2019 21:21:53 +0000 (16:21 -0500)]
Merge pull request #3663 from opensourcerouting/7.0/yang-embed-extensions

[7.0] yang: embed extensions

6 years agolib: add hooks for external logging function 3757/head
Emanuele Di Pascale [Fri, 25 Jan 2019 13:40:27 +0000 (14:40 +0100)]
lib: add hooks for external logging function

Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
6 years agoMerge pull request #3750 from opensourcerouting/7.0/rpki-fixes
Donald Sharp [Thu, 7 Feb 2019 22:24:22 +0000 (17:24 -0500)]
Merge pull request #3750 from opensourcerouting/7.0/rpki-fixes

[7.0] RPKI fixes

6 years agobgpd: fix crash when trying to remove non-existing rpki cache 3750/head
Marcel Röthke [Thu, 7 Feb 2019 16:16:19 +0000 (17:16 +0100)]
bgpd: fix crash when trying to remove non-existing rpki cache

Signed-off-by: Marcel Röthke <marcel.roethke@haw-hamburg.de>
6 years agobgpd: fix "show rpki cache-server" for ssh caches
Marcel Röthke [Thu, 7 Feb 2019 16:12:16 +0000 (17:12 +0100)]
bgpd: fix "show rpki cache-server" for ssh caches

Fix #3662

Signed-off-by: Marcel Röthke <marcel.roethke@haw-hamburg.de>
6 years agobgpd: make valgrind suppression more generic 3663/head
David Lamparter [Thu, 7 Feb 2019 15:25:33 +0000 (16:25 +0100)]
bgpd: make valgrind suppression more generic

No point in restriction the suppression that far down the call stack.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agotools: fix systemd dependency graph 3716/head
Quentin Young [Wed, 6 Feb 2019 19:40:55 +0000 (19:40 +0000)]
tools: fix systemd dependency graph

Currently our systemd dependencies look something like this (example
from vanilla Debian 9):

$ systemctl list-dependencies frr
frr.service
● ├─system.slice
● └─sysinit.target
  ...

$ systemctl list-dependencies --reverse frr
frr.service
● └─network-online.target
●   └─apt-daily.service

Note that sysinit.target does not depend on any network* service or
target.

In other words, unless there is a service that requires
network-online.service, even if FRR is enabled it will not be started.
Therefore network-online.target is the wrong unit to have in WantedBy=,
as it is not always started.

This patch updates our service file so that it is properly started by
the system when enabled, delayed until networking is up, and if possible
delayed until after NetworkManager, systemd-networkd or any other
networking configuration manager has finished performing its tasks -
i.e. after network-online.target.

After these changes our new dependency graph looks like this:

$ systemctl list-dependencies frr
frr.service
● ├─system.slice
● │ └─networking.service
● ├─network.target
● └─sysinit.target
  ...

$ systemctl list-dependencies --reverse frr
frr.service
● └─multi-user.target
●   └─graphical.target

This way, FRR will be started by multi-user.target (just like most
applications), but delayed until after networking has been configured.

In the same stroke, this should also fix issues on systems that do not
provide "networking.service" (such as CentOS 7).

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agolib: yang: use common yang_ctx_new_setup()
David Lamparter [Mon, 4 Feb 2019 21:56:50 +0000 (22:56 +0100)]
lib: yang: use common yang_ctx_new_setup()

After creating a libyang context, we need to hook up our callback to use
embedded built-in modules.  I hadn't added this to the yang translator
code.

Also, ly_ctx_new fails if the search directory doesn't exist.  Since
that's not a hard error for us, work around that and ignore inaccessible
YANG_MODELS_DIR.  (This is needed for snap packages.)

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agoMerge pull request #3708 from pguibert6WIND/detach_vrf_labels_del_bgp_70
Donald Sharp [Thu, 31 Jan 2019 00:36:39 +0000 (19:36 -0500)]
Merge pull request #3708 from pguibert6WIND/detach_vrf_labels_del_bgp_70

[7.0] bgpd: detach vrf labels allocated, when removing bgp instance

6 years agobuild: fix a whole bunch of *FLAGS
David Lamparter [Wed, 30 Jan 2019 17:11:54 +0000 (18:11 +0100)]
build: fix a whole bunch of *FLAGS

- some target_CFLAGS that needed to include AM_CFLAGS didn't do so
- libyang/sysrepo/sqlite3/confd CFLAGS + LIBS weren't used at all
- consistently use $(FOO_CFLAGS) instead of @FOO_CFLAGS@
- 2 dependencies were missing for clippy

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agobuild, lib/yang: bake in extensions if possible
David Lamparter [Fri, 30 Nov 2018 20:42:25 +0000 (21:42 +0100)]
build, lib/yang: bake in extensions if possible

Starting with libyang 0.16.74, we can load internally embedded yang
extensions instead of going through the file system/dlopen.  Detect
support for this at build time and use if available.

NB: the fallback mechanism will go away in a short while.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agobgpd: detach vrf labels allocated, when removing bgp instance 3708/head
Philippe Guibert [Mon, 28 Jan 2019 16:54:50 +0000 (17:54 +0100)]
bgpd: detach vrf labels allocated, when removing bgp instance

bgp instance is disabling the label allocated to reach vrf entity.
previously, only vrf disabling was removing the label. now, when bgp
leaves, bgp instance also frees the label used.

PR=62306
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Acked-by: Julien Floret <julien.floret@6wind.com>
6 years agoMerge pull request #3683 from opensourcerouting/70-ospf6-fix-mcast
Donald Sharp [Tue, 29 Jan 2019 16:03:49 +0000 (11:03 -0500)]
Merge pull request #3683 from opensourcerouting/70-ospf6-fix-mcast

7.0: ospf6d: fix multicast join race on FreeBSD

6 years agoospf6d: fix FreeBSD IPv6 multicast group join race 3683/head
Rafael Zalamena [Sat, 26 Jan 2019 15:49:35 +0000 (13:49 -0200)]
ospf6d: fix FreeBSD IPv6 multicast group join race

Avoid a IPv6 multicast group join race by delaying the group install
before processing all event queue.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
(cherry picked from commit bc482dc0caeed76505623426edf58c6de48f013e)

6 years agoospf6d: keep track of the socket set thread
Rafael Zalamena [Wed, 23 Jan 2019 12:25:30 +0000 (10:25 -0200)]
ospf6d: keep track of the socket set thread

When using the timer to set the socket multicast options, keep track
of the thread pointer. If we lose the thread reference we might have
situations where multicast is enabled when it should be disabled and
vice versa.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
(cherry picked from commit f80003b0e12a090b34e2ab9547ed072ff02c33ba)

6 years agoospf6d: don't queue interface events
Rafael Zalamena [Wed, 23 Jan 2019 12:06:49 +0000 (10:06 -0200)]
ospf6d: don't queue interface events

Apply interface event as soon as possible instead of queueing an event
for it.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
(cherry picked from commit 849576ee962518c926c6a264a497e873210941e8)

6 years agoMerge pull request #3667 from opensourcerouting/7.0/fix-file-and-syslog
Quentin Young [Thu, 24 Jan 2019 22:10:38 +0000 (17:10 -0500)]
Merge pull request #3667 from opensourcerouting/7.0/fix-file-and-syslog

[7.0] fix "log file" + "log syslog"

6 years agolib: don't disable "log file" on "log syslog" 3667/head
David Lamparter [Thu, 24 Jan 2019 17:59:03 +0000 (18:59 +0100)]
lib: don't disable "log file" on "log syslog"

FRR log targets are independent, so "log syslog" must not disable
"log file" output.

Fixes: #3551
Fixes: 0204baa87630b210c71d9ae0e2569cff0fb0539b
Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agoMerge pull request #3645 from opensourcerouting/ldpd-pdu-length-fix-7.0
Donald Sharp [Wed, 23 Jan 2019 01:08:48 +0000 (20:08 -0500)]
Merge pull request #3645 from opensourcerouting/ldpd-pdu-length-fix-7.0

[7.0] ldpd: fix corner case in which we wouldn't respect the max pdu length

6 years agoldpd: fix corner case in which we wouldn't respect the max pdu length 3645/head
Renato Westphal [Tue, 22 Jan 2019 19:50:33 +0000 (17:50 -0200)]
ldpd: fix corner case in which we wouldn't respect the max pdu length

The calculation to know when an LDP PDU went past the maximum
negotiated PDU length was wrong because it wasn't taking the
"Version" and "PDU Length" fields into account (total of four
bytes). Fix this.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
6 years agoMerge pull request #3628 from manuhalo/fix_ospf_vl_del_7.0
Donald Sharp [Tue, 22 Jan 2019 14:08:35 +0000 (09:08 -0500)]
Merge pull request #3628 from manuhalo/fix_ospf_vl_del_7.0

[7.0] ospfd: fix no virtual-link cmd

6 years agoMerge pull request #3637 from opensourcerouting/70-fbsd-route-fix
Donald Sharp [Tue, 22 Jan 2019 14:05:50 +0000 (09:05 -0500)]
Merge pull request #3637 from opensourcerouting/70-fbsd-route-fix

7.0: zebra: fix a few problems with routing socket

6 years agozebra: make routing socket debug user friendlier 3637/head
Rafael Zalamena [Thu, 17 Jan 2019 22:24:31 +0000 (20:24 -0200)]
zebra: make routing socket debug user friendlier

Implement a addrs RTA to string translator to provide more useful
debug output.

Example:

ifam_read_mesg: ifindex 2, ifname em1, ifam_addrs NETMASK,IFP,IFA
  ifam_flags 0x4, addr 2001:db8:1::1/64 broad (unspec) dst (unspec)
  gateway (unspec)

Instead of:

ifam_read_mesg: ifindex 2, ifname em1, ifam_addrs 0x34
  ifam_flags 0x4, addr 2001:db8:1::1/64 broad (unspec) dst (unspec)
  gateway (unspec)

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
6 years agozebra: fix debug messages in ifam_read_mesg
Rafael Zalamena [Thu, 17 Jan 2019 16:37:53 +0000 (14:37 -0200)]
zebra: fix debug messages in ifam_read_mesg

Use the proper address family to convert binary address to string.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
6 years agozebra: fix debug prefix string size
Rafael Zalamena [Thu, 17 Jan 2019 15:15:20 +0000 (13:15 -0200)]
zebra: fix debug prefix string size

`gate_buf` should be big enough to hold IPv6 addresses and `inet_ntop`
should be run in the correct `sockaddr` struct member.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
6 years agozebra: fix debug messages with prefixes
Rafael Zalamena [Thu, 17 Jan 2019 15:12:13 +0000 (13:12 -0200)]
zebra: fix debug messages with prefixes

Debug messages should use `prefix_buf` and `prefix2str` should only be
called once in `kernel_rtm`.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
6 years agozebra: use rta_getattr for NETMASK
Rafael Zalamena [Fri, 18 Jan 2019 20:28:58 +0000 (18:28 -0200)]
zebra: use rta_getattr for NETMASK

IPv6 uses AF_LINK to represent netmasks, this commit unbreaks
`rtm_read_mesg` that was broke on the `rta_get*` refactory.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
6 years agozebra: fix routing socket AF_LINK handling on NETMASK
Rafael Zalamena [Thu, 17 Jan 2019 22:46:11 +0000 (20:46 -0200)]
zebra: fix routing socket AF_LINK handling on NETMASK

IPv6 netmasks use AF_LINK family type and puts the correct amount of
set bits in the data structure. If we only copy the SDL header we
won't get all IPv6 address length, we must copy the whole extension of
the `sockaddr_in6` struct (which is provided in `destlen` parameter).

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
6 years agozebra: remove unused functions
Rafael Zalamena [Thu, 17 Jan 2019 15:19:30 +0000 (13:19 -0200)]
zebra: remove unused functions

Remove two unused functions in `zebra/rt_socket.c`.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
6 years agozebra: use proper sockaddr size in kernel_rtm
Rafael Zalamena [Thu, 17 Jan 2019 13:09:09 +0000 (11:09 -0200)]
zebra: use proper sockaddr size in kernel_rtm

`sockaddr` `len` field is the address type size and not the mask length.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
6 years agoMerge pull request #3615 from pguibert6WIND/priorise_default_vrf_configured_v70
Renato Westphal [Fri, 18 Jan 2019 21:42:10 +0000 (19:42 -0200)]
Merge pull request #3615 from pguibert6WIND/priorise_default_vrf_configured_v70

Priorise default vrf configured

6 years agotools/tarsource.sh: deal with AC_INIT []
David Lamparter [Fri, 18 Jan 2019 14:41:30 +0000 (15:41 +0100)]
tools/tarsource.sh: deal with AC_INIT []

configure.ac got cleaned up, now there's [] around the version number.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agotools/tarsource.sh: support FRR as a git submodule
David Lamparter [Fri, 18 Jan 2019 14:14:46 +0000 (15:14 +0100)]
tools/tarsource.sh: support FRR as a git submodule

a git submodule will have .git as a file instead of a directory... which
breaks tarsource.sh.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebian: add libyang-dev dependency
David Lamparter [Fri, 18 Jan 2019 14:37:19 +0000 (15:37 +0100)]
debian: add libyang-dev dependency

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebian: Don't create homdirectory for frr user
Martin Winter [Fri, 21 Dec 2018 19:06:25 +0000 (11:06 -0800)]
debian: Don't create homdirectory for frr user

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
6 years agodoc: Fix path and order in debian package build doc
Martin Winter [Fri, 21 Dec 2018 16:30:48 +0000 (08:30 -0800)]
doc: Fix path and order in debian package build doc

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
6 years agodebian/control: add python3-dev dependency
David Lamparter [Fri, 21 Dec 2018 16:02:54 +0000 (17:02 +0100)]
debian/control: add python3-dev dependency

Just forgot to list this one.  libpython3 is not enough.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agotools: don't watch nonexistent daemons
David Lamparter [Fri, 21 Dec 2018 16:00:42 +0000 (17:00 +0100)]
tools: don't watch nonexistent daemons

If we try to monitor a nonexisting daemon in watchfrr, it will
(currently) forever wait at startup since the vty connection will never
come up.  Just drop the daemon from the daemon list in such a case.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agowatchfrr: don't wait forever at startup
David Lamparter [Fri, 21 Dec 2018 16:26:25 +0000 (17:26 +0100)]
watchfrr: don't wait forever at startup

If we wait forever for all daemons to come up, we can hang the entire
boot process, especially on init.d based systems.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebian: fix dropping daemons.conf
David Lamparter [Tue, 18 Dec 2018 01:21:18 +0000 (02:21 +0100)]
debian: fix dropping daemons.conf

Need to apply some manual control here, so remove it from frr.install
and just do it in rules.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebian: rework autopkgtests
David Lamparter [Mon, 17 Dec 2018 17:55:31 +0000 (18:55 +0100)]
debian: rework autopkgtests

Ditch the old non-working one and add 3 new ones to check:
- that zebra can talk to the kernel at least somewhat
- that SNMP and RPKI modules can be loaded
- that frr-reload.py works

This should catch most build environment SNAFUs.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agotools/tarsource.sh: keep version info on non-git
David Lamparter [Mon, 17 Dec 2018 00:02:51 +0000 (01:02 +0100)]
tools/tarsource.sh: keep version info on non-git

extraver won't have any useful value on a non-git run.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agotools: update build-debian-package.sh
David Lamparter [Fri, 14 Dec 2018 21:51:37 +0000 (22:51 +0100)]
tools: update build-debian-package.sh

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebian: keep working nicely with split config
David Lamparter [Fri, 14 Dec 2018 21:43:39 +0000 (22:43 +0100)]
debian: keep working nicely with split config

Drop our configs that say integrated config when there is some
pre-existing split config.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebian: chop down & rework maintainer scripts
David Lamparter [Tue, 11 Dec 2018 16:02:20 +0000 (17:02 +0100)]
debian: chop down & rework maintainer scripts

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebian: add python3-pytest build dependency
David Lamparter [Fri, 14 Dec 2018 16:09:15 +0000 (17:09 +0100)]
debian: add python3-pytest build dependency

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agotools/tarsource.sh: fix GZIP_ENV
David Lamparter [Fri, 14 Dec 2018 15:59:51 +0000 (16:59 +0100)]
tools/tarsource.sh: fix GZIP_ENV

Some older versions of Automake don't escape this properly.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebian: drop unused lintian overrides
David Lamparter [Fri, 14 Dec 2018 15:40:30 +0000 (16:40 +0100)]
debian: drop unused lintian overrides

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebian: full & proper copyright file
David Lamparter [Fri, 14 Dec 2018 13:58:10 +0000 (14:58 +0100)]
debian: full & proper copyright file

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebian: flag as "no stop on upgrade"
David Lamparter [Thu, 13 Dec 2018 17:50:15 +0000 (18:50 +0100)]
debian: flag as "no stop on upgrade"

We don't want to break some user's internet routing that they're using
for their ssh login while upgrading...

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodoc/developer: document new Debian packaging
David Lamparter [Thu, 25 Oct 2018 20:28:49 +0000 (22:28 +0200)]
doc/developer: document new Debian packaging

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebian: don't install ssd & daemons.conf
David Lamparter [Wed, 12 Dec 2018 21:50:56 +0000 (22:50 +0100)]
debian: don't install ssd & daemons.conf

ssd is unused and duplicates a system tool.  daemons.conf is deprecated.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebian: cleanly split off from dist tarball
David Lamparter [Fri, 14 Dec 2018 15:08:25 +0000 (16:08 +0100)]
debian: cleanly split off from dist tarball

The debian/ directory is distributed separately for tarballs in 3.0
(quilt) format.  Including it in the dist tarball causes problems with
automake when the separately distributed debian directory is unpacked on
top of the dist tarball;  the clean and correct thing to do here is to
not include the debian/ directory in dist tarballs.

Users have two choices for building FRR Debian packages:
- build straight off git
- build from a "frr.tar" + "frr-debian.tar"

The tarsource.sh tool does the right thing when invoked with the -D
("Debian") option.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agotools/tarsource.sh: create debian changelog
David Lamparter [Mon, 10 Dec 2018 23:18:12 +0000 (00:18 +0100)]
tools/tarsource.sh: create debian changelog

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebian: fix up for new initscripts
David Lamparter [Mon, 10 Dec 2018 23:03:17 +0000 (00:03 +0100)]
debian: fix up for new initscripts

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebian: clean up debian/ directory for git build
David Lamparter [Mon, 10 Dec 2018 21:46:55 +0000 (22:46 +0100)]
debian: clean up debian/ directory for git build

Running `dpkg-buildpackage` with source-format "git" complains about
newly created files under debian/.  Remove the build-created frr.init &
frr.service to avoid the build erroring out due to this.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodoc: drop deprecated Ubuntu 12.04 docs
David Lamparter [Wed, 12 Dec 2018 00:32:17 +0000 (01:32 +0100)]
doc: drop deprecated Ubuntu 12.04 docs

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebian: make package "official"
David Lamparter [Mon, 10 Dec 2018 21:34:49 +0000 (22:34 +0100)]
debian: make package "official"

Move us into place in debian/

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebian: move changelog out of the way
David Lamparter [Fri, 7 Dec 2018 21:33:57 +0000 (22:33 +0100)]
debian: move changelog out of the way

The official Debian package will have a manually maintained changelog in
place of the symlink.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebianpkg: fill in changelog proper
David Lamparter [Thu, 25 Oct 2018 14:56:09 +0000 (16:56 +0200)]
debianpkg: fill in changelog proper

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebianpkg: restrict to linux-any
David Lamparter [Mon, 10 Dec 2018 20:53:23 +0000 (21:53 +0100)]
debianpkg: restrict to linux-any

We don't support GNU/Hurd, and we haven't tested Debian kFreeBSD.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebianpkg: enable FPM (w/o protobuf)
David Lamparter [Mon, 10 Dec 2018 21:17:01 +0000 (22:17 +0100)]
debianpkg: enable FPM (w/o protobuf)

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebianpkg: enable rtrlib by default
David Lamparter [Mon, 10 Dec 2018 21:15:22 +0000 (22:15 +0100)]
debianpkg: enable rtrlib by default

librtr is in Debian unstable now, so this should default on.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebianpkg: cut down unneeded bits
David Lamparter [Mon, 29 Oct 2018 17:56:30 +0000 (18:56 +0100)]
debianpkg: cut down unneeded bits

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebianpkg: install libraries to /usr/lib64/frr
David Lamparter [Sun, 28 Oct 2018 17:54:14 +0000 (18:54 +0100)]
debianpkg: install libraries to /usr/lib64/frr

This makes them "private libraries" (which they are, since we don't
maintain a proper versioned ABI on libfrr.)  This also properly fixes
another few lintian warnings.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebianpkg: fix remaining lintian warnings
David Lamparter [Sun, 28 Oct 2018 16:53:36 +0000 (17:53 +0100)]
debianpkg: fix remaining lintian warnings

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebianpkg: include docs and register with doc-base
David Lamparter [Sun, 28 Oct 2018 15:58:24 +0000 (16:58 +0100)]
debianpkg: include docs and register with doc-base

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebianpkg: rewrite description texts
David Lamparter [Sun, 28 Oct 2018 16:42:28 +0000 (17:42 +0100)]
debianpkg: rewrite description texts

...to actually document what is in each of the subpackages.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebianpkg: update copyright file
David Lamparter [Sun, 28 Oct 2018 01:14:10 +0000 (02:14 +0100)]
debianpkg: update copyright file

Extracted from git history with a bit of polish applied.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebianpkg: update debhelper dependency
David Lamparter [Fri, 26 Oct 2018 12:30:54 +0000 (14:30 +0200)]
debianpkg: update debhelper dependency

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebianpkg: add & document lintian overrides
David Lamparter [Thu, 25 Oct 2018 18:44:42 +0000 (20:44 +0200)]
debianpkg: add & document lintian overrides

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebianpkg: make URLs https
David Lamparter [Thu, 25 Oct 2018 18:33:51 +0000 (20:33 +0200)]
debianpkg: make URLs https

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebianpkg: fix whitespace
David Lamparter [Thu, 25 Oct 2018 17:44:00 +0000 (19:44 +0200)]
debianpkg: fix whitespace

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebianpkg: drop superfluous control entries
David Lamparter [Thu, 25 Oct 2018 17:41:21 +0000 (19:41 +0200)]
debianpkg: drop superfluous control entries

Some header lines are duplicate and unneccessary, and the entire frr-dbg
package doesn't need an entry in control (it's autogenerated.)

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebianpkg: update maintainer
David Lamparter [Thu, 25 Oct 2018 17:39:32 +0000 (19:39 +0200)]
debianpkg: update maintainer

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebianpkg: use set -e in maintscripts
David Lamparter [Thu, 25 Oct 2018 17:34:05 +0000 (19:34 +0200)]
debianpkg: use set -e in maintscripts

Fixes maintainer-script-without-set-e Lintian warning.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebianpkg: add -0 to version
David Lamparter [Tue, 23 Oct 2018 11:55:36 +0000 (13:55 +0200)]
debianpkg: add -0 to version

We need a -something suffix since otherwise part of our version number
(e.g. -dev or -DATE) will get taken as Debian sub-version.  (Everything
after the last -)

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebianpkg: add watch file
David Lamparter [Thu, 25 Oct 2018 16:22:14 +0000 (18:22 +0200)]
debianpkg: add watch file

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodebianpkg: change frr-pythontools dep to python3
David Lamparter [Thu, 25 Oct 2018 16:17:23 +0000 (18:17 +0200)]
debianpkg: change frr-pythontools dep to python3

The shebang can't be both at the same time;  since python2 is going to
be removed from Debian soon let's just stick with python3.

Signed-off-by: David Lamparter <equinox@diac24.net>