mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 13:46:45 +00:00
Merge pull request #424 from opensourcerouting/snap-fix-distfile
More snapcraft cleanups
This commit is contained in:
commit
de290a3f57
@ -1,25 +1,8 @@
|
|||||||
EXTRA_DIST = snapcraft.yaml \
|
EXTRA_DIST = snapcraft.yaml \
|
||||||
README.snap_build.md \
|
README.snap_build.md \
|
||||||
README.usage.md \
|
README.usage.md \
|
||||||
scripts/Makefile \
|
extra_version_info.txt \
|
||||||
scripts/bgpd-service \
|
scripts \
|
||||||
scripts/isisd-service \
|
defaults \
|
||||||
scripts/ldpd-service \
|
|
||||||
scripts/ospf6d-service \
|
|
||||||
scripts/ospfd-service \
|
|
||||||
scripts/pimd-service \
|
|
||||||
scripts/ripd-service \
|
|
||||||
scripts/ripngd-service \
|
|
||||||
scripts/zebra-service \
|
|
||||||
defaults/bgpd.conf.default \
|
|
||||||
defaults/isisd.conf.default \
|
|
||||||
defaults/ldpd.conf.default \
|
|
||||||
defaults/ospf6d.conf.default \
|
|
||||||
defaults/ospfd.conf.default \
|
|
||||||
defaults/pimd.conf.default \
|
|
||||||
defaults/ripd.conf.default \
|
|
||||||
defaults/ripngd.conf.default \
|
|
||||||
defaults/vtysh.conf.default \
|
|
||||||
defaults/zebra.conf.default \
|
|
||||||
helpers \
|
helpers \
|
||||||
snap
|
snap
|
||||||
|
@ -12,7 +12,12 @@ which uses earlier versions of snaps)
|
|||||||
git clone https://github.com/frrouting/frr.git
|
git clone https://github.com/frrouting/frr.git
|
||||||
cd frr
|
cd frr
|
||||||
|
|
||||||
3. Run Bootstrap and make distribution tar.gz
|
3. (Optional) Add extra version information to
|
||||||
|
`snapcraft/extra_version_info.txt`. Information in this file will
|
||||||
|
be displayed with the frr.version command (simple `cat` after
|
||||||
|
the display of the `zebra --version` output)
|
||||||
|
|
||||||
|
4. Run Bootstrap and make distribution tar.gz
|
||||||
|
|
||||||
./bootstrap.sh
|
./bootstrap.sh
|
||||||
./configure --with-pkg-extra-version=-MySnapVersion
|
./configure --with-pkg-extra-version=-MySnapVersion
|
||||||
@ -25,7 +30,7 @@ which uses earlier versions of snaps)
|
|||||||
This will build `frr-something.tar.gz` - the distribution tar and
|
This will build `frr-something.tar.gz` - the distribution tar and
|
||||||
the snapcraft/snapcraft.yaml with the matching version number
|
the snapcraft/snapcraft.yaml with the matching version number
|
||||||
|
|
||||||
4. Create snap
|
5. Create snap
|
||||||
|
|
||||||
cd snapcraft
|
cd snapcraft
|
||||||
snapcraft
|
snapcraft
|
||||||
|
0
snapcraft/extra_version_info.txt
Normal file
0
snapcraft/extra_version_info.txt
Normal file
@ -13,3 +13,5 @@ install:
|
|||||||
install -D -m 0755 ldpd-service $(DESTDIR)/bin/
|
install -D -m 0755 ldpd-service $(DESTDIR)/bin/
|
||||||
install -D -m 0755 nhrpd-service $(DESTDIR)/bin/
|
install -D -m 0755 nhrpd-service $(DESTDIR)/bin/
|
||||||
install -D -m 0755 set-options $(DESTDIR)/bin/
|
install -D -m 0755 set-options $(DESTDIR)/bin/
|
||||||
|
install -D -m 0755 show_version $(DESTDIR)/bin/
|
||||||
|
|
||||||
|
6
snapcraft/scripts/show_version
Normal file
6
snapcraft/scripts/show_version
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
$SNAP/sbin/zebra --version
|
||||||
|
$SNAP/bin/cat $SNAP/doc/extra_version_info.txt
|
||||||
|
|
||||||
|
exit 0
|
@ -17,7 +17,7 @@ apps:
|
|||||||
- network-bind
|
- network-bind
|
||||||
- network-control
|
- network-control
|
||||||
version:
|
version:
|
||||||
command: sbin/zebra --version
|
command: bin/show_version
|
||||||
readme:
|
readme:
|
||||||
command: bin/cat $SNAP/doc/README.usage.md
|
command: bin/cat $SNAP/doc/README.usage.md
|
||||||
zebra:
|
zebra:
|
||||||
@ -192,12 +192,6 @@ parts:
|
|||||||
plugin: autotools
|
plugin: autotools
|
||||||
source: ../frr-@PACKAGE_VERSION@.tar.gz
|
source: ../frr-@PACKAGE_VERSION@.tar.gz
|
||||||
configflags:
|
configflags:
|
||||||
- --with-cflags=-g
|
|
||||||
- --with-cflags=-O0
|
|
||||||
- --with-cflags=-std=gnu99
|
|
||||||
- --with-cflags=-fpie
|
|
||||||
- --with-cflags=-fno-omit-frame-pointer
|
|
||||||
- --with-cflags=-Wall
|
|
||||||
- --enable-vtysh
|
- --enable-vtysh
|
||||||
- --enable-isisd
|
- --enable-isisd
|
||||||
- --enable-watchfrr
|
- --enable-watchfrr
|
||||||
@ -206,7 +200,6 @@ parts:
|
|||||||
- --enable-multipath=64
|
- --enable-multipath=64
|
||||||
- --enable-rtadv
|
- --enable-rtadv
|
||||||
- --enable-irdp
|
- --enable-irdp
|
||||||
- --enable-gcc-rdynamic
|
|
||||||
- --enable-user=root
|
- --enable-user=root
|
||||||
- --enable-group=root
|
- --enable-group=root
|
||||||
- --enable-pimd
|
- --enable-pimd
|
||||||
@ -254,4 +247,5 @@ parts:
|
|||||||
organize:
|
organize:
|
||||||
README.usage.md: doc/README.usage.md
|
README.usage.md: doc/README.usage.md
|
||||||
README.snap_build.md: doc/README.snap_build.md
|
README.snap_build.md: doc/README.snap_build.md
|
||||||
|
extra_version_info.txt: doc/extra_version_info.txt
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user