Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 436144 - net-firewall/ipsec-tools-0.8.0-r4 & net-misc/strongswan-5.0.0 both install /etc/ipsec.conf
Summary: net-firewall/ipsec-tools-0.8.0-r4 & net-misc/strongswan-5.0.0 both install /e...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-25 01:15 UTC by SpanKY
Modified: 2012-09-28 01:07 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.log,4.23 KB, text/plain)
2012-09-25 01:15 UTC, SpanKY
Details
ipsec-tools build log (net-firewall:ipsec-tools-0.8.0-r4:20120925-011005.log,76.53 KB, text/plain)
2012-09-25 01:15 UTC, SpanKY
Details
strongswan build.log (net-misc:strongswan-5.0.0:20120911-020306.log.bz2,24.82 KB, application/octet-stream)
2012-09-25 01:16 UTC, SpanKY
Details

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2012-09-25 01:15:19 UTC
Created attachment 324898 [details]
emerge --info

$ qfile /etc/ipsec.conf -v
net-firewall/ipsec-tools-0.8.0-r4 (/etc/ipsec.conf)
net-misc/strongswan-5.0.0 (/etc/ipsec.conf)
Comment 1 SpanKY gentoo-dev 2012-09-25 01:15:32 UTC
Created attachment 324900 [details]
ipsec-tools build log
Comment 2 SpanKY gentoo-dev 2012-09-25 01:16:11 UTC
Created attachment 324902 [details]
strongswan build.log
Comment 3 Anthony Basile gentoo-dev 2012-09-25 10:06:09 UTC
Great.  Here's my 2 cents:

1) Changing the name ipsec.conf in strongswan is a pita.  I requires everything from changing the internals of man pages and man page names to editing the header that hard codes "/etc/ipsec.conf"

2) Changing the name ipsec.conf in ipsec-tools is as easy as changing one line int /etc/conf.d/racoon.

3) Debian uses /etc/ipsec-tools.conf for ipsec-tools.

Okay, the solution here is pretty obvious.  ipsec-tools-0.8.0-r5 will use /etc/ipsec-tools.conf.

Question: how to alert our users?  What do you think of a news item with

   Display-If-Installed: <net-firewall/ipsec-tools-0.8.0-r5
Comment 4 SpanKY gentoo-dev 2012-09-25 16:42:32 UTC
(In reply to comment #3)

changing ipsec-tools sounds reasonable (i don't care either way since i don't use either package)

in terms of migration, you can add a pkg_preinst hook that looks to see if the user already has ipsec-tools installed and if so, automatically migrate the file.

you can also check to see if they have strongswan installed and issue a warning in that case (and not do the file migration).
Comment 5 Anthony Basile gentoo-dev 2012-09-28 01:07:05 UTC
Okay fixed in the tree with ipsec-tools-0.8.0-r5.