~gary-wzl77/squid/snap_package

Viewing all changes in revision 14144.

  • Committer: Gary.Wzl
  • Date: 2017-02-25 09:34:28 UTC
  • Revision ID: gary.wang@canonical.com-20170225093428-k5bzy3nuqjtg4ql4
Enable to package and compile squid in snap world.

1.Added conditional for snap packaging by testing "--enable-snap". 
As all services run as root thanks to confinement in snap world, 
so we need to get rid of uid, gid configured, 
otherwise there will be bunch of apparmor DENIED issue when running
this snap in confined mode.
2.Fixed bunch of critical conf file reading path.
3.Make sure writeable path for some file reading. e.g pidfile
4.Make sure sem_open available inside snap. see 
    https://bugs.launchpad.net/snappy/+bug/1653955

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: