---
name: oops
version: 1.5.24_12
origin: www/oops
comment: A caching web proxy server
arch: freebsd:9:x86:64
www: http://oops-cache.org/oops.eng/
maintainer: marck@FreeBSD.org
prefix: /usr/local
licenselogic: single
flatsize: 815704
desc: "Oops - caching proxy server.\nOops! is a proxy server; the main aims of its
  development being\nstable operation, service speed, main protocols support,\nmodularity,
  ease at use. What is one more server for when there is\nalready Squid? I personally
  was not satisfied with Squid on some\npoints, that is was why I wished to get rid
  of it. And that was done.\n\nBasic differences from Squid: \nEach request is served
  by a separate thread, which allows to use all\navailable processors on multiprocessor
  machine. \nCashed documents are stored in one or several big files. This makes\nit
  possible to remove from the operational system a load on operation\nwith directories
  and to speed up access to the documents, and to use\nraw-devices as a storage of
  cashed objects either. \nThe program modular structure provides extension of its
  function\nwithout any change of the source code. \nThe special attention was paid
  to the point of providing a stable,\ncontinuous, unbreakable work, easy and simple\nconfiguration/reconfiguration.
  Thus, for example, the reconfiguration\non the fly doesn't result in a breakaway
  of already established connections.\n\nWWW: http://oops-cache.org/oops.eng/\n"
deps:
  gigabase: {origin: databases/gigabase, version: 3.86_1}
