# packages

origin: audio/beep
name: beep
version: 1.0_1
comment: Beeps a certain duration and pitch out of the PC Speaker
arch: FreeBSD:11:amd64
maintainer: garga@FreeBSD.org
www: UNKNOWN
prefix: /usr/local
desc:
  This program will beep, using a duration and pitch specified on the
  command line or the program's defaults.

message:
  [{"message":"Speaker sound support:\n======================\n\nFor PC speaker sound to work you need to be in the operator group\nand need r/w permissions to /dev/speaker device.\n\nLoad kernel module:\n\n# kldload speaker\n\nAdd a user to operator group:\n\n% pw groupmod operator -m jerry\n\nUncomment the following lines in /etc/devfs.rules file (create it\nif it doesn't exist):\n\n# Allow members of group operator to cat things to the speaker\n\n[speaker=10]\nadd path 'speaker' mode 0660 group operator\n\nTo load these new rules add the following to /etc/rc.conf:\n\ndevfs_speaker_ruleset=\"speaker\"\n\nThen restart devfs to load the new rules:\n\n% /etc/rc.d/devfs restart"}]


origin: sysutils/cpdup
name: cpdup
version: 1.20
comment: Comprehensive filesystem mirroring and backup program
arch: FreeBSD:11:amd64
maintainer: gmarco@gufi.org
www: http://apollo.backplane.com/FreeBSDPorts/
prefix: /usr/local
desc:
  This is the distribution of "cpdup", a powerful filesystem mirroring and
  backup utility which also has file integrity testing features, supports
  incremental backups, and remote mirroring via ssh.

  WWW: http://apollo.backplane.com/FreeBSDPorts/


origin: security/ca_root_nss
name: ca_root_nss
version: 3.45
comment: Root certificate bundle from the Mozilla Project
arch: FreeBSD:11:*
maintainer: ports-secteam@FreeBSD.org
www: UNKNOWN
prefix: /usr/local
desc:
  Root certificates from certificate authorities included in the Mozilla
  NSS library and thus in Firefox and Thunderbird.

  This port directly tracks the version of NSS in the security/nss port.

message:
  [{"message":"********************************* WARNING *********************************\n\nFreeBSD does not, and can not warrant that the certification authorities\nwhose certificates are included in this package have in any way been\naudited for trustworthiness or RFC 3647 compliance.\n\nAssessment and verification of trust is the complete responsibility of the\nsystem administrator.\n\n*********************************** NOTE **********************************\n\nThis package installs symlinks to support root certificates discovery by\ndefault for software that uses OpenSSL.\n\nThis enables SSL Certificate Verification by client software without manual\nintervention.\n\nIf you prefer to do this manually, replace the following symlinks with\neither an empty file or your site-local certificate bundle.\n\n  * /etc/ssl/cert.pem\n  * /usr/local/etc/ssl/cert.pem\n  * /usr/local/openssl/cert.pem\n\n***************************************************************************"}]


origin: net-mgmt/choparp
name: choparp
version: 20150613
comment: Simple proxy arp daemon
arch: FreeBSD:11:amd64
maintainer: garga@FreeBSD.org
www: https://github.com/quinot/choparp
prefix: /usr/local
desc:
  choparp is a easy-to-use proxy arp daemon.  It watches arp request pack-
  ets visible on the interface specified by argument if_name, and sends
  proxy arp reply to the sender if the arp request queries the MAC address
  (ethernet hardware address) for the network speicified by net_addr and
  net_mask.

  WWW: https://github.com/quinot/choparp


origin: opnsense/dhcp6c
name: dhcp6c
version: 20190419
comment: OPNsense WIDE-DHCPv6 client
arch: FreeBSD:11:amd64
maintainer: franco@opnsense.org
www: https://github.com/opnsense/dhcp6c/
prefix: /usr/local
desc:
  WIDE-DHCPv6 is an open-source implementation of Dynamic Host
  Configuration Protocol for IPv6 (DHCPv6), originally developed
  by the KAME project.

  The implementation mainly conforms to the following standards:

  - RFC3315: Dynamic Host Configuration Protocol for IPv6 (DHCPv6)
  - RFC3319: DHCPv6 Options for Session Initiation Protocol (SIP) Servers
  - RFC3633: IPv6 Prefix Options for DHCP
  - RFC3646: DNS Configuration options for DHCPv6
  - RFC3898: Network Information Service (NIS) Configuration Options for DHCPv6
  - RFC4075: Simple Network Time Protocol (SNTP) Configuration Option for DHCPv6
  - RFC4242: Information Refresh Time Option for DHCPv6
  - RFC4280: DHCP Options for Broadcast and Multicast Control Servers

  Note that the current implementation does not support temporary
  IPv6 address allocation by DHCPv6, and there is no plan to
  implement that feature at the moment.

  WWW: https://github.com/opnsense/dhcp6c/


origin: print/indexinfo
name: indexinfo
version: 0.3.1
comment: Utility to regenerate the GNU info page index
arch: FreeBSD:11:amd64
maintainer: bapt@FreeBSD.org
www: https://github.com/bapt/indexinfo
prefix: /usr/local
desc:
  Small utility designed to regenerate the GNU info page indexes

  WWW: https://github.com/bapt/indexinfo


origin: math/gmp
name: gmp
version: 6.1.2_1
comment: Free library for arbitrary precision arithmetic
arch: FreeBSD:11:amd64
maintainer: ale@FreeBSD.org
www: https://gmplib.org/
prefix: /usr/local
desc:
  GMP is a free library for arbitrary precision arithmetic, operating
  on signed integers, rational numbers, and floating point numbers.
  There is no limit to the precision except the ones implied by the
  available memory in the machine GMP runs on. GMP has a rich set of
  functions, and the functions have a regular interface.

  GMP is designed to be as fast as possible, both for small operands
  and for huge operands. The speed is achieved by using fullwords as
  the basic arithmetic type, by using fast algorithms, with carefully
  optimized assembly code for the most common inner loops for a lot of
  CPUs, and by a general emphasis on speed (instead of simplicity or
  elegance).

  GMP is believed to be faster than any other similar library. The
  advantage for GMP increases with the operand sizes for certain
  operations, since GMP in many cases has asymptotically faster
  algorithms.

  WWW: https://gmplib.org/


origin: security/nettle
name: nettle
version: 3.5.1
comment: Low-level cryptographic library
arch: FreeBSD:11:amd64
maintainer: sunpoet@FreeBSD.org
www: https://www.lysator.liu.se/~nisse/nettle/
prefix: /usr/local
desc:
  Nettle is a cryptographic library that is designed to fit easily in more or less
  any context: In crypto toolkits for object-oriented languages (C++, Python,
  Pike, ...), in applications like LSH or GNUPG, or even in kernel space.

  WWW: https://www.lysator.liu.se/~nisse/nettle/


origin: dns/dnsmasq
name: dnsmasq
version: 2.80_3,1
comment: Lightweight DNS forwarder, DHCP, and TFTP server
arch: FreeBSD:11:amd64
maintainer: mandree@FreeBSD.org
www: http://www.thekelleys.org.uk/dnsmasq/doc.html
prefix: /usr/local
desc:
  Dnsmasq is a lightweight, easy to configure DNS forwarder and DHCP server. It
  is designed to provide DNS and, optionally, DHCP, to a small network. It can
  serve the names of local machines which are not in the global DNS. The DHCP
  server integrates with the DNS server and allows machines with DHCP-allocated
  addresses to appear in the DNS with names configured either in each host or in
  a central configuration file. Dnsmasq supports static and dynamic DHCP leases
  and BOOTP/TFTP/PXE for network booting of diskless machines.

  Dnsmasq is targeted at home networks using NAT and connected to the internet
  via a modem, cable-modem or ADSL connection but would be a good choice for any
  smallish network (up to 1000 clients is known to work) where low resource use
  and ease of configuration are important. 			-- Simon Kelley

  WWW: http://www.thekelleys.org.uk/dnsmasq/doc.html

message:
  [{"message":"*** To enable dnsmasq, edit /usr/local/etc/dnsmasq.conf and\n*** set dnsmasq_enable=\"YES\" in /etc/rc.conf[.local]\n***\n*** Further options and actions are documented inside\n*** /usr/local/etc/rc.d/dnsmasq\n\n*** SECURITY RECOMMENDATION\n*** ~~~~~~~~~~~~~~~~~~~~~~~\n*** It is recommended to enable the wpad-related options\n*** at the end of the configuration file (you may need to\n*** copy them from the example file to yours) to fix\n*** CERT Vulnerability VU#598349."}]


origin: security/expiretable
name: expiretable
version: 0.6_1
comment: Utility to remove entries from the pf(4) table based on their age
arch: FreeBSD:11:amd64
maintainer: cris@gufi.org
www: http://expiretable.fnord.se/
prefix: /usr/local
desc:
  Expiretable is a utility used to remove entries from the pf(4) table
  based on their age.

  The age in question being the amount of time that has passed since
  the statistics for each entry in the target table was last cleared.

  WWW: http://expiretable.fnord.se/


origin: lang/perl5.28
name: perl5
version: 5.28.2
comment: Practical Extraction and Report Language
arch: FreeBSD:11:amd64
maintainer: mat@FreeBSD.org
www: http://www.perl.org/
prefix: /usr/local
desc:
  Perl is a language that combines some of the features of C, sed, awk and
  shell.  See the manual page for more hype.  There are also many books
  published by O'Reilly & Assoc.  See pod/perlbook.pod for more
  information.

  WWW: http://www.perl.org/

message:
  [{"message":"The /usr/bin/perl symlink has been removed starting with Perl 5.20.\nFor shebangs, you should either use:\n\n#!/usr/local/bin/perl\n\nor\n\n#!/usr/bin/env perl\n\nThe first one will only work if you have a /usr/local/bin/perl,\nthe second will work as long as perl is in PATH.","type":"install"},{"message":"The /usr/bin/perl symlink has been removed starting with Perl 5.20.\nFor shebangs, you should either use:\n\n#!/usr/local/bin/perl\n\nor\n\n#!/usr/bin/env perl\n\nThe first one will only work if you have a /usr/local/bin/perl,\nthe second will work as long as perl is in PATH.","type":"upgrade","maximum_version":"5.21"}]


origin: net-mgmt/flowd
name: flowd
version: 0.9.1_3
comment: Small, fast, and secure NetFlow collector
arch: FreeBSD:11:amd64
maintainer: ports@FreeBSD.org
www: http://www.mindrot.org/flowd.html
prefix: /usr/local
desc:
  flowd is a small, fast and secure NetFlow collector. It offers the following
  features:

      * Understands NetFlow protocol v.1, v.5, v.7 and v.9 (including IPv6 flows)
      * Supports both IPv4 and IPv6 transport of flows
      * Secure: flowd is privilege separated to limit the impact of any compromise
      * Supports filtering and tagging of flows, using a packet filter-like syntax
      * Stores recorded flow data in a compact binary format which supports
        run-time choice over which flow fields are stored
      * Ships with both Perl and Python interfaces for reading and parsing the
        on-disk record format
      * Is licensed under a liberal BSD-like license

  WWW: http://www.mindrot.org/flowd.html

message:
  [{"message":"===>   NOTICE:\n\nThe flowd port currently does not have a maintainer. As a result, it is\nmore likely to have unresolved issues, not be up-to-date, or even be removed in\nthe future. To volunteer to maintain this port, please create an issue at:\n\nhttps://bugs.freebsd.org/bugzilla\n\nMore information about port maintainership is available at:\n\nhttps://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port"}]


origin: security/openssl
name: openssl
version: 1.0.2s,1
comment: SSL and crypto library
message: [{"message":"Edit /usr/local/openssl/openssl.cnf to fit your needs."}]
arch: FreeBSD:11:amd64
maintainer: brnrd@FreeBSD.org
www: https://www.openssl.org/
prefix: /usr/local
desc:
  The OpenSSL Project is a collaborative effort to develop a robust,
  commercial-grade, full-featured, and Open Source toolkit implementing
  the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security
  (TLS v1) protocols with full-strength cryptography world-wide. The
  project is managed by a worldwide community of volunteers that use
  the Internet to communicate, plan, and develop the OpenSSL tookit
  and its related documentation.

  OpenSSL is based on the excellent SSLeay library developed by Eric
  A. Young and Tim J. Hudson. The OpenSSL toolkit is licensed under
  an Apache-style licence, which basically means that you are free
  to get and use it for commercial and non-commercial purposes subject
  to some simple license conditions.

  WWW: https://www.openssl.org/
  WWW: http://sctp.fh-muenster.de/dtls-patches.html


origin: net/hostapd
name: hostapd
version: 2.8
comment: IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
arch: FreeBSD:11:amd64
maintainer: cy@FreeBSD.org
www: https://w1.fi/hostapd/
prefix: /usr/local
desc:
  hostapd is a user space daemon for access point and authentication
  servers. It implements IEEE 802.11 access point management, IEEE
  802.1X/WPA/WPA2/EAP Authenticators, RADIUS client, EAP server, and
  RADIUS authentication server. The current version supports Linux
  (Host AP, madwifi, mac80211-based drivers) and FreeBSD (net80211).

  Add the following to /etc/rc.conf to use the ports version instead
  of the base version:

      hostapd_program="/usr/local/sbin/hostapd"

  WWW: https://w1.fi/hostapd/

message:
  [{"message":"Add the following to /etc/rc.conf to use the ports version instead\nof the base version:\n\n    hostapd_program=\"/usr/local/sbin/hostapd\""}]


origin: net/isc-dhcp44-relay
name: isc-dhcp44-relay
version: 4.4.1
comment: The ISC Dynamic Host Configuration Protocol relay
arch: FreeBSD:11:amd64
maintainer: zi@FreeBSD.org
www: https://www.isc.org/products/DHCP/
prefix: /usr/local
desc:
  The ISC Dynamic Host Configuration Protocol Distribution provides a
  freely redistributable reference implementation of all aspects of the
  DHCP protocol, through a suite of DHCP tools:

    * A DHCP server
    * A DHCP client
    * A DHCP relay agent (this port)

  Details on versioning/release information may be obtained here:
  https://www.isc.org/downloads/

  WWW: https://www.isc.org/products/DHCP/

message:
  [{"message":"****  This port installs the dhcp relay daemon, but doesn't invoke dhcrelay by\n      default. If you want to invoke dhcrelay at startup, add the following\n      lines to /etc/rc.conf:\n\n\t    dhcrelay_enable=\"YES\"\n\t    dhcrelay_flags=\"\"\t\t# command option(s)\n\t    dhcrelay_servers=\"\"\t\t# dhcrelay server(s)\n\t    dhcrelay_ifaces=\"\"\t\t# ethernet interface(s)"}]


origin: net/isc-dhcp44-server
name: isc-dhcp44-server
version: 4.4.1_4
comment: ISC Dynamic Host Configuration Protocol server
arch: FreeBSD:11:amd64
maintainer: zi@FreeBSD.org
www: https://www.isc.org/products/DHCP/
prefix: /usr/local
desc:
  The ISC Dynamic Host Configuration Protocol Distribution provides a
  freely redistributable reference implementation of all aspects of the
  DHCP protocol, through a suite of DHCP tools:

    * A DHCP server (this port)
    * A DHCP client
    * A DHCP relay agent

  Details on versioning/release information may be obtained here:
  https://www.isc.org/downloads/

  WWW: https://www.isc.org/products/DHCP/

message:
  [{"message":"****  To setup dhcpd, please edit /usr/local/etc/dhcpd.conf.\n\n****  This port installs the dhcp daemon, but doesn't invoke dhcpd by default.\n      If you want to invoke dhcpd at startup, add these lines to /etc/rc.conf:\n\n\t    dhcpd_enable=\"YES\"\t\t\t\t# dhcpd enabled?\n\t    dhcpd_flags=\"-q\"\t\t\t\t# command option(s)\n\t    dhcpd_conf=\"/usr/local/etc/dhcpd.conf\"\t# configuration file\n\t    dhcpd_ifaces=\"\"\t\t\t\t# ethernet interface(s)\n\t    dhcpd_withumask=\"022\"\t\t\t# file creation mask\n\n****  If compiled with paranoia support (the default), the following rc.conf\n      options are also supported:\n\n\t    dhcpd_chuser_enable=\"YES\"\t\t# runs w/o privileges?\n\t    dhcpd_withuser=\"dhcpd\"\t\t# user name to run as\n\t    dhcpd_withgroup=\"dhcpd\"\t\t# group name to run as\n\t    dhcpd_chroot_enable=\"YES\"\t\t# runs chrooted?\n\t    dhcpd_devfs_enable=\"YES\"\t\t# use devfs if available?\n\t    dhcpd_rootdir=\"/var/db/dhcpd\"\t# directory to run in\n\t    dhcpd_includedir=\"<some_dir>\"\t# directory with config-\n\t\t\t\t\t\t  files to include\n\n****  WARNING: never edit the chrooted or jailed dhcpd.conf file but\n      /usr/local/etc/dhcpd.conf instead which is always copied where\n      needed upon startup."}]


origin: devel/pcre
name: pcre
version: 8.43_1
comment: Perl Compatible Regular Expressions library
arch: FreeBSD:11:amd64
maintainer: krion@FreeBSD.org
www: https://www.pcre.org/
prefix: /usr/local
desc:
  The PCRE library is a set of functions that implement regular expression
  pattern matching using the same syntax and semantics as Perl 5. PCRE has its
  own native API, as well as a set of wrapper functions that correspond to the
  POSIX regular expression API. The PCRE library is free, even for building
  proprietary software.

  WWW: https://www.pcre.org/


origin: www/lighttpd
name: lighttpd
version: 1.4.54
comment: Secure, fast, compliant, and flexible Web Server
arch: FreeBSD:11:amd64
maintainer: pkubaj@anongoth.pl
www: https://www.lighttpd.net/
prefix: /usr/local
desc:
  lighttpd a secure, fast, compliant and very flexible web-server which
  has been optimized for high-performance environments. It has a very
  low memory footprint compared to other webservers and takes care of
  cpu-load. Its advanced feature-set (FastCGI, CGI, Auth, Output-Compression,
  URL-Rewriting and many more) make lighttpd the perfect webserver-software
  for every server that is suffering load problems.

  WWW: https://www.lighttpd.net/


origin: sysutils/monit
name: monit
version: 5.25.3
comment: Unix system management and proactive monitoring
arch: FreeBSD:11:amd64
maintainer: martinp@tildeslash.com
www: http://mmonit.com/monit/
prefix: /usr/local
desc:
  Monit is a utility for managing and monitoring processes,
  files, directories, devices and network services on a Unix system.
  Monit conducts automatic maintenance and repair and can execute
  meaningful causal actions in error situations.

  monit supports:
   * Daemon mode - poll services at a specified interval
   * Group and manage groups of services, service dependencies
   * Logging - syslog or own logfile
   * Alert, start, stop and restart of services based on it's characteristics
   * MD5 and SHA1 checksums
   * Runtime Unix socket and TCP/IP port checking (TCP and UDP)
   * Process status, timeout, memory and cpu usage, etc.
   * Device usage monitoring (inodes and space)
   * File monitoring (timestamp, checksum, permission, owner, etc.)
   * Directory monitoring (timestamp, permission, owner, etc.)
   * Remote network services monitoring (ping, response time, protocol, etc.)
   * System load average monitoring
   * Flexible and customizable email alert messages and notifications
   * Protocol verification such as HTTP, FTP, SMTP, POP, IMAP, NNTP, NTP, etc.
   * A HTTP interface with XML output option
   and many more features :)

  WWW: http://mmonit.com/monit/

message:
  [{"message":"**************************************************************************\n\nUSAGE:\n\nTo enable monit you need to add monit_enable=\"YES\" to rc.conf file.\nBefore running monit you have to configure monitrc file. There is\nexample configuration file monitrc.sample.\n\n/usr/local/etc/monitrc.sample\n\n**************************************************************************"}]


origin: net/mpd5
name: mpd5
version: 5.8_10
comment: Multi-link PPP daemon based on netgraph(4)
arch: FreeBSD:11:amd64
maintainer: eugen@FreeBSD.org
www: https://sourceforge.net/projects/mpd/
prefix: /usr/local
desc:
  Mpd is a netgraph(4) based implementation of the multi-link PPP
  protocol for FreeBSD.  It is designed to be both fast and flexible.
  It handles configuration and negotiation in user land, while routing
  all data packets strictly in the kernel.  It supports several of
  the numerous PPP sub-protocols and extensions, such as:

        Multi-link PPP capability
        PAP, CHAP, MS-CHAP and EAP authentication
        PPP compression and encryption
        IPCP and IPV6CP parameter negotiation

  Mpd have support for many link types:

        Serial port modem
        Point-to-Point Tunnelling Protocol (PPTP)
        Layer Two Tunnelling Protocol (L2TP)
        PPP over Ethernet (PPPoE)
        PPP over TCP
        PPP over UDP
        PPP over specified netgraph(4) node

  Mpd also includes many additional features:

        IPv4 and IPv6 support
        RADIUS authentication and accounting
        NetFlow traffic accounting
        Network address translation (NAT)
        Dial-on-demand with idle timeout
        Multiple active connections running simultaneously
        Dynamic demand based link management (also known as ``rubber bandwidth'')
        Powerful chat scripting language for asynchronous serial ports
        Pre-tested chat scripts for several common modems and ISDN TAs
        Clean device-type independent design
        Comprehensive logging
        Telnet and HTTP control interfaces.

  WWW: https://sourceforge.net/projects/mpd/


origin: devel/libevent
name: libevent
version: 2.1.10
comment: API for executing callback functions on events or timeouts
arch: FreeBSD:11:amd64
maintainer: zeising@FreeBSD.org
www: http://libevent.org/
prefix: /usr/local
desc:
  The libevent API provides a mechanism to execute a callback function when
  a specific event occurs on a file descriptor or after a timeout has been
  reached. Furthermore, libevent also support callbacks due to signals or
  regular timeouts.

  libevent is meant to replace the event loop found in event driven network
  servers. An application just needs to call event_dispatch() and then add
  or remove events dynamically without having to change the event loop.

  Currently, libevent supports /dev/poll, kqueue(2), event ports, select(2),
  poll(2) and epoll(4). The internal event mechanism is completely independent
  of the exposed event API, and a simple update of libevent can provide new
  functionality without having to redesign the applications. As a result,
  Libevent allows for portable application development and provides the most
  scalable event notification mechanism available on an operating system.
  Libevent can also be used for multi-threaded applications.

  WWW: http://libevent.org/


origin: devel/libedit
name: libedit
version: 3.1.20190324,1
comment: Command line editor library
arch: FreeBSD:11:amd64
maintainer: bapt@FreeBSD.org
www: http://thrysoee.dk/editline/
prefix: /usr/local
desc:
  libedit provides command line editing functionality.  Both emacs and vi key
  bindings are supported.  Note that the base system also includes libedit, but
  this port is generally more current.

  WWW: http://thrysoee.dk/editline/


origin: net/ntp
name: ntp
version: 4.2.8p13
comment: The Network Time Protocol Distribution
arch: FreeBSD:11:amd64
maintainer: cy@FreeBSD.org
www: http://www.ntp.org/
prefix: /usr/local
desc:
  The Network Time Protocol (NTP) is used to synchronize the time of a
  computer client or server to another server or reference time source,
  such as a radio or satellite receiver or modem.

  It provides client accuracies typically within a millisecond on LANs
  and up to a few tens of milliseconds on WANs relative to a primary
  server synchronized to Coordinated Universal Time (UTC) via a Global
  Positioning Service (GPS) receiver, for example.

  Typical NTP configurations utilize multiple redundant servers and diverse
  network paths, in order to achieve high accuracy and reliability.

  Some configurations include cryptographic authentication to prevent
  accidental or malicious protocol attacks.

  See homepage for more infos:

  WWW: http://www.ntp.org/

message:
  [{"message":"Please add\n\n\tntpd_program=\"/usr/local/sbin/ntpd\"\n\tntpdate_program=\"/usr/local/sbin/ntpdate\"\n\nto your /etc/rc.conf or run\n\n\tsysrc ntpd_program=\"/usr/local/sbin/ntpd\"\n\tsysrc ntpdate_program=\"/usr/local/sbin/ntpdate\"\n\nto enable ntp from ports/packages instead of base ntp."}]


origin: dns/ldns
name: ldns
version: 1.7.0_1
comment: Library for programs conforming to DNS RFCs and drafts
arch: FreeBSD:11:amd64
maintainer: jaap@NLnetLabs.nl
www: http://www.nlnetlabs.nl/projects/ldns/
prefix: /usr/local
desc:
  Ldns is a library to simplify implementation of recent DNS RFCs. The goal
  is to allow depelopers to easily create software conforming to current RFCs
  and experimental software for current Internet drafts.
  Because ldns is written in C it should be a lot faster than Perl or other
  scripting languages.

  WWW: http://www.nlnetlabs.nl/projects/ldns/


origin: security/openssh-portable
name: openssh-portable
version: 7.9.p1_1,1
comment: The portable version of OpenBSD's OpenSSH
arch: FreeBSD:11:amd64
maintainer: bdrewery@FreeBSD.org
www: http://www.openssh.org/portable.html
prefix: /usr/local
desc:
  OpenBSD's OpenSSH portable version

  Normal OpenSSH development produces a very small, secure, and easy to maintain
  version for the OpenBSD project. The OpenSSH Portability Team takes that pure
  version and adds portability code so that OpenSSH can run on many other
  operating systems (Unfortunately, in particular since OpenSSH does
  authentication, it runs into a *lot* of differences between Unix operating
  systems).

  The portable OpenSSH follows development of the official version, but releases
  are not synchronized. Portable releases are marked with a 'p' (e.g. 3.1p1).
  The official OpenBSD source will never use the 'p' suffix, but will instead
  increment the version number when they hit 'stable spots' in their development.

  WWW: http://www.openssh.org/portable.html

message:
  [{"message":"To enable this port, add openssh_enable=\"YES\" in your rc.conf. To\nprevent conflict with openssh in the base system add sshd_enable=\"NO\"\nin your rc.conf. Also you can configure openssh at another TCP port (via\nsshd_config 'Port' and 'Listen' options or via 'openssh_flags'\nvariable in rc.conf) and run it in same time with base sshd.\n\n'PermitRootLogin no' is the default for the OpenSSH port.\nThis now matches the PermitRootLogin configuration of OpenSSH in\nthe base system.  Please be aware of this when upgrading your\nOpenSSH port, and if truly necessary, re-enable remote root login\nby readjusting this option in your sshd_config.\n\nUsers are encouraged to create single-purpose users with ssh keys, disable\nPassword authentication by setting 'PasswordAuthentication no' and\n'ChallengeResponseAuthentication no', and to define very narrow sudo\nprivileges instead of using root for automated tasks."}]


origin: archivers/lzo2
name: lzo2
version: 2.10_1
comment: Portable speedy, lossless data compression library
arch: FreeBSD:11:amd64
maintainer: mandree@FreeBSD.org
www: http://www.oberhumer.com/opensource/lzo/
prefix: /usr/local
desc:
  LZO is a data compression library which is suitable for data
  de-/compression in real-time. This means it favours speed over
  compression ratio.

  LZO implements a number of algorithms with the following features:
     + Decompression is simple and *very* fast.
     + Requires no memory for decompression.
     + Compression is pretty fast.
     + Requires 64 kB of memory for compression.
     + Allows you to dial up extra compression at a speed cost in the
       compressor. The speed of the decompressor is not reduced.
     + Includes compression levels for generating pre-compressed data
       which achieve a quite competitive compression ratio.
     + There is also a compression level which needs only 8 kB for
       compression.
     + Algorithm is thread safe.
     + Algorithm is lossless.

  WWW: http://www.oberhumer.com/opensource/lzo/


origin: archivers/liblz4
name: liblz4
version: 1.9.1,1
comment: LZ4 compression library, lossless and very fast
arch: FreeBSD:11:amd64
maintainer: martin@waschbuesch.de
www: http://www.lz4.org/
prefix: /usr/local
desc:
  LZ4 is a very fast lossless compression algorithm, providing compression speed
  at 400 MB/s per core, scalable with multi-cores CPU. It also features an
  extremely fast decoder, with speed in multiple GB/s per core, typically
  reaching RAM speed limits on multi-core systems.

  A high compression derivative, called LZ4_HC, is also provided. It trades CPU
  time for compression ratio.

  The libraries are BSD licensed, and the binaries are GPLv2.

  WWW: http://www.lz4.org/


origin: security/openvpn
name: openvpn
version: 2.4.7
comment: Secure IP/Ethernet tunnel daemon
arch: FreeBSD:11:amd64
maintainer: mandree@FreeBSD.org
www: https://openvpn.net/index.php/open-source.html
prefix: /usr/local
desc:
  OpenVPN is a robust, scalable and highly configurable VPN (Virtual Private
  Network) daemon which can be used to securely link two or more private networks
  using an encrypted tunnel over the internet. It can operate over UDP or TCP,
  can use SSL or a pre-shared secret to authenticate peers, and in SSL mode, one
  server can handle many clients.

  WWW: https://openvpn.net/index.php/open-source.html

message:
  [{"message":"### ------------------------------------------------------------------------\n###  Edit /etc/rc.conf[.local] to start OpenVPN automatically at system\n###  startup. See /usr/local/etc/rc.d/openvpn for details.\n### ------------------------------------------------------------------------\n###  Connect to VPN server as a client with this command to include\n###  the client.up/down scripts in the initialization:\n###  openvpn-client <spec>.ovpn\n### ------------------------------------------------------------------------\n###  For compatibility notes when interoperating with older OpenVPN\n###  versions, please see <http://openvpn.net/relnotes.html>\n### ------------------------------------------------------------------------\n###  Note that OpenVPN does not officially support LibreSSL.\n### ------------------------------------------------------------------------"}]


origin: opnsense/opnsense-lang
name: opnsense-lang
version: 19.7
comment: OPNsense translations
arch: FreeBSD:11:*
maintainer: franco@opnsense.org
www: https://translate.opnsense.org/
prefix: /usr/local
desc:
  The OPNsense language translation package provides several
  language translations including Chinese, French, German,
  Japanese, Russian and others.

  WWW: https://translate.opnsense.org/


origin: textproc/libucl
name: libucl
version: 0.8.1
comment: Universal configuration library parser
arch: FreeBSD:11:amd64
maintainer: koobs@FreeBSD.org
www: https://github.com/vstakhov/libucl
prefix: /usr/local
desc:
  Libucl is a parser and C API to parse and generate ucl objects. Libucl
  consists of several groups of functions:

   * Parser functions
   * Emitting functions
   * Conversion functions
   * Generation functions
   * Iteration functions
   * Validation functions
   * Utility functions

  WWW: https://github.com/vstakhov/libucl


origin: opnsense/opnsense-update
name: opnsense-update
version: 19.7
comment: OPNsense update utilities
arch: FreeBSD:11:amd64
maintainer: franco@opnsense.org
www: https://opnsense.org/
prefix: /usr/local
desc:
  The OPNsense system update utilities provide kernel and base
  upgrades based on signed binary sets as well as packages via
  pkg(8).

  An additional bootstrap utility can transform vanilla FreeBSD
  installations into OPNsense in cases where the installation
  media cannot be used.

  WWW: https://opnsense.org/


origin: sysutils/pftop
name: pftop
version: 0.7_8
comment: Utility for real-time display of statistics for pf
arch: FreeBSD:11:amd64
maintainer: araujo@FreeBSD.org
www: http://www.eee.metu.edu.tr/~canacar/pftop/
prefix: /usr/local
desc:
  Pftop is a small, curses-based utility for real-time display of active
  states and rule statistics for pf, the packet filter (for OpenBSD)

  WWW: http://www.eee.metu.edu.tr/~canacar/pftop/


origin: textproc/libxml2
name: libxml2
version: 2.9.9
comment: XML parser library for GNOME
arch: FreeBSD:11:amd64
maintainer: gnome@FreeBSD.org
www: http://xmlsoft.org/
prefix: /usr/local
desc:
  Libxml2 is the XML C parser and toolkit developed for the Gnome project (but
  usable outside of the Gnome platform).  XML itself is a metalanguage to design
  markup languages, i.e. text language where semantic and structure are added to
  the content using extra "markup" information enclosed between angle brackets.

  WWW: http://xmlsoft.org/


origin: security/libargon2
name: libargon2
version: 20190702
comment: Memory hard password hashing program and library
arch: FreeBSD:11:amd64
maintainer: hsw@bitmark.com
www: https://github.com/P-H-C/phc-winner-argon2
prefix: /usr/local
desc:
  Argon2 is a password-hashing function that summarizes the state of the
  art in the design of memory-hard functions and can be used to hash
  passwords for credential storage, key derivation, or other
  applications.

  WWW: https://github.com/P-H-C/phc-winner-argon2


origin: lang/php72
name: php72
version: 7.2.19
comment: PHP Scripting Language
arch: FreeBSD:11:amd64
maintainer: tz@FreeBSD.org
www: https://www.php.net/
prefix: /usr/local
desc:
  PHP, which stands for "PHP: Hypertext Preprocessor" is a widely-used Open
  Source general-purpose scripting language that is especially suited for
  Web development and can be embedded into HTML.  Its syntax draws upon C,
  Java, and Perl, and is easy to learn.  The main goal of the language is to
  allow web developers to write dynamically generated webpages quickly, but
  you can do much more with PHP.

  WWW: https://www.php.net/


origin: textproc/php72-ctype
name: php72-ctype
version: 7.2.19
comment: The ctype shared extension for php
arch: FreeBSD:11:amd64
maintainer: tz@FreeBSD.org
www: https://www.php.net/
prefix: /usr/local
desc:
  PHP, which stands for "PHP: Hypertext Preprocessor" is a widely-used Open
  Source general-purpose scripting language that is especially suited for
  Web development and can be embedded into HTML.  Its syntax draws upon C,
  Java, and Perl, and is easy to learn.  The main goal of the language is to
  allow web developers to write dynamically generated webpages quickly, but
  you can do much more with PHP.

  WWW: https://www.php.net/

message:
  [{"message":"This file has been added to automatically load the installed extension:\n/usr/local/etc/php/ext-20-ctype.ini","type":"install"}]


origin: www/libnghttp2
name: libnghttp2
version: 1.39.1
comment: HTTP/2.0 C Library
arch: FreeBSD:11:amd64
maintainer: sunpoet@FreeBSD.org
www: https://nghttp2.org/
prefix: /usr/local
desc:
  nghttp2 is an implementation of HTTP/2 and its header compression algorithm
  HPACK in C.

  WWW: https://nghttp2.org/


origin: ftp/curl
name: curl
version: 7.65.1_1
comment: Command line tool and library for transferring data with URLs
arch: FreeBSD:11:amd64
maintainer: sunpoet@FreeBSD.org
www: https://curl.haxx.se/
prefix: /usr/local
desc:
  curl is used in command lines or scripts to transfer data. It is also used in
  cars, television sets, routers, printers, audio equipment, mobile phones,
  tablets, settop boxes, media players and is the internet transfer backbone for
  thousands of software applications affecting billions of humans daily.

  It supports DICT, FILE, FTP, FTPS, Gopher, HTTP, HTTPS, IMAP, IMAPS, LDAP,
  LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, Telnet and
  TFTP. curl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP
  form based upload, proxies, HTTP/2, cookies, user+password authentication
  (Basic, Plain, Digest, CRAM-MD5, NTLM, Negotiate and Kerberos), file transfer
  resume, proxy tunneling and more.

  WWW: https://curl.haxx.se/


origin: ftp/php72-curl
name: php72-curl
version: 7.2.19
comment: The curl shared extension for php
arch: FreeBSD:11:amd64
maintainer: tz@FreeBSD.org
www: https://www.php.net/
prefix: /usr/local
desc:
  PHP, which stands for "PHP: Hypertext Preprocessor" is a widely-used Open
  Source general-purpose scripting language that is especially suited for
  Web development and can be embedded into HTML.  Its syntax draws upon C,
  Java, and Perl, and is easy to learn.  The main goal of the language is to
  allow web developers to write dynamically generated webpages quickly, but
  you can do much more with PHP.

  WWW: https://www.php.net/

message:
  [{"message":"This file has been added to automatically load the installed extension:\n/usr/local/etc/php/ext-20-curl.ini","type":"install"}]


origin: textproc/php72-dom
name: php72-dom
version: 7.2.19
comment: The dom shared extension for php
arch: FreeBSD:11:amd64
maintainer: tz@FreeBSD.org
www: https://www.php.net/
prefix: /usr/local
desc:
[cell repeats an earlier one in this file: 425 characters]

message:
  [{"message":"This file has been added to automatically load the installed extension:\n/usr/local/etc/php/ext-20-dom.ini","type":"install"}]


origin: security/php72-filter
name: php72-filter
version: 7.2.19
comment: The filter shared extension for php
arch: FreeBSD:11:amd64
maintainer: tz@FreeBSD.org
www: https://www.php.net/
prefix: /usr/local
desc:
[cell repeats an earlier one in this file: 425 characters]

message:
  [{"message":"This file has been added to automatically load the installed extension:\n/usr/local/etc/php/ext-20-filter.ini","type":"install"}]


origin: devel/gettext-runtime
name: gettext-runtime
version: 0.20.1
comment: GNU gettext runtime libraries and programs
arch: FreeBSD:11:amd64
maintainer: tijl@FreeBSD.org
www: https://www.gnu.org/software/gettext/
prefix: /usr/local
desc:
  GNU gettext is a framework of libraries and tools for internationalisation
  and localisation of software.

  This package contains the runtime libraries and programs.

  WWW: https://www.gnu.org/software/gettext/


origin: devel/php72-gettext
name: php72-gettext
version: 7.2.19
comment: The gettext shared extension for php
arch: FreeBSD:11:amd64
maintainer: tz@FreeBSD.org
www: https://www.php.net/
prefix: /usr/local
desc:
[cell repeats an earlier one in this file: 425 characters]

message:
  [{"message":"This file has been added to automatically load the installed extension:\n/usr/local/etc/php/ext-20-gettext.ini","type":"install"}]


origin: security/php72-hash
name: php72-hash
version: 7.2.19
comment: The hash shared extension for php
arch: FreeBSD:11:amd64
maintainer: tz@FreeBSD.org
www: https://www.php.net/
prefix: /usr/local
desc:
[cell repeats an earlier one in this file: 425 characters]

message:
  [{"message":"This file has been added to automatically load the installed extension:\n/usr/local/etc/php/ext-20-hash.ini","type":"install"}]


origin: devel/php72-json
name: php72-json
version: 7.2.19
comment: The json shared extension for php
arch: FreeBSD:11:amd64
maintainer: tz@FreeBSD.org
www: https://www.php.net/
prefix: /usr/local
desc:
[cell repeats an earlier one in this file: 425 characters]

message:
  [{"message":"This file has been added to automatically load the installed extension:\n/usr/local/etc/php/ext-20-json.ini","type":"install"}]


origin: security/cyrus-sasl2
name: cyrus-sasl
version: 2.1.27
comment: RFC 2222 SASL (Simple Authentication and Security Layer)
arch: FreeBSD:11:amd64
maintainer: ume@FreeBSD.org
www: https://www.cyrusimap.org/sasl/
prefix: /usr/local
desc:
  The Cyrus SASL (Simple Authentication and Security Layer)

  SASL is the Simple Authentication and Security Layer, a method
  for adding authentication support to connection-based protocols.
  To use SASL, a protocol includes a command for identifying and
  authenticating a user to a server and for optionally negotiating
  protection of subsequent protocol interactions. If its use is
  negotiated, a security layer is inserted between the protocol
  and the connection.

  WWW: https://www.cyrusimap.org/sasl/

message:
  [{"message":"You can use sasldb2 for authentication, to add users use:\n\n\tsaslpasswd2 -c username\n\nIf you want to enable SMTP AUTH with the system Sendmail, read\nSendmail.README\n\nNOTE: This port has been compiled with a default pwcheck_method of\n      auxprop.  If you want to authenticate your user by /etc/passwd,\n      PAM or LDAP, install ports/security/cyrus-sasl2-saslauthd and\n      set sasl_pwcheck_method to saslauthd after installing the\n      Cyrus-IMAPd 2.X port.  You should also check the\n      /usr/local/lib/sasl2/*.conf files for the correct\n      pwcheck_method.\n      If you want to use GSSAPI mechanism, install\n      ports/security/cyrus-sasl2-gssapi.\n      If you want to use SRP mechanism, install\n      ports/security/cyrus-sasl2-srp.\n      If you want to use LDAP auxprop plugin, install\n      ports/security/cyrus-sasl2-ldapdb."}]


origin: net/openldap24-sasl-client
name: openldap-sasl-client
version: 2.4.47
comment: Open source LDAP client implementation with SASL2 support
arch: FreeBSD:11:amd64
maintainer: delphij@FreeBSD.org
www: http://www.OpenLDAP.org/
prefix: /usr/local
desc:
  OpenLDAP is a suite of Lightweight Directory Access Protocol (v3) servers,
  clients, utilities and development tools.

  This package includes the following major components:

   * -lldap - a LDAP client library
   * -llber - a lightweight BER/DER encoding/decoding library
   * LDAP tools - A collection of command line LDAP utilities
   * documentation - man pages for all components

  WWW: http://www.OpenLDAP.org/

message:
  [{"message":"************************************************************\n\nThe OpenLDAP client package has been successfully installed.\n\nEdit\n  /usr/local/etc/openldap/ldap.conf\nto change the system-wide client defaults.\n\nTry `man ldap.conf' and visit the OpenLDAP FAQ-O-Matic at\n  http://www.OpenLDAP.org/faq/index.cgi?file=3\nfor more information.\n\n************************************************************"}]


origin: net/php72-ldap
name: php72-ldap
version: 7.2.19
comment: The ldap shared extension for php
arch: FreeBSD:11:amd64
maintainer: tz@FreeBSD.org
www: https://www.php.net/
prefix: /usr/local
desc:
[cell repeats an earlier one in this file: 425 characters]

message:
  [{"message":"This file has been added to automatically load the installed extension:\n/usr/local/etc/php/ext-20-ldap.ini","type":"install"}]


origin: security/php72-openssl
name: php72-openssl
version: 7.2.19
comment: The openssl shared extension for php
arch: FreeBSD:11:amd64
maintainer: tz@FreeBSD.org
www: https://www.php.net/
prefix: /usr/local
desc:
[cell repeats an earlier one in this file: 425 characters]

message:
  [{"message":"This file has been added to automatically load the installed extension:\n/usr/local/etc/php/ext-20-openssl.ini","type":"install"}]


origin: databases/php72-pdo
name: php72-pdo
version: 7.2.19
comment: The pdo shared extension for php
arch: FreeBSD:11:amd64
maintainer: tz@FreeBSD.org
www: https://www.php.net/
prefix: /usr/local
desc:
[cell repeats an earlier one in this file: 425 characters]

message:
  [{"message":"This file has been added to automatically load the installed extension:\n/usr/local/etc/php/ext-20-pdo.ini","type":"install"}]


origin: net/pecl-radius
name: php72-pecl-radius
version: 1.4.0.b1
comment: Radius client library for PHP
arch: FreeBSD:11:amd64
maintainer: joneum@FreeBSD.org
www: https://pecl.php.net/package/radius
prefix: /usr/local
desc:
  This package is based on the libradius of FreeBSD, with some modifications and
  extensions.

  This PECL provides full support for RADIUS authentication (RFC 2865) and
  RADIUS accounting (RFC 2866), works on Unix and on Windows. Its an easy way to
  authenticate your users against the user-database of your OS (for example
  against Windows Active-Directory via IAS).

  WWW: https://pecl.php.net/package/radius

message:
  [{"message":"This file has been added to automatically load the installed extension:\n/usr/local/etc/php/ext-20-radius.ini","type":"install"}]


origin: www/phalcon
name: php72-phalcon
version: 3.4.4
comment: Phalcon PHP Framework written in C-language
arch: FreeBSD:11:amd64
maintainer: franco@opnsense.org
www: http://phalconphp.com/
prefix: /usr/local
desc:
  PhalconPHP is a web framework delivered as a C extension providing high
  performance and lower resource consumption.

  WWW: http://phalconphp.com/

message:
  [{"message":"This file has been added to automatically load the installed extension:\n/usr/local/etc/php/ext-30-phalcon.ini","type":"install"}]


origin: opnsense/phpseclib
name: php72-phpseclib
version: 2.0.15
comment: PHP Secure Communications Library
arch: FreeBSD:11:*
maintainer: franco@opnsense.org
www: http://phpseclib.sourceforge.net
prefix: /usr/local
desc:
  PHP Secure Communications Library delivers pure PHP implementations
  of an arbitrary-precision integer arithmetic library, fully PKCS#1
  (v2.1) compliant RSA, DES, 3DES, RC4, Rijndael, AES, Blowfish, Twofish
  SSH-1, SSH-2, SFTP and X.509.

  WWW: http://phpseclib.sourceforge.net


origin: www/php72-session
name: php72-session
version: 7.2.19
comment: The session shared extension for php
arch: FreeBSD:11:amd64
maintainer: tz@FreeBSD.org
www: https://www.php.net/
prefix: /usr/local
desc:
[cell repeats an earlier one in this file: 425 characters]

message:
  [{"message":"This file has been added to automatically load the installed extension:\n/usr/local/etc/php/ext-18-session.ini","type":"install"}]


origin: textproc/php72-simplexml
name: php72-simplexml
version: 7.2.19
comment: The simplexml shared extension for php
arch: FreeBSD:11:amd64
maintainer: tz@FreeBSD.org
www: https://www.php.net/
prefix: /usr/local
desc:
[cell repeats an earlier one in this file: 425 characters]

message:
  [{"message":"This file has been added to automatically load the installed extension:\n/usr/local/etc/php/ext-20-simplexml.ini","type":"install"}]


origin: net/php72-sockets
name: php72-sockets
version: 7.2.19
comment: The sockets shared extension for php
arch: FreeBSD:11:amd64
maintainer: tz@FreeBSD.org
www: https://www.php.net/
prefix: /usr/local
desc:
[cell repeats an earlier one in this file: 425 characters]

message:
  [{"message":"This file has been added to automatically load the installed extension:\n/usr/local/etc/php/ext-20-sockets.ini","type":"install"}]


origin: devel/readline
name: readline
version: 8.0.0
comment: Library for editing command lines as they are typed
arch: FreeBSD:11:amd64
maintainer: sunpoet@FreeBSD.org
www: https://tiswww.case.edu/php/chet/readline/rltop.html
prefix: /usr/local
desc:
  The GNU Readline library provides a set of functions for use by applications
  that allow users to edit command lines as they are typed in. Both Emacs and vi
  editing modes are available. The Readline library includes additional functions
  to maintain a list of previously-entered command lines, to recall and perhaps
  reedit those lines, and perform csh-like history expansion on previous commands.

  WWW: https://tiswww.case.edu/php/chet/readline/rltop.html


origin: databases/sqlite3
name: sqlite3
version: 3.28.0
comment: SQL database engine in a C library
arch: FreeBSD:11:amd64
maintainer: pavelivolkov@gmail.com
www: https://www.sqlite.org/
prefix: /usr/local
desc:
  SQLite is an SQL database engine in a C library. Programs that link the SQLite
  library can have SQL database access without running a separate RDBMS process.
  The distribution comes with a standalone command-line access program (sqlite3)
  that can be used to administer an SQLite database and which serves as an
  example of how to use the SQLite library.

  WWW: https://www.sqlite.org/


origin: databases/php72-sqlite3
name: php72-sqlite3
version: 7.2.19
comment: The sqlite3 shared extension for php
arch: FreeBSD:11:amd64
maintainer: tz@FreeBSD.org
www: https://www.php.net/
prefix: /usr/local
desc:
[cell repeats an earlier one in this file: 425 characters]

message:
  [{"message":"This file has been added to automatically load the installed extension:\n/usr/local/etc/php/ext-20-sqlite3.ini","type":"install"}]


origin: textproc/php72-xml
name: php72-xml
version: 7.2.19
comment: The xml shared extension for php
arch: FreeBSD:11:amd64
maintainer: tz@FreeBSD.org
www: https://www.php.net/
prefix: /usr/local
desc:
[cell repeats an earlier one in this file: 425 characters]

message:
  [{"message":"This file has been added to automatically load the installed extension:\n/usr/local/etc/php/ext-20-xml.ini","type":"install"}]


origin: archivers/php72-zlib
name: php72-zlib
version: 7.2.19
comment: The zlib shared extension for php
arch: FreeBSD:11:amd64
maintainer: tz@FreeBSD.org
www: https://www.php.net/
prefix: /usr/local
desc:
[cell repeats an earlier one in this file: 425 characters]

message:
  [{"message":"This file has been added to automatically load the installed extension:\n/usr/local/etc/php/ext-20-zlib.ini","type":"install"}]


origin: devel/libffi
name: libffi
version: 3.2.1_3
comment: Foreign Function Interface
arch: FreeBSD:11:amd64
maintainer: zeising@FreeBSD.org
www: http://sources.redhat.com/libffi/
prefix: /usr/local
desc:
  The libffi library provides a portable, high level programming
  interface to various calling conventions. This allows a programmer to
  call any function specified by a call interface description at run
  time.

  WWW: http://sources.redhat.com/libffi/


origin: lang/python37
name: python37
version: 3.7.3_1
comment: Interpreted object-oriented programming language
arch: FreeBSD:11:amd64
maintainer: python@FreeBSD.org
www: https://www.python.org/
prefix: /usr/local
desc:
  Python is an interpreted object-oriented programming language, and is
  often compared to Tcl, Perl or Scheme.

  WWW: https://www.python.org/

message:
  [{"message":"===========================================================================\n\nNote that some standard Python modules are provided as separate ports\nas they require additional dependencies. They are available as:\n\npy37-gdbm       databases/py-gdbm@py37\npy37-sqlite3    databases/py-sqlite3@py37\npy37-tkinter    x11-toolkits/py-tkinter@py37\n\n==========================================================================="}]


origin: devel/py-setuptools
name: py37-setuptools
version: 41.0.1
comment: Python packages installer
arch: FreeBSD:11:*
maintainer: python@FreeBSD.org
www: https://pypi.org/project/setuptools/
prefix: /usr/local
desc:
  Setuptools is a fully-featured, actively-maintained, and stable library
  designed to facilitate packaging Python projects, where packaging includes:
   - Python package and module definitions
   - Distribution package metadata
   - Test hooks
   - Project installation
   - Platform-specific details
   - Python 3 support

  WWW: https://pypi.org/project/setuptools/

message:
  [{"message":"*******************************************************************\n\n  Only /usr/local/bin/easy_install-3.7 script has been installed\n  since Python 3.7 is not the default Python version.\n\n*******************************************************************"}]


origin: textproc/py-MarkupSafe
name: py37-MarkupSafe
version: 1.1.1
comment: Implements XML/HTML/XHTML Markup safe string for Python
arch: FreeBSD:11:amd64
maintainer: sunpoet@FreeBSD.org
www: https://github.com/pallets/markupsafe
prefix: /usr/local
desc:
  MarkupSafe implements a text object that escapes characters so it is safe to use
  in HTML and XML. Characters that have special meanings are replaced so that they
  display as the actual characters. This mitigates injection attacks, meaning
  untrusted user input can safely be displayed on a page.

  WWW: https://github.com/pallets/markupsafe


origin: devel/py-pytz
name: py37-pytz
version: 2019.1,1
comment: World Timezone Definitions for Python
arch: FreeBSD:11:*
maintainer: lwhsu@FreeBSD.org
www: https://pythonhosted.org/pytz/
prefix: /usr/local
desc:
  pytz brings the Olson tz database into Python. This library allows accurate and
  cross platform timezone calculations. It also solves the issue of ambiguous
  times at the end of daylight savings, which you can read more about in the
  Python Library Reference (datetime.tzinfo).

  WWW: https://pythonhosted.org/pytz/


origin: devel/py-babel
name: py37-Babel
version: 2.7.0
comment: Collection of tools for internationalizing Python applications
arch: FreeBSD:11:*
maintainer: bofh@FreeBSD.org
www: http://babel.pocoo.org/
prefix: /usr/local
desc:
  Babel is composed of two major parts:

      * tools to build and work with gettext message catalogs

      * a Python interface to the CLDR (Common Locale Data Repository),
        providing access to various locale display names, localized
        number and date formatting, etc.

  WWW: http://babel.pocoo.org/


origin: devel/py-Jinja2
name: py37-Jinja2
version: 2.10.1
comment: Fast and easy to use stand-alone template engine
arch: FreeBSD:11:*
maintainer: nivit@FreeBSD.org
www: http://jinja.pocoo.org/
prefix: /usr/local
desc:
  Jinja is a sandboxed template engine written in pure Python licensed
  under the BSD license. It provides a Django-like non-XML syntax and
  compiles templates into executable python code. It's basically a
  combination of Django templates and python code.

  WWW: http://jinja.pocoo.org/


origin: dns/py-dnspython
name: py37-dnspython
version: 1.16.0
comment: DNS toolkit for Python
arch: FreeBSD:11:*
maintainer: rm@FreeBSD.org
www: http://www.dnspython.org/
prefix: /usr/local
desc:
  dnspython is a DNS toolkit for Python. It supports almost all record
  types. It can be used for queries, zone transfers, and dynamic
  updates. It supports TSIG authenticated messages and EDNS0.

  dnspython provides both high and low level access to DNS. The high
  level classes perform queries for data of a given name, type, and
  class, and return an answer set. The low level classes allow direct
  manipulation of DNS zones, messages, names, and records.

  WWW: http://www.dnspython.org/


origin: net/py-netaddr
name: py37-netaddr
version: 0.7.19_1
comment: Manipulation of IPv4, IPv6, CIDR, EUI and MAC network addresses
arch: FreeBSD:11:*
maintainer: koobs@FreeBSD.org
www: https://github.com/drkjam/netaddr/
prefix: /usr/local
desc:
  A pure Python network address representation and manipulation library.

  netaddr provides a Pythonic way of working with:

    - IPv4 and IPv6 addresses and subnets
    - MAC addresses, OUI and IAB identifiers, IEEE EUI-64 identifiers
    - Arbitrary (non-aligned) IP address ranges and IP address sets
    - Various non-CIDR IP range formats such as nmap and glob-style formats

  Included are routines for:

    - Generating, sorting and summarizing IP addresses and networks
    - Performing easy conversions between address notations and formats
    - Detecting, parsing and formatting network address representations
    - Performing set-based operations on groups of IP addresses and subnets
    - Working with arbitrary IP address ranges and formats
    - Accessing OUI and IAB organisational information published by IEEE
    - Accessing IP address and block information published by IANA

  API documentation for the latest release is available here:

    https://pythonhosted.org/netaddr/

  WWW: https://github.com/drkjam/netaddr/


origin: security/py-certifi
name: py37-certifi
version: 2019.6.16
comment: Mozilla SSL certificates
arch: FreeBSD:11:*
maintainer: sunpoet@FreeBSD.org
www: https://certifi.io/
prefix: /usr/local
desc:
  Certifi is a carefully curated collection of Root Certificates for validating
  the trustworthiness of SSL certificates while verifying the identity of TLS
  hosts. It has been extracted from the Requests project.

  This MPL Licensed CA Bundle is extracted from the Mozilla Included CA
  Certificate List.

  WWW: https://certifi.io/


origin: devel/py-six
name: py37-six
version: 1.12.0
comment: Python 2 and 3 compatibility utilities
arch: FreeBSD:11:*
maintainer: python@FreeBSD.org
www: https://pypi.org/project/six/
prefix: /usr/local
desc:
  Six is a Python 2 and 3 compatibility library. It provides utility
  functions for smoothing over the differences between the Python versions
  with the goal of writing Python code that is compatible on both Python
  versions. See the documentation for more information on what is provided.

  WWW: https://pypi.org/project/six/


origin: devel/py-pycparser
name: py37-pycparser
version: 2.19
comment: C parser in Python
arch: FreeBSD:11:*
maintainer: wg@FreeBSD.org
www: https://github.com/eliben/pycparser
prefix: /usr/local
desc:
  pycparser is a complete parser of the C language, written in pure Python using
  the PLY parsing library. It parses C code into an AST and can serve as a
  front-end for C compilers or analysis tools.

  WWW: https://github.com/eliben/pycparser


origin: devel/py-asn1crypto
name: py37-asn1crypto
version: 0.24.0
comment: ASN.1 library with a focus on performance and a pythonic API
arch: FreeBSD:11:*
maintainer: mikael.urankar@gmail.com
www: https://github.com/wbond/asn1crypto
prefix: /usr/local
desc:
  A fast, pure Python library for parsing and serializing ASN.1 structures.

  WWW: https://github.com/wbond/asn1crypto


origin: security/py-cryptography
name: py37-cryptography
version: 2.6.1
comment: Cryptographic recipes and primitives for Python developers
arch: FreeBSD:11:amd64
maintainer: koobs@FreeBSD.org
www: https://github.com/pyca/cryptography/
prefix: /usr/local
desc:
  cryptography is a package designed to expose cryptographic recipes and
  primitives to Python developers. Our goal is for it to be your "cryptographic
  standard library".

  cryptography includes both high level recipes, and low level interfaces to
  common cryptographic algorithms such as symmetric ciphers, message digests
  and key derivation functions.

  WWW: https://github.com/pyca/cryptography/


origin: net/py-pysocks
name: py37-pysocks
version: 1.7.0
comment: Python SOCKS module
arch: FreeBSD:11:*
maintainer: sunpoet@FreeBSD.org
www: https://github.com/Anorov/PySocks
prefix: /usr/local
desc:
  Derived from SocksiPy - a Python SOCKS module.

  - UDP support
  - SocksiPyHandler, courtesy e000, was also added as an example of how
    this module can be used with urllib2. See example code in sockshandler.py.
  - urllib3, which powers the requests module, is working on integrating SOCKS
    proxy support based on this branch

  WWW: https://github.com/Anorov/PySocks


origin: dns/py-idna
name: py37-idna
version: 2.8
comment: Internationalized Domain Names in Applications (IDNA)
arch: FreeBSD:11:*
maintainer: koobs@FreeBSD.org
www: https://github.com/kjd/idna
prefix: /usr/local
desc:
  A library to support the Internationalised Domain Names in Applications
  (IDNA) protocol as specified in RFC 5891. This version of the protocol
  is often referred to as "IDNA2008" and can produce different res
  lts from the earlier standard from 2003.

  The library is also intended to act as a suitable drop-in replacement
  for the "encodings.idna" module that comes with the Python standard
  library but currently only supports the older 2003 specification.

  WWW: https://github.com/kjd/idna


origin: net/py-urllib3
name: py37-urllib3
version: 1.22,1
comment: HTTP library with thread-safe connection pooling, file post, and more
message: [{"message":"Be careful, support of IPv6 is broken with PySocks 1.5.7."}]
arch: FreeBSD:11:*
maintainer: python@FreeBSD.org
www: https://pypi.org/project/urllib3/
prefix: /usr/local
desc:
  urllib3 is a powerful, sanity-friendly HTTP client for Python. Much of the
  Python ecosystem already uses urllib3 and you should too. urllib3 brings many
  critical features that are missing from the Python standard libraries:
  - Thread safety.
  - Connection pooling.
  - Client-side SSL/TLS verification.
  - File uploads with multipart encoding.
  - Helpers for retrying requests and dealing with HTTP redirects.
  - Support for gzip and deflate encoding.
  - Proxy support for HTTP and SOCKS.
  - 100% test coverage.

  WWW: https://pypi.org/project/urllib3/


origin: www/py-requests
name: py37-requests
version: 2.21.0
comment: HTTP library written in Python for human beings
arch: FreeBSD:11:*
maintainer: koobs@FreeBSD.org
www: http://python-requests.org
prefix: /usr/local
desc:
  Requests is an ISC Licensed HTTP library, written in Python, for human beings.

  Features:

    * International Domains and URLs
    * Keep-Alive & Connection Pooling
    * Sessions with Cookie Persistence
    * Browser-style SSL Verification
    * Basic/Digest Authentication
    * Elegant Key/Value Cookies
    * Automatic Decompression
    * Unicode Response Bodies
    * Multipart File Uploads
    * Connection Timeouts
    * .netrc support
    * Python 2.6-3.4
    * Thread-safe

  WWW: http://python-requests.org


origin: databases/py-sqlite3
name: py37-sqlite3
version: 3.7.3_7
comment: Standard Python binding to the SQLite3 library (Python 3.7)
arch: FreeBSD:11:amd64
maintainer: python@FreeBSD.org
www: UNKNOWN
prefix: /usr/local
desc:
  SQLite is a library that provides a SQL-language database that
  stores data in disk files without requiring a separate server
  process. pysqlite provides a SQL interface compliant with the DB-API
  2.0 specification described by PEP 249. This means that it should
  be possible to write the first version of your applications using
  SQLite for data storage. If switching to a larger database such as
  PostgreSQL or Oracle is later necessary, the switch should be
  relatively easy.


origin: devel/py-ujson
name: py37-ujson
version: 1.35
comment: Ultra fast JSON encoder and decoder for Python
arch: FreeBSD:11:amd64
maintainer: delphij@FreeBSD.org
www: https://github.com/esnme/ultrajson
prefix: /usr/local
desc:
  UltraJSON is a fast and extendable JSON encoder and decoder written
  in pure C.

  WWW: https://github.com/esnme/ultrajson


origin: devel/libdaemon
name: libdaemon
version: 0.14_1
comment: Lightweight C library that eases the writing of UNIX daemons
arch: FreeBSD:11:amd64
maintainer: gnome@FreeBSD.org
www: http://0pointer.de/lennart/projects/libdaemon/
prefix: /usr/local
desc:
  Lightweight C library that eases the writing of UNIX daemons

  WWW: http://0pointer.de/lennart/projects/libdaemon/


origin: opnsense/radvd1
name: radvd1
version: 1.15
comment: Linux/BSD IPv6 router advertisement daemon
arch: FreeBSD:11:amd64
maintainer: franco@opnsense.org
www: http://www.litech.org/radvd/
prefix: /usr/local
desc:
  radvd implements IPv6 router advertisements for Linux and FreeBSD
  as specified in RFC 2461. Support for Mobile IPv6 as well as 6to4
  is included.

  WWW: http://www.litech.org/radvd/


origin: net-mgmt/rate
name: rate
version: 0.9_1
comment: Traffic analysis command-line utility
arch: FreeBSD:11:amd64
maintainer: mich@FreeBSD.org
www: http://s-tech.elsat.net.pl/
prefix: /usr/local
desc:
  Rate is a swiss-army-knife command-line traffic analysis tool, designed
  to help a network administrator to see what is happening at a router at
  the moment. Unlike tcpdump(1), rate uses statistical and stream-oriented
  methods, and will never produce an output stream at a speed beyond human
  perception. The output is less accurate, however. Rate features four
  different operating modes, designed to perform the following tasks:
  estimating overall traffic rates, determining nodes generating the
  highest traffic, determining connections and flows generating the highest
  traffic and extracting strings from packets.

  WWW: http://s-tech.elsat.net.pl/


origin: lang/python27
name: python27
version: 2.7.16_1
comment: Interpreted object-oriented programming language
arch: FreeBSD:11:amd64
maintainer: python@FreeBSD.org
www: https://www.python.org/
prefix: /usr/local
desc:
  Python is an interpreted object-oriented programming language, and is
  often compared to Tcl, Perl or Scheme.

  WWW: https://www.python.org/

message:
  [{"message":"===========================================================================\n\nNote that some standard Python modules are provided as separate ports\nas they require additional dependencies. They are available as:\n\nbsddb           databases/py-bsddb\ngdbm            databases/py-gdbm\nsqlite3         databases/py-sqlite3\ntkinter         x11-toolkits/py-tkinter\n\n==========================================================================="}]


origin: converters/libiconv
name: libiconv
version: 1.14_11
comment: Character set conversion library
arch: FreeBSD:11:amd64
maintainer: gnome@FreeBSD.org
www: http://www.gnu.org/software/libiconv/
prefix: /usr/local
desc:
  This library provides an iconv() implementation, for use on systems which
  don't have one, or whose implementation cannot convert from/to Unicode.

  It can convert from any of these encodings to any other, through Unicode
  conversion. It has also some limited support for transliteration, i.e.
  when a character cannot be represented in the target character set, it can
  be approximated through one or several similarly looking characters.

  libiconv is for you if your application needs to support multiple character
  encodings, but that support lacks from your system.

  See either README or website for the list of supported encodings.

  WWW: http://www.gnu.org/software/libiconv/


origin: devel/glib20
name: glib
version: 2.56.3_5,1
comment: Some useful routines of C programming (current stable version)
arch: FreeBSD:11:amd64
maintainer: gnome@FreeBSD.org
www: https://www.gtk.org/
prefix: /usr/local
desc:
  GLib provides a simple, abstract, and highly portable set of C support
  routines such as lists, trees, hashes, memory allocation, and much, much
  more.  It is a foundation for writing portable applications.

  WWW: https://www.gtk.org/


origin: databases/rrdtool
name: rrdtool
version: 1.7.2
comment: Round Robin Database Tools
arch: FreeBSD:11:amd64
maintainer: zeising@FreeBSD.org
www: http://www.rrdtool.org/
prefix: /usr/local
desc:
  It is pretty easy to gather status information from all sorts of things,
  ranging from the temperature in your office to the number of octets which
  have passed through the FDDI interface of your router. But it is not so
  trivial to store this data in a efficient and systematic manner. This is
  where RRDtool kicks in. It lets you log and analyze the data you gather from
  all kinds of data-sources. The data analysis part of RRDtool is based
  on the ability to quickly generate graphical representations of the data
  values collected over a definable time period.

  WWW: http://www.rrdtool.org/


origin: net/samplicator
name: samplicator
version: 1.3.8.r1_1
comment: Receives UDP datagrams and redistributes them to a set of receivers
arch: FreeBSD:11:amd64
maintainer: ath@heybey.org
www: http://samplicator.googlecode.com/
prefix: /usr/local
desc:
  This small program receives UDP datagrams on a given port, and resends
  those datagrams to a specified set of receivers.  In addition, a
  sampling divisor N may be specified individually for each receiver,
  which will then only receive one in N of the received packets.

  WWW: http://samplicator.googlecode.com/


origin: security/krb5
name: krb5
version: 1.17_2
comment: MIT implementation of RFC 4120 network authentication service
arch: FreeBSD:11:amd64
maintainer: cy@FreeBSD.org
www: http://web.mit.edu/kerberos/
prefix: /usr/local
desc:
  Kerberos V5 is an authentication system developed at MIT.
  WWW: http://web.mit.edu/kerberos/

  Abridged from the User Guide:
         Under Kerberos, a client sends a request for a ticket to the
     Key Distribution Center (KDC). The KDC creates a ticket-granting
     ticket (TGT) for the client, encrypts it using the client's
     password as the key, and sends the encrypted TGT back to the
     client. The client then attempts to decrypt the TGT, using
     its password. If the client successfully decrypts the TGT, it
     keeps the decrypted TGT, which indicates proof of the client's
     identity. The TGT permits the client to obtain additional tickets,
     which give permission for specific services.
         Since Kerberos negotiates authenticated, and optionally encrypted,
     communications between two points anywhere on the internet, it
     provides a layer of security that is not dependent on which side of a
     firewall either client is on.
         The Kerberos V5 package is designed to be easy to use. Most of the
     commands are nearly identical to UNIX network programs you are already
     used to. Kerberos V5 is a single-sign-on system, which means that you
     have to type your password only once per session, and Kerberos does
     the authenticating and encrypting transparently.

  Jacques Vidrine <n@nectar.com>


origin: www/squid
name: squid
version: 4.7_2
comment: HTTP Caching Proxy
arch: FreeBSD:11:amd64
maintainer: timp87@gmail.com
www: http://www.squid-cache.org/
prefix: /usr/local
desc:
  Squid is a fully-featured HTTP/1.0 proxy which is almost (but not quite)
  HTTP/1.1 compliant. Squid offers a rich access control, authorization and
  logging environment to develop web proxy and content serving applications.

  WWW: http://www.squid-cache.org/

message:
  [{"message":"o You can find the configuration files for this package in the\n       directory /usr/local/etc/squid.\n\n     o The default cache directory is /var/squid/cache/.\n       The default log directory is /var/log/squid/.\n\n       Note:\n       You must initialize new cache directories before you can start\n       squid.  Do this by running \"squid -z\" as 'root' or 'squid'.\n       If your cache directories are already initialized (e.g. after an\n       upgrade of squid) you do not need to initialize them again.\n\n     o When using DiskD storage scheme remember to read documentation:\n         http://wiki.squid-cache.org/Features/DiskDaemon\n       and alter your kern.ipc defaults in /boot/loader.conf. DiskD will not\n       work reliably without this. Last recomendations were:\n\n         kern.ipc.msgmnb=8192\n         kern.ipc.msgssz=64\n         kern.ipc.msgtql=2048\n\n     o The default configuration will deny everyone but the local host and\n       local networks as defined in RFC 1918 for IPv4 and RFCs 4193 and\n       4291 for IPv6 access to the proxy service.  Edit the \"http_access\n       allow/deny\" directives in /usr/local/etc/squid/squid.conf\n       to suit your needs.\n\n     o If AUTH_SQL option is set, please, don't forget to install one of\n       following perl modules depending on database you like:\n         databases/p5-DBD-mysql\n         databases/p5-DBD-Pg\n         databases/p5-DBD-SQLite\n\n     To enable Squid, set squid_enable=yes in either\n     /etc/rc.conf, /etc/rc.conf.local or /etc/rc.conf.d/squid\n     Please see /usr/local/etc/rc.d/squid for further details.\n\n     Note:\n     If you just updated your Squid installation from an earlier version,\n     make sure to check your Squid configuration against the 3.4 default\n     configuration file /usr/local/etc/squid/squid.conf.sample.\n\n     /usr/local/etc/squid/squid.conf.documented is a fully annotated\n     configuration file you can consult for further reference.\n\n     Additionally, you should check your configuration by calling\n     'squid -f /path/to/squid.conf -k parse' before starting Squid."}]


origin: security/strongswan
name: strongswan
version: 5.8.0
comment: Open Source IKEv2 IPsec-based VPN solution
arch: FreeBSD:11:amd64
maintainer: strongswan@nanoteq.com
www: http://www.strongswan.org
prefix: /usr/local
desc:
  Strongswan is an open source IPsec-based VPN solution.
  Strongswan for FreeBSD implements both the IKEv1 and IKEv2 (RFC 5996) key
  exchange protocols.

  WWW: http://www.strongswan.org


origin: security/sudo
name: sudo
version: 1.8.27_1
comment: Allow others to run commands as root
arch: FreeBSD:11:amd64
maintainer: garga@FreeBSD.org
www: http://www.sudo.ws/
prefix: /usr/local
desc:
  This is the CU version of sudo.

  Sudo is a program designed to allow a sysadmin to give limited root
  privileges to users and log root activity.  The basic philosophy is to
  give as few privileges as possible but still allow people to get their
  work done.

  WWW: http://www.sudo.ws/


origin: textproc/libyaml
name: libyaml
version: 0.2.2
comment: YAML 1.1 parser and emitter written in C
arch: FreeBSD:11:amd64
maintainer: jpaetzel@FreeBSD.org
www: https://pyyaml.org/wiki/LibYAML
prefix: /usr/local
desc:
  LibYAML is a YAML 1.1 parser and emitter written in C.

  LibYAML covers presenting and parsing processes. Thus LibYAML defines the
  following two processors:
     * Parser, which takes an input stream of bytes and produces a sequence
       of parsing events.
     * Emitter, which takes a sequence of events and produces a stream of
       bytes.

  The processes of parsing and presenting are inverse to each other. Any
  sequence of events produced by parsing a well-formed YAML document should
  be acceptable by the Emitter, which should produce an equivalent document.
  Similarly, any document produced by emitting a sequence of events should
  be acceptable for the Parser, which should produce an equivalent sequence
  of events.

  The job of resolving implicit tags, composing and serializing representation
  trees, as well as constructing and representing native objects is left to
  applications and bindings. Although some of these processes may be covered
  in the latter releases, they are not in the scope of the initial release of
  LibYAML.

  WWW: https://pyyaml.org/wiki/LibYAML


origin: net/libnet
name: libnet
version: 1.1.6_5,1
comment: C library for creating IP packets
arch: FreeBSD:11:amd64
maintainer: sunpoet@FreeBSD.org
www: https://sourceforge.net/projects/libnet-dev/
prefix: /usr/local
desc:
  Libnet is a high-level API (toolkit) allowing the application programmer to
  construct and inject network packets. It provides a portable and simplified
  interface for low-level network packet shaping, handling and injection.

  Libnet hides much of the tedium of packet creation from the application
  programmer such as multiplexing, buffer management, arcane packet header
  information, byte-ordering, OS-dependent issues, and much more.

  Libnet features portable packet creation interfaces at the IP layer
  and link layer, as well as a host of supplementary and complementary
  functionality.

  Using libnet, quick and simple packet assembly applications can be whipped up
  with little effort.  With a bit more time, more complex programs can be written
  (Traceroute and ping were easily rewritten using libnet and libpcap).

  WWW: https://sourceforge.net/projects/libnet-dev/
  WWW: https://github.com/sam-github/libnet


origin: devel/py-yaml
name: py27-yaml
version: 5.1
comment: Python YAML parser
arch: FreeBSD:11:*
maintainer: jpaetzel@FreeBSD.org
www: http://pyyaml.org
prefix: /usr/local
desc:
  PyYAML is a YAML parser and emitter for the Python programming language.

  PyYAML features :
     * a complete YAML 1.1 parser. In particular, PyYAML can parse all examples
       from the specification. The parsing algorithm is simple enough to be a
       reference for YAML parser implementors.
     * Unicode support including UTF-8/UTF-16 input/output and \u escape
       sequences.
     * low-level event-based parser and emitter API (like SAX).
     * high-level API for serializing and deserializing native Python objects
       (like DOM or pickle).
     * support for all types from the YAML types repository. A simple extension
       API is provided.
     * relatively sensible error messages.

  WWW: http://pyyaml.org


origin: devel/jansson
name: jansson
version: 2.12
comment: C library for encoding, decoding, and manipulating JSON data
arch: FreeBSD:11:amd64
maintainer: vanilla@FreeBSD.org
www: http://www.digip.org/jansson/
prefix: /usr/local
desc:
  Jansson is a C library for encoding, decoding and manipulating JSON
  data. Its main features and design principles are:

  - Simple and intuitive API and data model

  - Comprehensive documentation

  - No dependencies on other libraries

  - Full Unicode support (UTF-8)

  - Extensive test suite

  WWW: http://www.digip.org/jansson/


origin: devel/hyperscan
name: hyperscan
version: 4.7.0_2
comment: High-performance multiple regex matching library
arch: FreeBSD:11:amd64
maintainer: vsevolod@FreeBSD.org
www: https://www.hyperscan.io/
prefix: /usr/local
desc:
  Hyperscan is a high-performance multiple regex matching library. It follows the
  regular expression syntax of the commonly-used libpcre library, yet functions
  as a standalone library with its own API written in C.

  Hyperscan uses hybrid automata techniques to allow simultaneous matching of
  large numbers (up to tens of thousands) of regular expressions, as well as
  matching of regular expressions across streams of data.

  WWW: https://www.hyperscan.io/


origin: security/suricata
name: suricata
version: 4.1.4_3
comment: High Performance Network IDS, IPS and Security Monitoring engine
arch: FreeBSD:11:amd64
maintainer: franco@opnsense.org
www: https://suricata-ids.org
prefix: /usr/local
desc:
  The Suricata Engine is an Open Source Next Generation Intrusion Detection and
  Prevention Engine developed by the Open Information Security Foundation (OISF).

  This engine is not intended to just replace or emulate the existing tools in
  the industry, but will bring new ideas and technologies to the field.

  OISF is part of and funded by the Department of Homeland Security's Directorate
  for Science and Technology HOST program (Homeland Open Security Technology),
  by the Navy's Space and Naval Warfare Systems Command (SPAWAR), as well as
  through the very generous support of the members of the OISF Consortium.

  More information about the Consortium is available, as well as a list of our
  current Consortium Members.

  WWW: https://suricata-ids.org

message:
  [{"message":"===========================================================================\n\nIf you want to run Suricata in IDS mode, add to /etc/rc.conf:\n\n\tsuricata_enable=\"YES\"\n\tsuricata_interface=\"<if>\"\n\nNOTE: Declaring suricata_interface is MANDATORY for Suricata in IDS Mode.\n\nHowever, if you want to run Suricata in Inline IPS Mode in divert(4) mode,\nadd to /etc/rc.conf:\n\n\tsuricata_enable=\"YES\"\n\tsuricata_divertport=\"8000\"\n\nNOTE:\n\tSuricata won't start in IDS mode without an interface configured.\n\tTherefore if you omit suricata_interface from rc.conf, FreeBSD's\n\trc.d/suricata will automatically try to start Suricata in IPS Mode\n\t(on divert port 8000, by default).\n\nAlternatively, if you want to run Suricata in Inline IPS Mode in high-speed\nnetmap(4) mode, add to /etc/rc.conf:\n\n\tsuricata_enable=\"YES\"\n\tsuricata_netmap=\"YES\"\n\nNOTE:\n\tSuricata requires additional interface settings in the configuration\n\tfile to run in netmap(4) mode.\n\nRULES: Suricata IDS/IPS Engine comes without rules by default. You should\nadd rules by yourself and set an updating strategy. To do so, please visit:\n\n http://www.openinfosecfoundation.org/documentation/rules.html\n http://www.openinfosecfoundation.org/documentation/emerging-threats.html\n\nYou may want to try BPF in zerocopy mode to test performance improvements:\n\n\tsysctl -w net.bpf.zerocopy_enable=1\n\nDon't forget to add net.bpf.zerocopy_enable=1 to /etc/sysctl.conf\n\n==========================================================================="}]


origin: devel/json-c
name: json-c
version: 0.13.1
comment: JSON (JavaScript Object Notation) implementation in C
arch: FreeBSD:11:amd64
maintainer: sunpoet@FreeBSD.org
www: https://github.com/json-c/json-c/wiki
prefix: /usr/local
desc:
  This is a port of json-c, an implementation of json in C. Json, JavaScript
  Object Notation is a lightweight data exchange format and a subset of the
  JavaScript programming language.

  WWW: https://github.com/json-c/json-c/wiki


origin: sysutils/syslog-ng
name: syslog-ng
version: 3.21.1
comment: Powerful syslogd replacement
arch: FreeBSD:11:amd64
maintainer: cy@FreeBSD.org
www: http://www.syslog-ng.org/
prefix: /usr/local
desc:
  syslog-ng is an enhanced log daemon, supporting a wide range of input and
  output methods: syslog, unstructured text, message queues, databases (SQL
  and NoSQL alike) and more.

  Key features:

    * receive and send RFC3164 and RFC5424 style syslog messages
    * work with any kind of unstructured data
    * receive and send JSON formatted messages
    * classify and structure logs with builtin parsers (csv-parser(),
      db-parser(), ...)
    * normalize, crunch and process logs as they flow through the system
    * hand on messages for further processing using message queues (like
      AMQP), files or databases (like PostgreSQL or MongoDB).

  The official home page of syslog-ng is:
  WWW: http://www.syslog-ng.org/

message:
  [{"message":"syslog-ng is now installed!  To replace FreeBSD's standard syslogd\n(/usr/sbin/syslogd), complete these steps:\n\n1. Create a configuration file named /usr/local/etc/syslog-ng.conf\n   (a sample named syslog-ng.conf.sample has been included in\n   /usr/local/etc). Note that this is a change in 2.0.2\n   version, previous ones put the config file in\n   /usr/local/etc/syslog-ng/syslog-ng.conf, so if this is an update\n   move that file in the right place\n\n2. Configure syslog-ng to start automatically by adding the following\n   to /etc/rc.conf:\n\n        syslog_ng_enable=\"YES\"\n\n3. Prevent the standard FreeBSD syslogd from starting automatically by\n   adding a line to the end of your /etc/rc.conf file that reads:\n\n        syslogd_enable=\"NO\"\n\n4. Shut down the standard FreeBSD syslogd:\n\n     kill `cat /var/run/syslog.pid`\n\n5. Start syslog-ng:\n\n     /usr/local/etc/rc.d/syslog-ng start"}]


origin: textproc/expat2
name: expat
version: 2.2.6_1
comment: XML 1.0 parser written in C
arch: FreeBSD:11:amd64
maintainer: svysh.fbsd@gmail.com
www: https://github.com/libexpat/libexpat
prefix: /usr/local
desc:
  Expat is an XML 1.0 parser written in C. It aims to be fully
  conforming. It is currently not a validating XML processor.

  WWW: https://github.com/libexpat/libexpat


origin: dns/unbound
name: unbound
version: 1.9.2
comment: Validating, recursive, and caching DNS resolver
arch: FreeBSD:11:amd64
maintainer: jaap@NLnetLabs.nl
www: https://www.nlnetlabs.nl/projects/unbound
prefix: /usr/local
desc:
  Unbound is designed as a set of modular components, so that also
  DNSSEC (secure DNS) validation and stub-resolvers (that do not run as
  a server, but are linked into an application) are easily possible.

  Goals:
      * A validating recursive DNS resolver.
      * Code diversity in the DNS resolver monoculture.
      * Drop-in replacement for BIND apart from config.
      * DNSSEC support.
      * Fully RFC compliant.
      * High performance, even with validation enabled.
      * Used as: stub resolver, full caching name server, resolver library.
      * Elegant design of validator, resolver, cache modules.
            o provide the ability to pick and choose modules.
      * Robust.
      * In C, open source: The BSD license.
      * Smallest as possible component that does the job.
      * Stub-zones can be configured (local data or AS112 zones).

  Non-goals:
      * An authoritative name server.
      * Too many Features.

  WWW: https://www.nlnetlabs.nl/projects/unbound


origin: security/wpa_supplicant
name: wpa_supplicant
version: 2.8
comment: Supplicant (client) for WPA/802.1x protocols
arch: FreeBSD:11:amd64
maintainer: cy@FreeBSD.org
www: http://w1.fi/wpa_supplicant/
prefix: /usr/local
desc:
  wpa_supplicant is a client (supplicant) with support for WPA and WPA2
  (IEEE 802.11i / RSN). It is suitable for both desktop/laptop computers and
  embedded systems. Supplicant is the IEEE 802.1X/WPA component that is used
  in the client stations. It implements key negotiation with a WPA
  Authenticator and it controls the roaming and IEEE 802.11 authentication/
  association of the wlan driver.

  wpa_supplicant is designed to be a "daemon" program that runs in the
  background and acts as the backend component controlling the wireless
  connection. wpa_supplicant supports separate frontend programs and a
  text-based frontend (wpa_cli) and a GUI (wpa_gui) are included with
  wpa_supplicant.

  WWW: http://w1.fi/wpa_supplicant/

message:
  [{"message":"To use the ports version of WPA Supplicant instead of the base, add:\n\n    wpa_supplicant_program=\"/usr/local/sbin/wpa_supplicant\"\n\nto /etc/rc.conf"}]


origin: archivers/zip
name: zip
version: 3.0_1
comment: Create/update ZIP files compatible with PKZIP
arch: FreeBSD:11:amd64
maintainer: ler@FreeBSD.org
www: http://www.info-zip.org/Zip.html
prefix: /usr/local
desc:
  Zip is a compression and file packaging utility.  It is compatible with
  PKZIP 2.04g (Phil Katz ZIP) for MSDOS systems.  There is a companion to zip
  called unzip (of course) which you can also install from the ports/package
  system.

  WWW: http://www.info-zip.org/Zip.html


# script

