Browse Source

Fixup prefixing for iptables extension loading (#31)

configure-hook
James Page 3 years ago
committed by Pete Vander Giessen
parent
commit
2b0a7b1de4
1 changed files with 10 additions and 1 deletions
  1. +10
    -1
      snapcraft.yaml

+ 10
- 1
snapcraft.yaml View File

@ -761,8 +761,17 @@ parts:
- libnftnl-dev
configflags:
- --disable-nftables
- --prefix=/snap/$SNAPCRAFT_PROJECT_NAME/current
install: |
cp --remove-destination $SNAPCRAFT_PART_INSTALL/sbin/xtables-multi $SNAPCRAFT_PART_INSTALL/bin/iptables-xml
cp --remove-destination $SNAPCRAFT_PART_INSTALL/snap/$SNAPCRAFT_PROJECT_NAME/current/sbin/xtables-multi \
$SNAPCRAFT_PART_INSTALL/snap/$SNAPCRAFT_PROJECT_NAME/current/bin/iptables-xml
organize:
# Hack to shift installed iptables back to root of snap
# required to ensure that pathing to files etc works at
# runtime
# * is not used to avoid directory merge conflicts
snap/microstack/current/: ./
ipset:
source: http://ipset.netfilter.org/ipset-6.30.tar.bz2
plugin: autotools


Loading…
Cancel
Save