svn commit: r407331 - head/net/geoipupdate

Alexey Dokuchaev danfe at FreeBSD.org
Fri Jan 29 01:54:02 UTC 2016


On Wed, Jan 27, 2016 at 01:16:01AM +0000, Adam Weinberger wrote:
> New Revision: 407331
> URL: https://svnweb.freebsd.org/changeset/ports/407331
> 
> Log:
>   Update to 2.2.2.
>   
>   Also, use localbase.mk instead of setting CPPFLAGS/LDFLAGS manually, and
>   use the new two-argument @sample instead of renaming and sed-ing.
> 
> [...]
> @@ -1,4 +1,4 @@
>  bin/geoipupdate
> - at sample etc/GeoIP.conf.sample
> + at sample etc/GeoIP.conf etc/GeoIP.conf.default

I think you've got it backwards, per what I read in CHANGE at 20150926 and
running post-install() from +MANIFEST with commands prepended with echo:

  if ! [ -f /usr/local/etc/GeoIP.conf.default ]
    /bin/cp -p /usr/local/etc/GeoIP.conf /usr/local/etc/GeoIP.conf.default
    /bin/chmod u+w /usr/local/etc/GeoIP.conf.default
  fi

Similarly, for pre-deinstall():

  if cmp -s /usr/local/etc/GeoIP.conf.default /usr/local/etc/GeoIP.conf
    rm -f /usr/local/etc/GeoIP.conf.default
  else
    You may need to manually remove /usr/local/etc/GeoIP.conf.default ...
  fi

./danfe


More information about the svn-ports-all mailing list