categories: [www]
users: [oops]
groups: [nobody]
options: {GIGABASE: on, DB4: off, MYSQL: off, PGSQL: off, PCRE: off}
files:
  /usr/local/etc/oops/accel_maps.sample: 5d9f61b20fbf5c60abe4b8d1875610c60c1e8b15c845e8fb5c88d046e7729f1c
  /usr/local/etc/oops/acl_local_networks.sample: 84705aee1fcce168668793fd5ad31b16324533f2b94cfd955802bb66f5b3bc1d
  /usr/local/etc/oops/auth_template.html.sample: 1aeee03306e0e2572c68db93364cd339a39c0f2b7ae1aab03d6a3dfa9703db00
  /usr/local/etc/oops/err_template.html.sample: 7ce033d2ca617d206ce195906d287e68b250511eb340c712f8141410feca120d
  /usr/local/etc/oops/oops.cfg.sample: 026746efff04629f632bfe70bc9a7111729101311dd228ad7f81fa1dcf9dcf51
  /usr/local/etc/oops/passwd.sample: 2a43c5a4e142686f8556bb53fd3ac5a74e1d93be15533139832fcf54a66f7fd4
  /usr/local/etc/oops/redir_rules.sample: 4ff21e832ea96a9ea67b75c6846b94289cfe42f7d024bfbb8ea20bd7bc51c183
  /usr/local/etc/oops/redir_template.html.sample: db101b340e331654159581c967b1df318eeb5630e04e28daee7719545117c1fe
  /usr/local/etc/oops/select.sql.sample: 211da807f61d5472667c3addfbe19fd41055e8a8f920229193f99d496747d172
  /usr/local/etc/oops/tables/koi-alt.tab: 75b7be9d87cece4f361951c330d6de12986e23d386649c396ad501b25de97b82
  /usr/local/etc/oops/tables/koi-iso.tab: 017ff10808b7f55d877386a677675f4f73de6c3f97bd2f1dafb535312d7cfa57
  /usr/local/etc/oops/tables/koi-win.tab: d55b03d16461db5f6fe1b4cfb7c5206c749500ce30b49f523fbd2476f219bacc
  /usr/local/etc/rc.d/oops: 54014795e1b7c1df434a741bee0780363c5be5a571e31ee4d1ad91180abb8142
  /usr/local/libexec/oops/accel.so: aea46314c1a2d791f9bba89b7f807a2c4496795e831dac95ab22ec08fe63d064
  /usr/local/libexec/oops/berkeley_db_api.so: 0d9adbafd200502e1b1f44bf8e60bcdba9de71f2aee630f7c299681fcd5e701b
  /usr/local/libexec/oops/custom_log.so: a80e0f75d0f10924735e7d86938d782c1c13f839587a288282f05fee9f6d4f5a
  /usr/local/libexec/oops/err.so: a4cbfab94ec259b63508faeeec806092736f185d7a1a8d1cfad2125cc50b626b
  /usr/local/libexec/oops/fastredir.so: a6e2dfa449aa15488ddbf87bf4243a81829aa709d8a59e33b074fc81e8e80348
  /usr/local/libexec/oops/gigabase_db_api.so: 34ea6530e27e9962e4381cdc954b8ddf07ea355a4cf9a1108e98e784ffd1383b
  /usr/local/libexec/oops/lang.so: 176d75aa8092f4c357f54917ac390f6d89c1fb56ea44514dfcd700919e43326e
  /usr/local/libexec/oops/log_dummy.so: 1c6938e78c662ee5f871b8c42567fa0959faca390281263159acc490c62edee4
  /usr/local/libexec/oops/netflow.so: a6945ba8584f2bf91cbfdf7980a94c8d1ae73b6c70caf0d69c53a464c1e7d6fa
  /usr/local/libexec/oops/oopsctl_mod.so: 550b7c1ef70777e12d04fc3b0943b4e4674f557d0a36fee56b662d260edd943e
  /usr/local/libexec/oops/pam.so: 6169a91bf9d9544305b93f0db47d914e865c1924bc52c3e0874a0ff6f90bc09c
  /usr/local/libexec/oops/passwd_file.so: 5b29940dec149f99bf5cc779427c22c9a72f723c6e6efc10c1d4ff53d8590722
  /usr/local/libexec/oops/passwd_ldap.so: da728958c4468cff5d1a643baafe47b45318f6c58498bcbb122794905cf65530
  /usr/local/libexec/oops/passwd_mysql.so: f82df883526f57f7f21c34767350a9f4cc8eb1c20700fb435fb227603ba71155
  /usr/local/libexec/oops/passwd_pgsql.so: b9fc1926ac42cbb028d5a8e3324bfad27f87a6d4ce1b7477ef133ea6bf82e287
  /usr/local/libexec/oops/redir.so: cf1495f288705296e8986cfeab54102a8fc346f677a3560a16a6cc0fa7cea918
  /usr/local/libexec/oops/transparent.so: 677f25be1febb8fa11e12dc9c6213fe5d760f69622bed6726c3372c4b4974981
  /usr/local/libexec/oops/vary_header.so: bacf885671bd0d9ecfd21c69678c79764ad41d1ddf6253e67a89cfc9ea95db1a
  /usr/local/libexec/oops/wccp2.so: 458247c25181a6a8cc9f39246584e87e516f83b0156b6389551a64d880d8a47a
  /usr/local/libexec/oops/win_http.so: 034934d32a37d33883585432878c4b84f7bba031ad1bdb60b869d50dc7dfc843
  /usr/local/man/man8/oops.8.gz: 85229cf923d854346937c1638a49859854729c286d7cc9a6eb7a3e1011661d97
  /usr/local/man/man8/oopsctl.8.gz: 3e63f5315378210ed60961e780908577ccee0526efb9306c299be9b3bcc1cfdc
  /usr/local/sbin/oops: ab9c84d5a76536efef88a92be8bcb11688b24e3ce8269803cfb9117741509c4f
  /usr/local/sbin/oopsctl: 57c262801a4338f21fae61171d0d102471626002caf3f733b7dbb89a78cfe158
directories:
  /var/run/oops/: y
  /var/log/oops/: y
  /usr/local/oops/storages/: y
  /usr/local/oops/DB/: y
  /usr/local/oops/: y
  /usr/local/libexec/oops/: n
  /usr/local/etc/oops/tables/: n
  /usr/local/etc/oops/: y