script:
  case "etc/pkg.conf.sample" in
    /*) sample_file="etc/pkg.conf.sample" ;;
    *) sample_file="/usr/local/etc/pkg.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/pkg.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
  /usr/sbin/service ldconfig restart > /dev/null


script:
  case "etc/pkg.conf.sample" in
    /*) sample_file="etc/pkg.conf.sample" ;;
    *) sample_file="/usr/local/etc/pkg.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/pkg.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/pkg.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi


script:
  if [ -f /usr/local/etc/rc.d/configd ]; then /usr/local/etc/rc.d/configd restart; fi
  if [ -f /usr/local/opnsense/mvc/script/run_migrations.php ]; then /usr/local/opnsense/mvc/script/run_migrations.php OPNsense/DynamicDNS; fi
  if [ -f /usr/local/etc/rc.configure_plugins ]; then echo "Reloading plugin configuration"; /usr/local/etc/rc.configure_plugins POST_INSTALL; fi


script:
  if [ -f /usr/local/etc/rc.configure_plugins ]; then echo "Reloading plugin configuration"; /usr/local/etc/rc.configure_plugins POST_DEINSTALL; fi


script:
  case "etc/ssl/cert.pem.sample" in
    /*) sample_file="etc/ssl/cert.pem.sample" ;;
    *) sample_file="/usr/local/etc/ssl/cert.pem.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/ssl/cert.pem.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "openssl/cert.pem.sample" in
    /*) sample_file="openssl/cert.pem.sample" ;;
    *) sample_file="/usr/local/openssl/cert.pem.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- openssl/cert.pem.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
  [ ! -e /usr/local/bin/cert-sync ] || /usr/local/bin/cert-sync --quiet /usr/local/share/certs/ca-root-nss.crt


script:
  case "etc/ssl/cert.pem.sample" in
    /*) sample_file="etc/ssl/cert.pem.sample" ;;
    *) sample_file="/usr/local/etc/ssl/cert.pem.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/ssl/cert.pem.sample
    if [ $# -eq 2 ]; then
        set -- etc/ssl/cert.pem.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "openssl/cert.pem.sample" in
    /*) sample_file="openssl/cert.pem.sample" ;;
    *) sample_file="/usr/local/openssl/cert.pem.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- openssl/cert.pem.sample
    if [ $# -eq 2 ]; then
        set -- openssl/cert.pem.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi


script:
  /usr/sbin/service ldconfig restart > /dev/null
    case "/usr/local/share/info/gmp.info" in
    /*) file="/usr/local/share/info/gmp.info" ;;
     *) file="/usr/local//usr/local/share/info/gmp.info" ;;
    esac
    indexinfo ${PKG_ROOTDIR}${file%/*}


script:
  /usr/sbin/service ldconfig restart > /dev/null
    case "/usr/local/share/info/nettle.info" in
    /*) file="/usr/local/share/info/nettle.info" ;;
     *) file="/usr/local//usr/local/share/info/nettle.info" ;;
    esac
    indexinfo ${PKG_ROOTDIR}${file%/*}


script:
  case "etc/dnsmasq.conf.sample" in
    /*) sample_file="etc/dnsmasq.conf.sample" ;;
    *) sample_file="/usr/local/etc/dnsmasq.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/dnsmasq.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi


script:
  case "etc/dnsmasq.conf.sample" in
    /*) sample_file="etc/dnsmasq.conf.sample" ;;
    *) sample_file="/usr/local/etc/dnsmasq.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/dnsmasq.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/dnsmasq.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi


script:
  makewhatis /usr/local/lib/perl5/site_perl/man
  makewhatis /usr/local/lib/perl5/5.28/perl/man
  /usr/sbin/service ldconfig restart > /dev/null


script:
  case "lib/perl5/5.28/perl/man/whatis" in
  	/*) f="lib/perl5/5.28/perl/man/whatis" ;;
  	 *) f="/usr/local/lib/perl5/5.28/perl/man/whatis" ;;
  	esac
  	/bin/rm -f $f 2>/dev/null || /usr/bin/true
  	case "lib/perl5/5.28/perl/man/mandoc.db" in
  	/*) f="lib/perl5/5.28/perl/man/mandoc.db" ;;
  	 *) f="/usr/local/lib/perl5/5.28/perl/man/mandoc.db" ;;
  	esac
  	/bin/rm -f $f 2>/dev/null || /usr/bin/true
  	case "lib/perl5/site_perl/man/whatis" in
  	/*) f="lib/perl5/site_perl/man/whatis" ;;
  	 *) f="/usr/local/lib/perl5/site_perl/man/whatis" ;;
  	esac
  	/bin/rm -f $f 2>/dev/null || /usr/bin/true
  	case "lib/perl5/site_perl/man/mandoc.db" in
  	/*) f="lib/perl5/site_perl/man/mandoc.db" ;;
  	 *) f="/usr/local/lib/perl5/site_perl/man/mandoc.db" ;;
  	esac
  	/bin/rm -f $f 2>/dev/null || /usr/bin/true
  /usr/sbin/service ldconfig restart > /dev/null


script:
  if [ -n "${PKG_ROOTDIR}" ] && [ "${PKG_ROOTDIR}" != "/" ]; then
    PW="/usr/sbin/pw -R ${PKG_ROOTDIR}"
  else
    PW=/usr/sbin/pw
  fi
  echo "===> Creating groups."
  if ! ${PW} groupshow _flowd >/dev/null 2>&1; then
    echo "Creating group '_flowd' with gid '542'."
    ${PW} groupadd _flowd -g 542
  else
    echo "Using existing group '_flowd'."
  fi
  echo "===> Creating users"
  if ! ${PW} usershow _flowd >/dev/null 2>&1; then
    echo "Creating user '_flowd' with uid '542'."
    ${PW} useradd _flowd -u 542 -g 542  -c "flowd privilege separation user" -d /var/empty -s /usr/sbin/nologin
  else
    echo "Using existing user '_flowd'."
  fi


script:
  if [ -n "${PKG_ROOTDIR}" ] && [ "${PKG_ROOTDIR}" != "/" ]; then
    PW="/usr/sbin/pw -R ${PKG_ROOTDIR}"
  else
    PW=/usr/sbin/pw
  fi
  if ${PW} usershow _flowd >/dev/null 2>&1; then
    echo "==> You should manually remove the \"_flowd\" user. "
  fi
  if ${PW} groupshow _flowd >/dev/null 2>&1; then
    echo "==> You should manually remove the \"_flowd\" group "
  fi


script:
  #!/bin/sh
  #
  #	$FreeBSD$
  #

  FLOWD_USER=${FLOWD_USER:=_flowd}

  delete_user() {
  	if pw usershow ${FLOWD_USER} 2>/dev/null 1>&2; then
  		echo "To delete flowd privilege separation user permanently, use 'pw userdel ${FLOWD_USER}'"
  	fi

  }

  case $2 in
  	POST-DEINSTALL)
  		delete_user
  		;;

  esac


script:
  case "openssl/openssl.cnf.sample" in
    /*) sample_file="openssl/openssl.cnf.sample" ;;
    *) sample_file="/usr/local/openssl/openssl.cnf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- openssl/openssl.cnf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
  /usr/sbin/service ldconfig restart > /dev/null


script:
  case "openssl/openssl.cnf.sample" in
    /*) sample_file="openssl/openssl.cnf.sample" ;;
    *) sample_file="/usr/local/openssl/openssl.cnf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- openssl/openssl.cnf.sample
    if [ $# -eq 2 ]; then
        set -- openssl/openssl.cnf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi


script:
  if [ -n "${PKG_ROOTDIR}" ] && [ "${PKG_ROOTDIR}" != "/" ]; then
    PW="/usr/sbin/pw -R ${PKG_ROOTDIR}"
  else
    PW=/usr/sbin/pw
  fi
  echo "===> Creating groups."
  if ! ${PW} groupshow dhcpd >/dev/null 2>&1; then
    echo "Creating group 'dhcpd' with gid '136'."
    ${PW} groupadd dhcpd -g 136
  else
    echo "Using existing group 'dhcpd'."
  fi
  echo "===> Creating users"
  if ! ${PW} usershow dhcpd >/dev/null 2>&1; then
    echo "Creating user 'dhcpd' with uid '136'."
    ${PW} useradd dhcpd -u 136 -g 136  -c "ISC DHCP daemon" -d /nonexistent -s /usr/sbin/nologin
  else
    echo "Using existing user 'dhcpd'."
  fi


script:
  case "etc/dhcpd.conf.sample" in
    /*) sample_file="etc/dhcpd.conf.sample" ;;
    *) sample_file="/usr/local/etc/dhcpd.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/dhcpd.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/dhcpd6.conf.sample" in
    /*) sample_file="etc/dhcpd6.conf.sample" ;;
    *) sample_file="/usr/local/etc/dhcpd6.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/dhcpd6.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi


script:
  case "etc/dhcpd.conf.sample" in
    /*) sample_file="etc/dhcpd.conf.sample" ;;
    *) sample_file="/usr/local/etc/dhcpd.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/dhcpd.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/dhcpd.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/dhcpd6.conf.sample" in
    /*) sample_file="etc/dhcpd6.conf.sample" ;;
    *) sample_file="/usr/local/etc/dhcpd6.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/dhcpd6.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/dhcpd6.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi


script:
  if [ -n "${PKG_ROOTDIR}" ] && [ "${PKG_ROOTDIR}" != "/" ]; then
    PW="/usr/sbin/pw -R ${PKG_ROOTDIR}"
  else
    PW=/usr/sbin/pw
  fi
  if ${PW} usershow dhcpd >/dev/null 2>&1; then
    echo "==> You should manually remove the \"dhcpd\" user. "
  fi
  if ${PW} groupshow dhcpd >/dev/null 2>&1; then
    echo "==> You should manually remove the \"dhcpd\" group "
  fi


script:
  if [ -n "${PKG_ROOTDIR}" ] && [ "${PKG_ROOTDIR}" != "/" ]; then
    PW="/usr/sbin/pw -R ${PKG_ROOTDIR}"
  else
    PW=/usr/sbin/pw
  fi
  echo "===> Creating groups."
  if ! ${PW} groupshow www >/dev/null 2>&1; then
    echo "Creating group 'www' with gid '80'."
    ${PW} groupadd www -g 80
  else
    echo "Using existing group 'www'."
  fi
  echo "===> Creating users"
  if ! ${PW} usershow www >/dev/null 2>&1; then
    echo "Creating user 'www' with uid '80'."
    ${PW} useradd www -u 80 -g 80  -c "World Wide Web Owner" -d /nonexistent -s /usr/sbin/nologin
  else
    echo "Using existing user 'www'."
  fi


script:
  case "etc/lighttpd/lighttpd.conf.sample" in
    /*) sample_file="etc/lighttpd/lighttpd.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/lighttpd.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/lighttpd.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/lighttpd/modules.conf.sample" in
    /*) sample_file="etc/lighttpd/modules.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/modules.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/modules.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/lighttpd/conf.d/access_log.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/access_log.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/access_log.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/access_log.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/lighttpd/conf.d/auth.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/auth.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/auth.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/auth.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/lighttpd/conf.d/cgi.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/cgi.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/cgi.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/cgi.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/lighttpd/conf.d/cml.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/cml.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/cml.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/cml.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/lighttpd/conf.d/compress.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/compress.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/compress.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/compress.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/lighttpd/conf.d/debug.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/debug.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/debug.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/debug.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/lighttpd/conf.d/dirlisting.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/dirlisting.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/dirlisting.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/dirlisting.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/lighttpd/conf.d/evhost.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/evhost.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/evhost.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/evhost.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/lighttpd/conf.d/expire.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/expire.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/expire.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/expire.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/lighttpd/conf.d/fastcgi.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/fastcgi.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/fastcgi.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/fastcgi.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/lighttpd/conf.d/magnet.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/magnet.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/magnet.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/magnet.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/lighttpd/conf.d/mime.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/mime.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/mime.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/mime.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/lighttpd/conf.d/mysql_vhost.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/mysql_vhost.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/mysql_vhost.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/mysql_vhost.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/lighttpd/conf.d/proxy.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/proxy.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/proxy.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/proxy.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/lighttpd/conf.d/rrdtool.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/rrdtool.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/rrdtool.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/rrdtool.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/lighttpd/conf.d/scgi.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/scgi.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/scgi.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/scgi.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/lighttpd/conf.d/secdownload.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/secdownload.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/secdownload.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/secdownload.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/lighttpd/conf.d/simple_vhost.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/simple_vhost.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/simple_vhost.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/simple_vhost.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/lighttpd/conf.d/ssi.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/ssi.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/ssi.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/ssi.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/lighttpd/conf.d/status.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/status.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/status.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/status.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/lighttpd/conf.d/trigger_b4_dl.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/trigger_b4_dl.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/trigger_b4_dl.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/trigger_b4_dl.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/lighttpd/conf.d/userdir.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/userdir.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/userdir.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/userdir.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/lighttpd/conf.d/webdav.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/webdav.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/webdav.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/webdav.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi


script:
  case "etc/lighttpd/lighttpd.conf.sample" in
    /*) sample_file="etc/lighttpd/lighttpd.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/lighttpd.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/lighttpd.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/lighttpd/lighttpd.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/lighttpd/modules.conf.sample" in
    /*) sample_file="etc/lighttpd/modules.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/modules.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/modules.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/lighttpd/modules.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/lighttpd/conf.d/access_log.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/access_log.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/access_log.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/access_log.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/lighttpd/conf.d/access_log.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/lighttpd/conf.d/auth.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/auth.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/auth.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/auth.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/lighttpd/conf.d/auth.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/lighttpd/conf.d/cgi.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/cgi.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/cgi.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/cgi.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/lighttpd/conf.d/cgi.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/lighttpd/conf.d/cml.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/cml.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/cml.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/cml.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/lighttpd/conf.d/cml.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/lighttpd/conf.d/compress.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/compress.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/compress.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/compress.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/lighttpd/conf.d/compress.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/lighttpd/conf.d/debug.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/debug.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/debug.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/debug.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/lighttpd/conf.d/debug.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/lighttpd/conf.d/dirlisting.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/dirlisting.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/dirlisting.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/dirlisting.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/lighttpd/conf.d/dirlisting.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/lighttpd/conf.d/evhost.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/evhost.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/evhost.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/evhost.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/lighttpd/conf.d/evhost.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/lighttpd/conf.d/expire.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/expire.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/expire.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/expire.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/lighttpd/conf.d/expire.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/lighttpd/conf.d/fastcgi.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/fastcgi.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/fastcgi.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/fastcgi.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/lighttpd/conf.d/fastcgi.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/lighttpd/conf.d/magnet.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/magnet.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/magnet.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/magnet.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/lighttpd/conf.d/magnet.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/lighttpd/conf.d/mime.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/mime.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/mime.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/mime.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/lighttpd/conf.d/mime.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/lighttpd/conf.d/mysql_vhost.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/mysql_vhost.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/mysql_vhost.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/mysql_vhost.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/lighttpd/conf.d/mysql_vhost.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/lighttpd/conf.d/proxy.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/proxy.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/proxy.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/proxy.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/lighttpd/conf.d/proxy.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/lighttpd/conf.d/rrdtool.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/rrdtool.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/rrdtool.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/rrdtool.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/lighttpd/conf.d/rrdtool.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/lighttpd/conf.d/scgi.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/scgi.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/scgi.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/scgi.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/lighttpd/conf.d/scgi.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/lighttpd/conf.d/secdownload.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/secdownload.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/secdownload.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/secdownload.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/lighttpd/conf.d/secdownload.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/lighttpd/conf.d/simple_vhost.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/simple_vhost.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/simple_vhost.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/simple_vhost.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/lighttpd/conf.d/simple_vhost.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/lighttpd/conf.d/ssi.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/ssi.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/ssi.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/ssi.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/lighttpd/conf.d/ssi.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/lighttpd/conf.d/status.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/status.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/status.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/status.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/lighttpd/conf.d/status.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/lighttpd/conf.d/trigger_b4_dl.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/trigger_b4_dl.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/trigger_b4_dl.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/trigger_b4_dl.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/lighttpd/conf.d/trigger_b4_dl.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/lighttpd/conf.d/userdir.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/userdir.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/userdir.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/userdir.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/lighttpd/conf.d/userdir.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/lighttpd/conf.d/webdav.conf.sample" in
    /*) sample_file="etc/lighttpd/conf.d/webdav.conf.sample" ;;
    *) sample_file="/usr/local/etc/lighttpd/conf.d/webdav.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/lighttpd/conf.d/webdav.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/lighttpd/conf.d/webdav.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi


script:
  if [ -n "${PKG_ROOTDIR}" ] && [ "${PKG_ROOTDIR}" != "/" ]; then
    PW="/usr/sbin/pw -R ${PKG_ROOTDIR}"
  else
    PW=/usr/sbin/pw
  fi


script:
  case "etc/ssh/ssh_config.sample" in
    /*) sample_file="etc/ssh/ssh_config.sample" ;;
    *) sample_file="/usr/local/etc/ssh/ssh_config.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/ssh/ssh_config.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/ssh/sshd_config.sample" in
    /*) sample_file="etc/ssh/sshd_config.sample" ;;
    *) sample_file="/usr/local/etc/ssh/sshd_config.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/ssh/sshd_config.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
  if [ -f /usr/local/etc/ssh/ssh_host_ecdsa_key ] && grep -q DSA /usr/local/etc/ssh/ssh_host_ecdsa_key; then echo; echo "\!/ Warning \!/"; echo; echo "Your /usr/local/etc/ssh/ssh_host_ecdsa_key is not a valid ECDSA key. It is incorrectly"; echo "a DSA key due to a bug fixed in 2012 in the security/openssh-portable port."; echo; echo "Regenerate a proper one with: rm -f /usr/local/etc/ssh/ssh_host_ecdsa_key*; service openssh restart"; echo; echo "Clients should not see any key change warning since the ECDSA was not valid and was not actually"; echo "used by the server."; echo; echo "\!/ Warning \!/"; fi


script:
  case "etc/ssh/ssh_config.sample" in
    /*) sample_file="etc/ssh/ssh_config.sample" ;;
    *) sample_file="/usr/local/etc/ssh/ssh_config.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/ssh/ssh_config.sample
    if [ $# -eq 2 ]; then
        set -- etc/ssh/ssh_config.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/ssh/sshd_config.sample" in
    /*) sample_file="etc/ssh/sshd_config.sample" ;;
    *) sample_file="/usr/local/etc/ssh/sshd_config.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/ssh/sshd_config.sample
    if [ $# -eq 2 ]; then
        set -- etc/ssh/sshd_config.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi


script:
  case "etc/php-fpm.conf.default" in
    /*) sample_file="etc/php-fpm.conf.default" ;;
    *) sample_file="/usr/local/etc/php-fpm.conf.default" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/php-fpm.conf.default etc/php-fpm.conf
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/php-fpm.d/www.conf.default" in
    /*) sample_file="etc/php-fpm.d/www.conf.default" ;;
    *) sample_file="/usr/local/etc/php-fpm.d/www.conf.default" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/php-fpm.d/www.conf.default etc/php-fpm.d/www.conf
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
  touch /usr/local/include/php/ext/php_config.h


script:
  case "etc/php-fpm.conf.default" in
    /*) sample_file="etc/php-fpm.conf.default" ;;
    *) sample_file="/usr/local/etc/php-fpm.conf.default" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/php-fpm.conf.default etc/php-fpm.conf
    if [ $# -eq 2 ]; then
        set -- etc/php-fpm.conf.default etc/php-fpm.conf
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/php-fpm.d/www.conf.default" in
    /*) sample_file="etc/php-fpm.d/www.conf.default" ;;
    *) sample_file="/usr/local/etc/php-fpm.d/www.conf.default" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/php-fpm.d/www.conf.default etc/php-fpm.d/www.conf
    if [ $# -eq 2 ]; then
        set -- etc/php-fpm.d/www.conf.default etc/php-fpm.d/www.conf
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi


script:
  cp /usr/local/include/php/ext/php_config.h /usr/local/include/php/ext/php_config.h.orig
  grep -v ext/ctype/config.h /usr/local/include/php/ext/php_config.h.orig > /usr/local/include/php/ext/php_config.h || true
  /bin/rm -f /usr/local/include/php/ext/php_config.h.orig


script:
  cp /usr/local/include/php/ext/php_config.h /usr/local/include/php/ext/php_config.h.orig
  grep -v ext/curl/config.h /usr/local/include/php/ext/php_config.h.orig > /usr/local/include/php/ext/php_config.h || true
  /bin/rm -f /usr/local/include/php/ext/php_config.h.orig


script:
  cp /usr/local/include/php/ext/php_config.h /usr/local/include/php/ext/php_config.h.orig
  grep -v ext/dom/config.h /usr/local/include/php/ext/php_config.h.orig > /usr/local/include/php/ext/php_config.h || true
  /bin/rm -f /usr/local/include/php/ext/php_config.h.orig


script:
  cp /usr/local/include/php/ext/php_config.h /usr/local/include/php/ext/php_config.h.orig
  grep -v ext/filter/config.h /usr/local/include/php/ext/php_config.h.orig > /usr/local/include/php/ext/php_config.h || true
  /bin/rm -f /usr/local/include/php/ext/php_config.h.orig


script:
  /usr/sbin/service ldconfig restart > /dev/null
    case "/usr/local/share/info/autosprintf.info" in
    /*) file="/usr/local/share/info/autosprintf.info" ;;
     *) file="/usr/local//usr/local/share/info/autosprintf.info" ;;
    esac
    indexinfo ${PKG_ROOTDIR}${file%/*}


script:
  cp /usr/local/include/php/ext/php_config.h /usr/local/include/php/ext/php_config.h.orig
  grep -v ext/gettext/config.h /usr/local/include/php/ext/php_config.h.orig > /usr/local/include/php/ext/php_config.h || true
  /bin/rm -f /usr/local/include/php/ext/php_config.h.orig


script:
  cp /usr/local/include/php/ext/php_config.h /usr/local/include/php/ext/php_config.h.orig
  grep -v ext/hash/config.h /usr/local/include/php/ext/php_config.h.orig > /usr/local/include/php/ext/php_config.h || true
  /bin/rm -f /usr/local/include/php/ext/php_config.h.orig


script:
  cp /usr/local/include/php/ext/php_config.h /usr/local/include/php/ext/php_config.h.orig
  grep -v ext/json/config.h /usr/local/include/php/ext/php_config.h.orig > /usr/local/include/php/ext/php_config.h || true
  /bin/rm -f /usr/local/include/php/ext/php_config.h.orig


script:
  #!/bin/sh
  #
  #	$FreeBSD$
  #
  # Created by: stb@FreeBSD.org for the cyrus imap server
  # Added to the cyrus-sasl port by hetzels@westbend.net

  #set -vx

  PKG_BATCH=${BATCH:=NO}
  PKG_PREFIX=${PKG_PREFIX:=/usr/local}
  SASLDB_NAME=sasldb2.db
  SASLDB_NAME=${SASLDB_NAME:+${PKG_PREFIX}/etc/sasldb2.db}
  CYRUS_USER=${CYRUS_USER:=cyrus}
  CYRUS_GROUP=${CYRUS_GROUP:=cyrus}

  #
  # create 'cyrus' user and group before installing
  #
  create_user() {
  	USER=${CYRUS_USER}
  	GROUP=${CYRUS_GROUP}
  	PW=/usr/sbin/pw

  	if [ -x /usr/sbin/nologin ]; then
  		shell=/usr/sbin/nologin
  	elif [ -x /sbin/nologin ]; then
  		shell=/sbin/nologin
  	else
  		shell=/nonexistent
  	fi
  	uhome="/nonexistent"

  	if ! ${PW} show group ${GROUP} -q >/dev/null; then
  		gid=60
  		while ${PW} show group -g ${gid} -q >/dev/null; do
  			gid=`expr ${gid} + 1`
  		done
  		if ! ${PW} add group ${GROUP} -g ${gid}; then
  			e=$?
  			echo "*** Failed to add group \`${GROUP}'. Please add it manually."
  			exit ${e}
  		fi
  		echo "*** Added group \`${GROUP}' (id ${gid})"
  	else
  		gid=`${PW} show group ${GROUP} 2>/dev/null | cut -d: -f3`
  	fi

  	if ! ${PW} show user ${USER} -q >/dev/null; then
  		uid=60
  		while ${PW} show user -u ${uid} -q >/dev/null; do
  			uid=`expr ${uid} + 1`
  		done
  		if ! ${PW} add user ${USER} -u ${uid} -g ${gid} -d "${uhome}" \
  				-c "the cyrus mail server" -s "${shell}" -w no \
  				; then
  			e=$?
  			echo "*** Failed to add user \`${USER}'. Please add it manually."
  			exit ${e}
  		fi
  		echo "*** Added user \`${USER}' (id ${uid})"
  	else
  		if ! ${PW} mod user ${USER} -g ${gid}; then
  			e=$?
  			echo "*** Failed to update user \`${USER}'."
  			exit ${e}
  		fi
  		echo "*** Updated user \`${USER}'."
  	fi
  }

  create_sasldb() {
  	if [ ! -f ${SASLDB_NAME} ]; then
  		echo "test" | ${PKG_PREFIX}/sbin/saslpasswd2 -p -c ${CYRUS_USER}
  		if [ `${PKG_PREFIX}/sbin/sasldblistusers2 | wc -l` -eq 0 ] ; then
                          echo "WARNING: Failed to create ${SASLDB_NAME}"
                  else
  			${PKG_PREFIX}/sbin/saslpasswd2 -d ${CYRUS_USER}
  			chown ${CYRUS_USER}:mail ${SASLDB_NAME}
  			chmod 640 ${SASLDB_NAME}
  			if [ -f ${SASLDB_NAME}-lock ]; then
  				chown ${CYRUS_USER}:mail ${SASLDB_NAME}-lock
  				chmod 640 ${SASLDB_NAME}-lock
  			fi
  		fi
  	fi
  }

  case $2 in
  	PRE-INSTALL)
  		create_user
  		;;
  	POST-INSTALL)
  		if [ "${PKG_BATCH}" = "NO" ]; then
  			if [ -n "${SASLDB_NAME}" ]; then
  				create_sasldb
  			fi
  		elif [ -n "${SASLDB_NAME}" -a ! -f ${SASLDB_NAME} ]; then
  			echo "*** We do not create ${SASLDB_NAME} automatically in"
  			echo "*** BATCH mode.  Please create it by yourself.  It should be"
  			echo "*** owner: ${CYRUS_USER}, group: mail, mode: 0640."
  		fi
  		;;
  esac


script:
  #!/bin/sh
  #
  #	$FreeBSD$
  #
  # Created by: hetzels@westbend.net

  #set -vx

  PKG_BATCH=${BATCH:=NO}
  PKG_PREFIX=${PKG_PREFIX:=/usr/local}
  SASLDB_NAME=sasldb2.db
  SASLDB_NAME=${SASLDB_NAME:+${PKG_PREFIX}/etc/sasldb2.db}
  CYRUS_USER=${CYRUS_USER:=cyrus}
  CYRUS_GROUP=${CYRUS_GROUP:=cyrus}

  # delete sasldb database
  delete_sasldb() {
  	if [ -f ${SASLDB_NAME} ] ; then
  		if [ `${PKG_PREFIX}/sbin/sasldblistusers2 | wc -l` -eq 0 ]; then
  			rm ${SASLDB_NAME}
  			if [ -f ${SASLDB_NAME}-lock ] ; then
  				rm ${SASLDB_NAME}-lock
  			fi
  		else
  			echo "WARNING: Users SASL passwords are in ${SASLDB_NAME}, keeping this file"
  		fi
  	fi
  }

  delete_user() {
  	if pw usershow ${CYRUS_USER} 2>/dev/null 1>&2; then
  		echo "To delete Cyrus user permanently, use 'pw userdel ${CYRUS_USER}'"
  	fi
  	if pw groupshow ${CYRUS_GROUP} 2>/dev/null 1>&2; then
  		echo "To delete Cyrus group permanently, use 'pw groupdel ${CYRUS_GROUP}'"
  	fi

  }

  case $2 in
  	DEINSTALL)
  		if [ -n "${SASLDB_NAME}" ]; then
  			delete_sasldb
  		fi
  		;;
  	POST-DEINSTALL)
  		delete_user
  		;;
  esac


script:
  case "/usr/local/etc/openldap/ldap.conf.sample" in
    /*) sample_file="/usr/local/etc/openldap/ldap.conf.sample" ;;
    *) sample_file="/usr/local//usr/local/etc/openldap/ldap.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- /usr/local/etc/openldap/ldap.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
  /usr/sbin/service ldconfig restart > /dev/null


script:
  case "/usr/local/etc/openldap/ldap.conf.sample" in
    /*) sample_file="/usr/local/etc/openldap/ldap.conf.sample" ;;
    *) sample_file="/usr/local//usr/local/etc/openldap/ldap.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- /usr/local/etc/openldap/ldap.conf.sample
    if [ $# -eq 2 ]; then
        set -- /usr/local/etc/openldap/ldap.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi


script:
  cp /usr/local/include/php/ext/php_config.h /usr/local/include/php/ext/php_config.h.orig
  grep -v ext/ldap/config.h /usr/local/include/php/ext/php_config.h.orig > /usr/local/include/php/ext/php_config.h || true
  /bin/rm -f /usr/local/include/php/ext/php_config.h.orig


script:
  cp /usr/local/include/php/ext/php_config.h /usr/local/include/php/ext/php_config.h.orig
  grep -v ext/openssl/config.h /usr/local/include/php/ext/php_config.h.orig > /usr/local/include/php/ext/php_config.h || true
  /bin/rm -f /usr/local/include/php/ext/php_config.h.orig


script:
  cp /usr/local/include/php/ext/php_config.h /usr/local/include/php/ext/php_config.h.orig
  grep -v ext/pdo/config.h /usr/local/include/php/ext/php_config.h.orig > /usr/local/include/php/ext/php_config.h || true
  /bin/rm -f /usr/local/include/php/ext/php_config.h.orig


script:
  cp /usr/local/include/php/ext/php_config.h /usr/local/include/php/ext/php_config.h.orig
  grep -v ext/radius/config.h /usr/local/include/php/ext/php_config.h.orig > /usr/local/include/php/ext/php_config.h || true
  /bin/rm -f /usr/local/include/php/ext/php_config.h.orig


script:
  cp /usr/local/include/php/ext/php_config.h /usr/local/include/php/ext/php_config.h.orig
  grep -v ext/phalcon/config.h /usr/local/include/php/ext/php_config.h.orig > /usr/local/include/php/ext/php_config.h || true
  /bin/rm -f /usr/local/include/php/ext/php_config.h.orig


script:
  cp /usr/local/include/php/ext/php_config.h /usr/local/include/php/ext/php_config.h.orig
  grep -v ext/session/config.h /usr/local/include/php/ext/php_config.h.orig > /usr/local/include/php/ext/php_config.h || true
  /bin/rm -f /usr/local/include/php/ext/php_config.h.orig


script:
  cp /usr/local/include/php/ext/php_config.h /usr/local/include/php/ext/php_config.h.orig
  grep -v ext/simplexml/config.h /usr/local/include/php/ext/php_config.h.orig > /usr/local/include/php/ext/php_config.h || true
  /bin/rm -f /usr/local/include/php/ext/php_config.h.orig


script:
  cp /usr/local/include/php/ext/php_config.h /usr/local/include/php/ext/php_config.h.orig
  grep -v ext/sockets/config.h /usr/local/include/php/ext/php_config.h.orig > /usr/local/include/php/ext/php_config.h || true
  /bin/rm -f /usr/local/include/php/ext/php_config.h.orig


script:
  /usr/sbin/service ldconfig restart > /dev/null
    case "/usr/local/share/info/history.info" in
    /*) file="/usr/local/share/info/history.info" ;;
     *) file="/usr/local//usr/local/share/info/history.info" ;;
    esac
    indexinfo ${PKG_ROOTDIR}${file%/*}
    case "/usr/local/share/info/readline.info" in
    /*) file="/usr/local/share/info/readline.info" ;;
     *) file="/usr/local//usr/local/share/info/readline.info" ;;
    esac
    indexinfo ${PKG_ROOTDIR}${file%/*}
    case "/usr/local/share/info/rluserman.info" in
    /*) file="/usr/local/share/info/rluserman.info" ;;
     *) file="/usr/local//usr/local/share/info/rluserman.info" ;;
    esac
    indexinfo ${PKG_ROOTDIR}${file%/*}


script:
  cp /usr/local/include/php/ext/php_config.h /usr/local/include/php/ext/php_config.h.orig
  grep -v ext/sqlite3/config.h /usr/local/include/php/ext/php_config.h.orig > /usr/local/include/php/ext/php_config.h || true
  /bin/rm -f /usr/local/include/php/ext/php_config.h.orig


script:
  cp /usr/local/include/php/ext/php_config.h /usr/local/include/php/ext/php_config.h.orig
  grep -v ext/xml/config.h /usr/local/include/php/ext/php_config.h.orig > /usr/local/include/php/ext/php_config.h || true
  /bin/rm -f /usr/local/include/php/ext/php_config.h.orig


script:
  cp /usr/local/include/php/ext/php_config.h /usr/local/include/php/ext/php_config.h.orig
  grep -v ext/zlib/config.h /usr/local/include/php/ext/php_config.h.orig > /usr/local/include/php/ext/php_config.h || true
  /bin/rm -f /usr/local/include/php/ext/php_config.h.orig


script:
  /usr/sbin/service ldconfig restart > /dev/null
    case "/usr/local/share/info/libffi.info" in
    /*) file="/usr/local/share/info/libffi.info" ;;
     *) file="/usr/local//usr/local/share/info/libffi.info" ;;
    esac
    indexinfo ${PKG_ROOTDIR}${file%/*}


script:
  case "lib/python3.7/site-packages/easy-install.pth.dist" in
    /*) sample_file="lib/python3.7/site-packages/easy-install.pth.dist" ;;
    *) sample_file="/usr/local/lib/python3.7/site-packages/easy-install.pth.dist" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- lib/python3.7/site-packages/easy-install.pth.dist lib/python3.7/site-packages/easy-install.pth
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi


script:
  case "lib/python3.7/site-packages/easy-install.pth.dist" in
    /*) sample_file="lib/python3.7/site-packages/easy-install.pth.dist" ;;
    *) sample_file="/usr/local/lib/python3.7/site-packages/easy-install.pth.dist" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- lib/python3.7/site-packages/easy-install.pth.dist lib/python3.7/site-packages/easy-install.pth
    if [ $# -eq 2 ]; then
        set -- lib/python3.7/site-packages/easy-install.pth.dist lib/python3.7/site-packages/easy-install.pth
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi


script:
  /usr/local/bin/glib-compile-schemas /usr/local/share/glib-2.0/schemas 2>/dev/null || /usr/bin/true
  /usr/local/bin/gio-querymodules /usr/local/lib/gio/modules 2>/dev/null || /usr/bin/true
  /usr/sbin/service ldconfig restart > /dev/null


script:
  /bin/rm -f /usr/local/share/glib-2.0/schemas/gschemas.compiled || /usr/bin/true
  /usr/sbin/service ldconfig restart > /dev/null


script:
  if [ -n "${PKG_ROOTDIR}" ] && [ "${PKG_ROOTDIR}" != "/" ]; then
    PW="/usr/sbin/pw -R ${PKG_ROOTDIR}"
  else
    PW=/usr/sbin/pw
  fi
  echo "===> Creating groups."
  if ! ${PW} groupshow squid >/dev/null 2>&1; then
    echo "Creating group 'squid' with gid '100'."
    ${PW} groupadd squid -g 100
  else
    echo "Using existing group 'squid'."
  fi
  echo "===> Creating users"
  if ! ${PW} usershow squid >/dev/null 2>&1; then
    echo "Creating user 'squid' with uid '100'."
    ${PW} useradd squid -u 100 -g 100  -c "squid caching-proxy pseudo user" -d /var/squid -s /usr/sbin/nologin
  else
    echo "Using existing user 'squid'."
  fi
  install -d -g squid -o squid /var/squid


script:
  case "etc/squid/cachemgr.conf.sample" in
    /*) sample_file="etc/squid/cachemgr.conf.sample" ;;
    *) sample_file="/usr/local/etc/squid/cachemgr.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/squid/cachemgr.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/squid/errorpage.css.sample" in
    /*) sample_file="etc/squid/errorpage.css.sample" ;;
    *) sample_file="/usr/local/etc/squid/errorpage.css.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/squid/errorpage.css.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/squid/mime.conf.sample" in
    /*) sample_file="etc/squid/mime.conf.sample" ;;
    *) sample_file="/usr/local/etc/squid/mime.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/squid/mime.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/squid/squid.conf.sample" in
    /*) sample_file="etc/squid/squid.conf.sample" ;;
    *) sample_file="/usr/local/etc/squid/squid.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/squid/squid.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi


script:
  case "etc/squid/cachemgr.conf.sample" in
    /*) sample_file="etc/squid/cachemgr.conf.sample" ;;
    *) sample_file="/usr/local/etc/squid/cachemgr.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/squid/cachemgr.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/squid/cachemgr.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/squid/errorpage.css.sample" in
    /*) sample_file="etc/squid/errorpage.css.sample" ;;
    *) sample_file="/usr/local/etc/squid/errorpage.css.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/squid/errorpage.css.sample
    if [ $# -eq 2 ]; then
        set -- etc/squid/errorpage.css.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/squid/mime.conf.sample" in
    /*) sample_file="etc/squid/mime.conf.sample" ;;
    *) sample_file="/usr/local/etc/squid/mime.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/squid/mime.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/squid/mime.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/squid/squid.conf.sample" in
    /*) sample_file="etc/squid/squid.conf.sample" ;;
    *) sample_file="/usr/local/etc/squid/squid.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/squid/squid.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/squid/squid.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi


script:
  if [ -n "${PKG_ROOTDIR}" ] && [ "${PKG_ROOTDIR}" != "/" ]; then
    PW="/usr/sbin/pw -R ${PKG_ROOTDIR}"
  else
    PW=/usr/sbin/pw
  fi
  if ${PW} usershow squid >/dev/null 2>&1; then
    echo "==> You should manually remove the \"squid\" user. "
  fi
  if ${PW} groupshow squid >/dev/null 2>&1; then
    echo "==> You should manually remove the \"squid\" group "
  fi


script:
  #!/bin/sh
  #
  # $FreeBSD$
  #

  PATH=/bin:/usr/bin:/usr/sbin
  pkgname=$1
  squid_homedir="/var/squid"
  squid_cache_basedir="${squid_homedir}/cache"
  squid_confdir="${PKG_PREFIX:-/usr/local}/etc/squid"
  squid_logdir="/var/log/squid"
  # these are hardcoded, see /usr/ports/UIDs and /usr/ports/GIDs:
  squid_user=squid
  squid_group=squid
  squid_gid=100
  squid_uid=100
  case $2 in
  PRE-INSTALL)
  	echo "===> Pre-installation configuration for ${pkgname}"
  	;;
  POST-INSTALL)
  	# Since we usually start the Squid master process as ${squid_user}
  	# instead of root make sure that ${squid_homedir} is writable for it.
  	if [ ! -d ${squid_homedir} ]; then
  		echo "Creating ${squid_homedir}..."
  		install -d -o root -g ${squid_group} \
  		    -m 0775 ${squid_homedir}
  	else
  		chgrp ${squid_group} ${squid_homedir}
  		chmod g+w ${squid_homedir}
  	fi
  	if [ ! -d ${squid_cache_basedir} ]; then
  		echo "Creating ${squid_cache_basedir} ..."
  		install -d -o ${squid_user} -g ${squid_group} \
  		    -m 0750 ${squid_cache_basedir}
  	else
  		chown ${squid_user} ${squid_cache_basedir}
  		chgrp ${squid_group} ${squid_cache_basedir}
  		chmod 0750 ${squid_cache_basedir}
  	fi
  	if [ ! -d ${squid_confdir} ]; then
  		echo "Creating ${squid_confdir}..."
  		install -d -o root -g ${squid_group} \
  		    -m 0755 ${squid_confdir}
  	else
  		chgrp ${squid_group} ${squid_confdir}
  	fi
  	if [ ! -d ${squid_logdir} ]; then
  		echo "Creating ${squid_logdir}..."
  		install -d -o ${squid_user} -g ${squid_group} \
  		    -m 0750 ${squid_logdir}
  	else
  		chown ${squid_user} ${squid_logdir}
  		chgrp ${squid_group} ${squid_logdir}
  	fi
  	for file in cachemgr.conf errorpage.css mime.conf msntauth.conf squid.conf; do
  		if [ ! -f ${squid_confdir}/${file} \
  		    -a -f ${squid_confdir}/${file}.default ]; then
  			echo "Creating ${file} from default..."
  			install -c -o root -g ${squid_group} -m 0640 \
  		    	    ${squid_confdir}/${file}.default \
  			    ${squid_confdir}/${file}
  		fi
  	done
  	;;
  *)
  	exit 64
  	;;
  esac
  exit 0


script:
  case "etc/ipsec.conf.sample" in
    /*) sample_file="etc/ipsec.conf.sample" ;;
    *) sample_file="/usr/local/etc/ipsec.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/ipsec.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/ipsec.secrets.sample" in
    /*) sample_file="etc/ipsec.secrets.sample" ;;
    *) sample_file="/usr/local/etc/ipsec.secrets.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/ipsec.secrets.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.conf.sample" in
    /*) sample_file="etc/strongswan.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon-logging.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon-logging.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon-logging.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon-logging.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/addrblock.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/addrblock.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/addrblock.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/addrblock.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/aes.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/aes.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/aes.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/aes.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/attr.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/attr.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/attr.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/attr.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/blowfish.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/blowfish.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/blowfish.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/blowfish.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/cmac.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/cmac.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/cmac.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/cmac.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/constraints.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/constraints.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/constraints.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/constraints.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/counters.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/counters.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/counters.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/counters.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/curve25519.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/curve25519.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/curve25519.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/curve25519.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/des.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/des.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/des.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/des.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/dnskey.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/dnskey.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/dnskey.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/dnskey.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/eap-identity.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/eap-identity.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/eap-identity.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/eap-identity.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/eap-md5.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/eap-md5.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/eap-md5.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/eap-md5.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/eap-mschapv2.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/eap-mschapv2.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/eap-mschapv2.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/eap-mschapv2.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/eap-peap.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/eap-peap.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/eap-peap.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/eap-peap.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/eap-radius.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/eap-radius.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/eap-radius.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/eap-radius.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/eap-tls.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/eap-tls.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/eap-tls.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/eap-tls.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/eap-ttls.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/eap-ttls.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/eap-ttls.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/eap-ttls.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/fips-prf.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/fips-prf.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/fips-prf.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/fips-prf.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/gcm.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/gcm.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/gcm.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/gcm.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/hmac.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/hmac.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/hmac.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/hmac.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/kernel-pfkey.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/kernel-pfkey.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/kernel-pfkey.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/kernel-pfkey.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/kernel-pfroute.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/kernel-pfroute.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/kernel-pfroute.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/kernel-pfroute.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/md4.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/md4.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/md4.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/md4.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/md5.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/md5.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/md5.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/md5.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/nonce.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/nonce.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/nonce.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/nonce.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/openssl.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/openssl.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/openssl.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/openssl.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/pem.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/pem.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/pem.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/pem.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/pgp.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/pgp.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/pgp.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/pgp.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/pkcs1.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/pkcs1.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/pkcs1.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/pkcs1.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/pkcs12.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/pkcs12.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/pkcs12.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/pkcs12.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/pkcs7.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/pkcs7.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/pkcs7.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/pkcs7.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/pkcs8.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/pkcs8.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/pkcs8.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/pkcs8.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/pubkey.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/pubkey.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/pubkey.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/pubkey.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/random.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/random.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/random.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/random.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/rc2.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/rc2.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/rc2.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/rc2.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/resolve.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/resolve.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/resolve.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/resolve.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/revocation.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/revocation.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/revocation.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/revocation.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/sha1.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/sha1.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/sha1.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/sha1.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/sha2.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/sha2.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/sha2.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/sha2.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/socket-default.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/socket-default.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/socket-default.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/socket-default.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/sshkey.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/sshkey.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/sshkey.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/sshkey.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/stroke.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/stroke.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/stroke.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/stroke.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/updown.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/updown.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/updown.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/updown.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/vici.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/vici.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/vici.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/vici.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/whitelist.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/whitelist.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/whitelist.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/whitelist.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/x509.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/x509.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/x509.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/x509.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/xauth-eap.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/xauth-eap.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/xauth-eap.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/xauth-eap.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/xauth-generic.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/xauth-generic.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/xauth-generic.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/xauth-generic.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/xauth-pam.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/xauth-pam.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/xauth-pam.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/xauth-pam.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/charon/xcbc.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/xcbc.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/xcbc.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/xcbc.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/pki.conf.sample" in
    /*) sample_file="etc/strongswan.d/pki.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/pki.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/pki.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/starter.conf.sample" in
    /*) sample_file="etc/strongswan.d/starter.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/starter.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/starter.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/strongswan.d/swanctl.conf.sample" in
    /*) sample_file="etc/strongswan.d/swanctl.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/swanctl.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/swanctl.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/swanctl/swanctl.conf.sample" in
    /*) sample_file="etc/swanctl/swanctl.conf.sample" ;;
    *) sample_file="/usr/local/etc/swanctl/swanctl.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/swanctl/swanctl.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
  /usr/sbin/service ldconfig restart > /dev/null


script:
  case "etc/ipsec.conf.sample" in
    /*) sample_file="etc/ipsec.conf.sample" ;;
    *) sample_file="/usr/local/etc/ipsec.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/ipsec.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/ipsec.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/ipsec.secrets.sample" in
    /*) sample_file="etc/ipsec.secrets.sample" ;;
    *) sample_file="/usr/local/etc/ipsec.secrets.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/ipsec.secrets.sample
    if [ $# -eq 2 ]; then
        set -- etc/ipsec.secrets.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.conf.sample" in
    /*) sample_file="etc/strongswan.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon-logging.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon-logging.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon-logging.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon-logging.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon-logging.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/addrblock.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/addrblock.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/addrblock.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/addrblock.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/addrblock.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/aes.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/aes.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/aes.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/aes.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/aes.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/attr.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/attr.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/attr.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/attr.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/attr.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/blowfish.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/blowfish.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/blowfish.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/blowfish.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/blowfish.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/cmac.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/cmac.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/cmac.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/cmac.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/cmac.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/constraints.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/constraints.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/constraints.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/constraints.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/constraints.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/counters.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/counters.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/counters.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/counters.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/counters.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/curve25519.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/curve25519.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/curve25519.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/curve25519.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/curve25519.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/des.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/des.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/des.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/des.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/des.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/dnskey.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/dnskey.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/dnskey.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/dnskey.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/dnskey.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/eap-identity.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/eap-identity.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/eap-identity.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/eap-identity.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/eap-identity.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/eap-md5.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/eap-md5.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/eap-md5.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/eap-md5.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/eap-md5.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/eap-mschapv2.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/eap-mschapv2.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/eap-mschapv2.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/eap-mschapv2.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/eap-mschapv2.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/eap-peap.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/eap-peap.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/eap-peap.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/eap-peap.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/eap-peap.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/eap-radius.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/eap-radius.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/eap-radius.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/eap-radius.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/eap-radius.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/eap-tls.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/eap-tls.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/eap-tls.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/eap-tls.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/eap-tls.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/eap-ttls.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/eap-ttls.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/eap-ttls.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/eap-ttls.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/eap-ttls.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/fips-prf.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/fips-prf.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/fips-prf.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/fips-prf.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/fips-prf.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/gcm.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/gcm.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/gcm.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/gcm.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/gcm.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/hmac.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/hmac.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/hmac.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/hmac.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/hmac.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/kernel-pfkey.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/kernel-pfkey.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/kernel-pfkey.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/kernel-pfkey.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/kernel-pfkey.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/kernel-pfroute.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/kernel-pfroute.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/kernel-pfroute.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/kernel-pfroute.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/kernel-pfroute.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/md4.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/md4.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/md4.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/md4.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/md4.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/md5.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/md5.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/md5.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/md5.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/md5.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/nonce.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/nonce.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/nonce.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/nonce.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/nonce.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/openssl.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/openssl.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/openssl.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/openssl.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/openssl.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/pem.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/pem.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/pem.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/pem.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/pem.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/pgp.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/pgp.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/pgp.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/pgp.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/pgp.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/pkcs1.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/pkcs1.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/pkcs1.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/pkcs1.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/pkcs1.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/pkcs12.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/pkcs12.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/pkcs12.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/pkcs12.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/pkcs12.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/pkcs7.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/pkcs7.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/pkcs7.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/pkcs7.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/pkcs7.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/pkcs8.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/pkcs8.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/pkcs8.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/pkcs8.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/pkcs8.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/pubkey.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/pubkey.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/pubkey.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/pubkey.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/pubkey.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/random.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/random.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/random.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/random.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/random.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/rc2.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/rc2.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/rc2.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/rc2.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/rc2.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/resolve.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/resolve.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/resolve.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/resolve.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/resolve.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/revocation.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/revocation.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/revocation.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/revocation.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/revocation.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/sha1.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/sha1.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/sha1.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/sha1.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/sha1.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/sha2.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/sha2.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/sha2.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/sha2.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/sha2.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/socket-default.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/socket-default.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/socket-default.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/socket-default.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/socket-default.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/sshkey.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/sshkey.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/sshkey.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/sshkey.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/sshkey.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/stroke.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/stroke.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/stroke.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/stroke.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/stroke.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/updown.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/updown.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/updown.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/updown.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/updown.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/vici.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/vici.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/vici.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/vici.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/vici.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/whitelist.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/whitelist.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/whitelist.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/whitelist.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/whitelist.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/x509.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/x509.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/x509.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/x509.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/x509.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/xauth-eap.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/xauth-eap.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/xauth-eap.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/xauth-eap.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/xauth-eap.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/xauth-generic.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/xauth-generic.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/xauth-generic.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/xauth-generic.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/xauth-generic.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/xauth-pam.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/xauth-pam.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/xauth-pam.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/xauth-pam.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/xauth-pam.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/charon/xcbc.conf.sample" in
    /*) sample_file="etc/strongswan.d/charon/xcbc.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/charon/xcbc.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/charon/xcbc.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/charon/xcbc.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/pki.conf.sample" in
    /*) sample_file="etc/strongswan.d/pki.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/pki.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/pki.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/pki.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/starter.conf.sample" in
    /*) sample_file="etc/strongswan.d/starter.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/starter.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/starter.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/starter.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/strongswan.d/swanctl.conf.sample" in
    /*) sample_file="etc/strongswan.d/swanctl.conf.sample" ;;
    *) sample_file="/usr/local/etc/strongswan.d/swanctl.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/strongswan.d/swanctl.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/strongswan.d/swanctl.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/swanctl/swanctl.conf.sample" in
    /*) sample_file="etc/swanctl/swanctl.conf.sample" ;;
    *) sample_file="/usr/local/etc/swanctl/swanctl.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/swanctl/swanctl.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/swanctl/swanctl.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi


script:
  case "etc/sudoers.dist" in
    /*) sample_file="etc/sudoers.dist" ;;
    *) sample_file="/usr/local/etc/sudoers.dist" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/sudoers.dist etc/sudoers
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/pam.d/sudo.default" in
    /*) sample_file="etc/pam.d/sudo.default" ;;
    *) sample_file="/usr/local/etc/pam.d/sudo.default" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/pam.d/sudo.default etc/pam.d/sudo
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
  /usr/sbin/service ldconfig restart > /dev/null


script:
  case "etc/sudoers.dist" in
    /*) sample_file="etc/sudoers.dist" ;;
    *) sample_file="/usr/local/etc/sudoers.dist" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/sudoers.dist etc/sudoers
    if [ $# -eq 2 ]; then
        set -- etc/sudoers.dist etc/sudoers
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/pam.d/sudo.default" in
    /*) sample_file="etc/pam.d/sudo.default" ;;
    *) sample_file="/usr/local/etc/pam.d/sudo.default" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/pam.d/sudo.default etc/pam.d/sudo
    if [ $# -eq 2 ]; then
        set -- etc/pam.d/sudo.default etc/pam.d/sudo
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi


script:
  case "lib/python2.7/site-packages/easy-install.pth.dist" in
    /*) sample_file="lib/python2.7/site-packages/easy-install.pth.dist" ;;
    *) sample_file="/usr/local/lib/python2.7/site-packages/easy-install.pth.dist" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- lib/python2.7/site-packages/easy-install.pth.dist lib/python2.7/site-packages/easy-install.pth
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi


script:
  case "lib/python2.7/site-packages/easy-install.pth.dist" in
    /*) sample_file="lib/python2.7/site-packages/easy-install.pth.dist" ;;
    *) sample_file="/usr/local/lib/python2.7/site-packages/easy-install.pth.dist" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- lib/python2.7/site-packages/easy-install.pth.dist lib/python2.7/site-packages/easy-install.pth
    if [ $# -eq 2 ]; then
        set -- lib/python2.7/site-packages/easy-install.pth.dist lib/python2.7/site-packages/easy-install.pth
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi


script:
  case "etc/suricata/classification.config.sample" in
    /*) sample_file="etc/suricata/classification.config.sample" ;;
    *) sample_file="/usr/local/etc/suricata/classification.config.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/suricata/classification.config.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/suricata/reference.config.sample" in
    /*) sample_file="etc/suricata/reference.config.sample" ;;
    *) sample_file="/usr/local/etc/suricata/reference.config.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/suricata/reference.config.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/suricata/suricata.yaml.sample" in
    /*) sample_file="etc/suricata/suricata.yaml.sample" ;;
    *) sample_file="/usr/local/etc/suricata/suricata.yaml.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/suricata/suricata.yaml.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/suricata/threshold.config.sample" in
    /*) sample_file="etc/suricata/threshold.config.sample" ;;
    *) sample_file="/usr/local/etc/suricata/threshold.config.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/suricata/threshold.config.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
  /usr/sbin/service ldconfig restart > /dev/null


script:
  case "etc/suricata/classification.config.sample" in
    /*) sample_file="etc/suricata/classification.config.sample" ;;
    *) sample_file="/usr/local/etc/suricata/classification.config.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/suricata/classification.config.sample
    if [ $# -eq 2 ]; then
        set -- etc/suricata/classification.config.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/suricata/reference.config.sample" in
    /*) sample_file="etc/suricata/reference.config.sample" ;;
    *) sample_file="/usr/local/etc/suricata/reference.config.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/suricata/reference.config.sample
    if [ $# -eq 2 ]; then
        set -- etc/suricata/reference.config.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/suricata/suricata.yaml.sample" in
    /*) sample_file="etc/suricata/suricata.yaml.sample" ;;
    *) sample_file="/usr/local/etc/suricata/suricata.yaml.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/suricata/suricata.yaml.sample
    if [ $# -eq 2 ]; then
        set -- etc/suricata/suricata.yaml.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/suricata/threshold.config.sample" in
    /*) sample_file="etc/suricata/threshold.config.sample" ;;
    *) sample_file="/usr/local/etc/suricata/threshold.config.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/suricata/threshold.config.sample
    if [ $# -eq 2 ]; then
        set -- etc/suricata/threshold.config.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi


script:
  if [ -d /usr/local/etc/suricata ]; then echo "==> If you are permanently removing this port, run ``rm -rf ${PKG_PREFIX}/etc/suricata`` to remove configuration files."; fi
  /usr/sbin/service ldconfig restart > /dev/null


script:
  case "etc/scl.conf.sample" in
    /*) sample_file="etc/scl.conf.sample" ;;
    *) sample_file="/usr/local/etc/scl.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/scl.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "etc/syslog-ng.conf.sample" in
    /*) sample_file="etc/syslog-ng.conf.sample" ;;
    *) sample_file="/usr/local/etc/syslog-ng.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/syslog-ng.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
  /usr/sbin/service ldconfig restart > /dev/null


script:
  case "etc/scl.conf.sample" in
    /*) sample_file="etc/scl.conf.sample" ;;
    *) sample_file="/usr/local/etc/scl.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/scl.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/scl.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi
    case "etc/syslog-ng.conf.sample" in
    /*) sample_file="etc/syslog-ng.conf.sample" ;;
    *) sample_file="/usr/local/etc/syslog-ng.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/syslog-ng.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/syslog-ng.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi


script:
  if [ -n "${PKG_ROOTDIR}" ] && [ "${PKG_ROOTDIR}" != "/" ]; then
    PW="/usr/sbin/pw -R ${PKG_ROOTDIR}"
  else
    PW=/usr/sbin/pw
  fi
  echo "===> Creating groups."
  if ! ${PW} groupshow unbound >/dev/null 2>&1; then
    echo "Creating group 'unbound' with gid '59'."
    ${PW} groupadd unbound -g 59
  else
    echo "Using existing group 'unbound'."
  fi
  echo "===> Creating users"
  if ! ${PW} usershow unbound >/dev/null 2>&1; then
    echo "Creating user 'unbound' with uid '59'."
    ${PW} useradd unbound -u 59 -g 59  -c "Unbound DNS Resolver" -d /nonexistent -s /usr/sbin/nologin
  else
    echo "Using existing user 'unbound'."
  fi


script:
  case "etc/unbound/unbound.conf.sample" in
    /*) sample_file="etc/unbound/unbound.conf.sample" ;;
    *) sample_file="/usr/local/etc/unbound/unbound.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/unbound/unbound.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
  /usr/sbin/service ldconfig restart > /dev/null


script:
  case "etc/unbound/unbound.conf.sample" in
    /*) sample_file="etc/unbound/unbound.conf.sample" ;;
    *) sample_file="/usr/local/etc/unbound/unbound.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/unbound/unbound.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/unbound/unbound.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi


script:
  if [ -n "${PKG_ROOTDIR}" ] && [ "${PKG_ROOTDIR}" != "/" ]; then
    PW="/usr/sbin/pw -R ${PKG_ROOTDIR}"
  else
    PW=/usr/sbin/pw
  fi
  /usr/sbin/service ldconfig restart > /dev/null


script:
  case "etc/wpa_supplicant.conf.sample" in
    /*) sample_file="etc/wpa_supplicant.conf.sample" ;;
    *) sample_file="/usr/local/etc/wpa_supplicant.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/wpa_supplicant.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi


script:
  case "etc/wpa_supplicant.conf.sample" in
    /*) sample_file="etc/wpa_supplicant.conf.sample" ;;
    *) sample_file="/usr/local/etc/wpa_supplicant.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- etc/wpa_supplicant.conf.sample
    if [ $# -eq 2 ]; then
        set -- etc/wpa_supplicant.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    else
      echo "You may need to manually remove ${target_file} if it is no longer needed."
    fi


script:
  echo "Updating /etc/shells"
  cp /etc/shells /etc/shells.bak
  (grep -v /usr/local/sbin/opnsense-shell /etc/shells.bak; \
      echo /usr/local/sbin/opnsense-shell) > /etc/shells
  rm -f /etc/shells.bak
  cp /etc/shells /etc/shells.bak
  (grep -v /usr/local/sbin/opnsense-installer /etc/shells.bak; \
      echo /usr/local/sbin/opnsense-installer) > /etc/shells
  rm -f /etc/shells.bak

  echo "Registering root shell"
  pw usermod -n root -s /usr/local/sbin/opnsense-shell

  echo "Hooking into /etc/rc"
  cp /etc/rc /etc/rc.bak
  cat > /etc/rc <<EOF
  #!/bin/sh
  # OPNsense rc(8) hook was automatically installed:
  if [ -f /usr/local/etc/rc ]; then exec /usr/local/etc/rc; fi
  EOF
  cat /etc/rc.bak >> /etc/rc
  rm -f /etc/rc.bak

  echo "Hooking into /etc/rc.shutdown"
  cp /etc/rc.shutdown /etc/rc.shutdown.bak
  cat > /etc/rc.shutdown <<EOF
  #!/bin/sh
  # OPNsense rc(8) hook was automatically installed:
  if [ -f /usr/local/etc/rc.shutdown ]; then exec /usr/local/etc/rc.shutdown; fi
  EOF
  cat /etc/rc.shutdown.bak >> /etc/rc.shutdown
  rm -f /etc/rc.shutdown.bak

  /usr/local/etc/rc.d/configd start

  /usr/local/etc/rc.configure_firmware

  /usr/local/etc/rc.syshook update

  # create a unique timestamp for our asset caching
  touch /usr/local/opnsense/www/index.php
    case "/usr/local/etc/bogons.sample" in
    /*) sample_file="/usr/local/etc/bogons.sample" ;;
    *) sample_file="/usr/local//usr/local/etc/bogons.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- /usr/local/etc/bogons.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "/usr/local/etc/bogonsv6.sample" in
    /*) sample_file="/usr/local/etc/bogonsv6.sample" ;;
    *) sample_file="/usr/local//usr/local/etc/bogonsv6.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- /usr/local/etc/bogonsv6.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "/usr/local/etc/config.xml.sample" in
    /*) sample_file="/usr/local/etc/config.xml.sample" ;;
    *) sample_file="/usr/local//usr/local/etc/config.xml.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- /usr/local/etc/config.xml.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "/usr/local/etc/dh-parameters.1024.sample" in
    /*) sample_file="/usr/local/etc/dh-parameters.1024.sample" ;;
    *) sample_file="/usr/local//usr/local/etc/dh-parameters.1024.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- /usr/local/etc/dh-parameters.1024.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "/usr/local/etc/dh-parameters.2048.sample" in
    /*) sample_file="/usr/local/etc/dh-parameters.2048.sample" ;;
    *) sample_file="/usr/local//usr/local/etc/dh-parameters.2048.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- /usr/local/etc/dh-parameters.2048.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "/usr/local/etc/dh-parameters.4096.sample" in
    /*) sample_file="/usr/local/etc/dh-parameters.4096.sample" ;;
    *) sample_file="/usr/local//usr/local/etc/dh-parameters.4096.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- /usr/local/etc/dh-parameters.4096.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "/usr/local/opnsense/service/templates/OPNsense/IDS/custom.yaml.sample" in
    /*) sample_file="/usr/local/opnsense/service/templates/OPNsense/IDS/custom.yaml.sample" ;;
    *) sample_file="/usr/local//usr/local/opnsense/service/templates/OPNsense/IDS/custom.yaml.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- /usr/local/opnsense/service/templates/OPNsense/IDS/custom.yaml.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "/usr/local/etc/pkg/repos/FreeBSD.conf.sample" in
    /*) sample_file="/usr/local/etc/pkg/repos/FreeBSD.conf.sample" ;;
    *) sample_file="/usr/local//usr/local/etc/pkg/repos/FreeBSD.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- /usr/local/etc/pkg/repos/FreeBSD.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi
    case "/usr/local/etc/pkg/repos/OPNsense.conf.sample" in
    /*) sample_file="/usr/local/etc/pkg/repos/OPNsense.conf.sample" ;;
    *) sample_file="/usr/local//usr/local/etc/pkg/repos/OPNsense.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- /usr/local/etc/pkg/repos/OPNsense.conf.sample
    if [ $# -eq 2 ]; then
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if ! [ -f "${target_file}" ]; then
      /bin/cp -p "${sample_file}" "${target_file}"
    fi


script:
  /usr/local/etc/rc.d/configd stop

  echo "Resetting root shell"
  pw usermod -n root -s /bin/csh

  echo "Updating /etc/shells"
  cp /etc/shells /etc/shells.bak
  (grep -v /usr/local/sbin/opnsense-shell /etc/shells.bak) > /etc/shells
  rm -f /etc/shells.bak
  cp /etc/shells /etc/shells.bak
  (grep -v /usr/local/sbin/opnsense-installer /etc/shells.bak) > /etc/shells
  rm -f /etc/shells.bak

  echo "Unhooking from /etc/rc"
  cp /etc/rc /etc/rc.bak
  tail -n +4 /etc/rc.bak > /etc/rc
  rm -f /etc/rc.bak

  echo "Unhooking from /etc/rc.shutdown"
  cp /etc/rc.shutdown /etc/rc.shutdown.bak
  tail -n +4 /etc/rc.shutdown.bak > /etc/rc.shutdown
  rm -f /etc/rc.shutdown.bak
    case "/usr/local/etc/bogons.sample" in
    /*) sample_file="/usr/local/etc/bogons.sample" ;;
    *) sample_file="/usr/local//usr/local/etc/bogons.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- /usr/local/etc/bogons.sample
    if [ $# -eq 2 ]; then
        set -- /usr/local/etc/bogons.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    fi
    case "/usr/local/etc/bogonsv6.sample" in
    /*) sample_file="/usr/local/etc/bogonsv6.sample" ;;
    *) sample_file="/usr/local//usr/local/etc/bogonsv6.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- /usr/local/etc/bogonsv6.sample
    if [ $# -eq 2 ]; then
        set -- /usr/local/etc/bogonsv6.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    fi
    case "/usr/local/etc/config.xml.sample" in
    /*) sample_file="/usr/local/etc/config.xml.sample" ;;
    *) sample_file="/usr/local//usr/local/etc/config.xml.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- /usr/local/etc/config.xml.sample
    if [ $# -eq 2 ]; then
        set -- /usr/local/etc/config.xml.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    fi
    case "/usr/local/etc/dh-parameters.1024.sample" in
    /*) sample_file="/usr/local/etc/dh-parameters.1024.sample" ;;
    *) sample_file="/usr/local//usr/local/etc/dh-parameters.1024.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- /usr/local/etc/dh-parameters.1024.sample
    if [ $# -eq 2 ]; then
        set -- /usr/local/etc/dh-parameters.1024.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    fi
    case "/usr/local/etc/dh-parameters.2048.sample" in
    /*) sample_file="/usr/local/etc/dh-parameters.2048.sample" ;;
    *) sample_file="/usr/local//usr/local/etc/dh-parameters.2048.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- /usr/local/etc/dh-parameters.2048.sample
    if [ $# -eq 2 ]; then
        set -- /usr/local/etc/dh-parameters.2048.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    fi
    case "/usr/local/etc/dh-parameters.4096.sample" in
    /*) sample_file="/usr/local/etc/dh-parameters.4096.sample" ;;
    *) sample_file="/usr/local//usr/local/etc/dh-parameters.4096.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- /usr/local/etc/dh-parameters.4096.sample
    if [ $# -eq 2 ]; then
        set -- /usr/local/etc/dh-parameters.4096.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    fi
    case "/usr/local/opnsense/service/templates/OPNsense/IDS/custom.yaml.sample" in
    /*) sample_file="/usr/local/opnsense/service/templates/OPNsense/IDS/custom.yaml.sample" ;;
    *) sample_file="/usr/local//usr/local/opnsense/service/templates/OPNsense/IDS/custom.yaml.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- /usr/local/opnsense/service/templates/OPNsense/IDS/custom.yaml.sample
    if [ $# -eq 2 ]; then
        set -- /usr/local/opnsense/service/templates/OPNsense/IDS/custom.yaml.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    if cmp -s "${target_file}" "${sample_file}"; then
      rm -f "${target_file}"
    fi
    case "/usr/local/etc/pkg/repos/FreeBSD.conf.sample" in
    /*) sample_file="/usr/local/etc/pkg/repos/FreeBSD.conf.sample" ;;
    *) sample_file="/usr/local//usr/local/etc/pkg/repos/FreeBSD.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- /usr/local/etc/pkg/repos/FreeBSD.conf.sample
    if [ $# -eq 2 ]; then
        set -- /usr/local/etc/pkg/repos/FreeBSD.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    rm -f "${target_file}"
    case "/usr/local/etc/pkg/repos/OPNsense.conf.sample" in
    /*) sample_file="/usr/local/etc/pkg/repos/OPNsense.conf.sample" ;;
    *) sample_file="/usr/local//usr/local/etc/pkg/repos/OPNsense.conf.sample" ;;
    esac
    target_file="${sample_file%.sample}"
    set -- /usr/local/etc/pkg/repos/OPNsense.conf.sample
    if [ $# -eq 2 ]; then
        set -- /usr/local/etc/pkg/repos/OPNsense.conf.sample
        target_file=${2}
    fi
    case "${target_file}" in
    /*) target_file="${target_file}" ;;
    *) target_file="/usr/local/${target_file}" ;;
    esac
    rm -f "${target_file}"