scripts:
  post-install: |
    echo "===> Creating users and/or groups."
    if ! /usr/sbin/pw groupshow nobody >/dev/null 2>&1; then  echo "Creating group 'nobody' with gid '65534'.";  /usr/sbin/pw groupadd nobody -g 65534; else echo "Using existing group 'nobody'."; fi
    if ! /usr/sbin/pw usershow oops >/dev/null 2>&1; then  echo "Creating user 'oops' with uid '954'.";  /usr/sbin/pw useradd oops -u 954 -g 65534  -c "oops user" -d /nonexistent -s /usr/sbin/nologin;  else echo "Using existing user 'oops'."; fi
    if [ ! -f /usr/local/etc/oops/accel_maps ] ; then cp -p /usr/local/etc/oops/accel_maps.sample /usr/local/etc/oops/accel_maps; fi
    if [ ! -f /usr/local/etc/oops/acl_local_networks ] ; then cp -p /usr/local/etc/oops/acl_local_networks.sample /usr/local/etc/oops/acl_local_networks; fi
    if [ ! -f /usr/local/etc/oops/auth_template.html ] ; then cp -p /usr/local/etc/oops/auth_template.html.sample /usr/local/etc/oops/auth_template.html; fi
    if [ ! -f /usr/local/etc/oops/err_template.html ] ; then cp -p /usr/local/etc/oops/err_template.html.sample /usr/local/etc/oops/err_template.html; fi
    if [ ! -f /usr/local/etc/oops/oops.cfg ] ; then cp -p /usr/local/etc/oops/oops.cfg.sample /usr/local/etc/oops/oops.cfg; fi
    if [ ! -f /usr/local/etc/oops/passwd ] ; then cp -p /usr/local/etc/oops/passwd.sample /usr/local/etc/oops/passwd; fi
    if [ ! -f /usr/local/etc/oops/redir_rules ] ; then cp -p /usr/local/etc/oops/redir_rules.sample /usr/local/etc/oops/redir_rules; fi
    if [ ! -f /usr/local/etc/oops/redir_template.html ] ; then cp -p /usr/local/etc/oops/redir_template.html.sample /usr/local/etc/oops/redir_template.html; fi
    if [ ! -f /usr/local/etc/oops/select.sql ] ; then cp -p /usr/local/etc/oops/select.sql.sample /usr/local/etc/oops/select.sql; fi
    cd /
    cd /usr/local
  pre-deinstall: |
    if cmp -s /usr/local/etc/oops/accel_maps /usr/local/etc/oops/accel_maps.sample; then rm -f /usr/local/etc/oops/accel_maps; fi
    if cmp -s /usr/local/etc/oops/acl_local_networks /usr/local/etc/oops/acl_local_networks.sample; then rm -f /usr/local/etc/oops/acl_local_networks; fi
    if cmp -s /usr/local/etc/oops/auth_template.html /usr/local/etc/oops/auth_template.html.sample; then rm -f /usr/local/etc/oops/auth_template.html; fi
    if cmp -s /usr/local/etc/oops/err_template.html /usr/local/etc/oops/err_template.html.sample; then rm -f /usr/local/etc/oops/err_template.html; fi
    if cmp -s /usr/local/etc/oops/oops.cfg /usr/local/etc/oops/oops.cfg.sample; then rm -f /usr/local/etc/oops/oops.cfg; fi
    if cmp -s /usr/local/etc/oops/passwd /usr/local/etc/oops/passwd.sample; then rm -f /usr/local/etc/oops/passwd; fi
    if cmp -s /usr/local/etc/oops/redir_rules /usr/local/etc/oops/redir_rules.sample; then rm -f /usr/local/etc/oops/redir_rules; fi
    if cmp -s /usr/local/etc/oops/redir_template.html /usr/local/etc/oops/redir_template.html.sample; then rm -f /usr/local/etc/oops/redir_template.html; fi
    if cmp -s /usr/local/etc/oops/select.sql /usr/local/etc/oops/select.sql.sample; then rm -f /usr/local/etc/oops/select.sql; fi
    cd /
    rm -f /var/run/oops/oopsctl 2>/dev/null || true
    rm -f /var/run/oops/oops_statfile 2>/dev/null || true
    rm -f /var/run/oops/oops.pid 2>/dev/null || true
    if /usr/sbin/pw usershow oops >/dev/null 2>&1; then  echo "==> You should manually remove the \"oops\" user. "; fi
    cd /usr/local
  post-deinstall: |
    cd /
    cd /usr/local
message: "===>  CONFIGURATION NOTE:\n\tTo setup oops, you should check /usr/local/etc/oops/oops.cfg\n\t(a
  copy of /usr/local/etc/oops/oops.cfg.sample) as well as\n\tother files in /usr/local/etc/oops
  before running oops.\n\n\tIf you use storages, do not forget to format them before\n\tthe
  first use (oops -z -c /usr/local/etc/oops/oops.cfg).\n===>  BE CAREFULL HOW TO BOOT
  on 1.5.24 and above:\n\tTo run oops server from startup, add oops_enable=\"YES\"\n\tin
  your /etc/rc.conf.\n\n"
