---
name: c-icap
version: 0.2.3,2
origin: www/c-icap
comment: ICAP server implementation
arch: freebsd:9:x86:64
www: http://c-icap.sourceforge.net/
maintainer: mm@FreeBSD.org
prefix: /usr/local
licenselogic: single
licenses: [LGPL21]
flatsize: 659474
desc: "From the c-icap homepage:\n\nc-icap is an implementation of an ICAP server.
  It can be used with HTTP\nproxies that support the ICAP protocol to implement content
  adaptation and\nfiltering services.\n\nMost of the commercial HTTP proxies must
  support the ICAP protocol. The open\nsource Squid 3.x proxy server supports it.
  \n\nMajor features:\n\n    basic C API for developing custom content adaptation
  and filtering services\n    plugins interface\n    LDAP integration\n    simple
  ICAP client API\n\nCurrently the following services have been implemented for the
  c-icap server:\n\n    Web antivirus service, using the clamav open-source antivirus
  engine\n    basic URL filtering service\n\nWWW: http://c-icap.sourceforge.net/\n"
categories: [www]
users: [c_icap]
groups: [c_icap]
options: {BDB: off, IPV6: on, LARGE_FILES: off, LDAP: off, PERL: off, POSIXSEM: off}
files:
  /usr/local/bin/c-icap: be61c5e5213a04ecfada8cc14e98fcd07cba7d08ef358bf771698c5e3c7939f3
  /usr/local/bin/c-icap-client: 0d9e2a08a8874222e5816d7fddfa75d6073303dc474cc2baaa1ce775590b6feb
  /usr/local/bin/c-icap-config: 770b1a08f14c5dd65082269d6dc0718ccdf1e383436f944e71e4e615910b8df1
  /usr/local/bin/c-icap-libicapapi-config: e2a49511f9f369025b9d2633524f8b11bde1cce8fcc6e7c0959ab9d436c45cb3
  /usr/local/bin/c-icap-stretch: 08ab11142c02b2292212be214f8da16ce8ccfe63a81d2d1d1297650cd69db580
  /usr/local/etc/c-icap/c-icap.conf.default: 873edb3747b7c8e94015d77ddd46746237990c827905fe8869c6fbbcce4791c3
  /usr/local/etc/c-icap/c-icap.magic.default: 5542f88e38395be9238043cd098f93127c81a3eee81a434fd7a6e1f8ce5f665c
  /usr/local/etc/rc.d/c-icap: 126e363c454ea39d86ec30a94d529b513a80b0dba6a0d4e121d48d8ae2586eed
  /usr/local/include/c_icap/access.h: c7ddc5af137f6c61dd68c186ccc8eaeac44586760e80d09546884227b7e7d232
  /usr/local/include/c_icap/acl.h: 632cb5c5ec9edcd3b8d5c843f0fc75f47a89fb1bebf0bb36f4eeea698ad52a21
  /usr/local/include/c_icap/array.h: bfc3a20f7268a2b4500bd0892fa7e6168817f6ec914fe21a137b0fccdcc3cee9
  /usr/local/include/c_icap/body.h: c092621b1ba1aa0b43112ce9eac12604c73a116a14fb1374115d6d3bced8bb10
  /usr/local/include/c_icap/c-icap-conf.h: 2e45c3d0da51c78c36ce4cfc84dd834e5b343d9fbe5750ea960931df80f1072c
  /usr/local/include/c_icap/c-icap.h: 8ee29559415ea89f6a2a60497af2c1f2e347b669767c7b381d087d0d524d2077
  /usr/local/include/c_icap/cache.h: 802ee400cead9a02274e1711b18083418f70050878b533556e8c9249dd122b6e
  /usr/local/include/c_icap/cfg_param.h: ddb04c5cc65cf9c5c8e2e84d7b0c6d865fcc2f5bf2603b0f778a3e099186c859
  /usr/local/include/c_icap/ci_threads.h: 3a59d2b5dfc53581c0d387866d39442afba6da3e8becaa9691f94c3ecad587fd
  /usr/local/include/c_icap/commands.h: 53ec435ab641650c7059c5c9db05ed244188e3bf6253ff7e632d20fe2cfca363
  /usr/local/include/c_icap/debug.h: fa3c8e1c1ce9f097b1a475a9dbd1bc394ebb07391a86f06f2465168a32049f8f
  /usr/local/include/c_icap/dlib.h: f232756b7894142be1926dc68d4346318ba5e52c6660c90f025c935d2fa46d9f
  /usr/local/include/c_icap/filetype.h: c0ba02adcb2ace30a57caaa4aee0afb65f0b939134deba946257b28b0635d93f
  /usr/local/include/c_icap/hash.h: a65b675c139f6cff885d6353c0d40e0ddb65edbc9ad914eaad4dc8be44788c3a
  /usr/local/include/c_icap/header.h: 4ad90ef84f46b43744528276d1fa87da2beb8ddda4cef96602f36ef1c1c61205
  /usr/local/include/c_icap/log.h: 04a6ffaa704845cfa8fb1ca7dc5ab9247297573d1c7252a2a76bc0750c20329e
  /usr/local/include/c_icap/lookup_table.h: 20619714d7c836cd9d343fb883b64a455f94ee56ad0e05cab9d8e2fe38661343
  /usr/local/include/c_icap/mem.h: edc34d12bd12a84112337d8110a6ad087b4298aa519bdcdd42e59f5052d639da
  /usr/local/include/c_icap/module.h: 4b6049c0a6600bdc505d5ccd7ed0e0744b2dc84f8d5152a5f1c22f4f3d790e18
  /usr/local/include/c_icap/net_io.h: 5a2199703e3aaf095ce76e06cff33b6e18be6bdb0dd04557de79d0df0ccb3351
  /usr/local/include/c_icap/proc_mutex.h: 050e52036dcaedb01885bf1162264e47c1ddc74f423da501b9f3f57b197f90fd
  /usr/local/include/c_icap/proc_threads_queues.h: 76d3e6d0549c045e50ff2b0568fe7c1cc1d36acf36fb7ff33bfb0f03a02794f1
  /usr/local/include/c_icap/request.h: 5f3016a6e6f63ee025b8585e974e991b92f3339b4f022a4478be228df5a35023
  /usr/local/include/c_icap/service.h: 84dda4784fa053fd9b12a8d32bec373426f0abca4b27719d2945209668cd28b1
  /usr/local/include/c_icap/shared_mem.h: fbb8275f92c1748f7d4c3233f205418356fb5af94df1a5b63fe7e2247ae401bd
  /usr/local/include/c_icap/simple_api.h: bb875e23a74d2fe535d1c0f35b1ebc94c4d51e40a95f297d1daf237b5443e021
  /usr/local/include/c_icap/stats.h: 874d1b74808d13e5dca8c52319e7e1513726490b697a5863708a14fa5867ae71
  /usr/local/include/c_icap/txtTemplate.h: 6ac0921bed45942d290aa8eede583d3fc9e97f7378ea0e0b075b4063f171b574
  /usr/local/include/c_icap/txt_format.h: 68ea40484df74f329cc10940c2bf0266e5638ae8eb6fd72e8677651e124e4342
  /usr/local/include/c_icap/types_ops.h: b8e603ee9b1202790a629194899a01b4c123c8535ec3a7b4cc43b1bd639f5676
  /usr/local/include/c_icap/util.h: 50d681afe09c31e16cb446d6eb56532d6957e41cf51deca92595a1e1357c0e02
  /usr/local/lib/c_icap/dnsbl_tables.a: 12791b2e1cdbfd953175755a970c2b1f580351640ebc63c25df03bf53c1b0161
  /usr/local/lib/c_icap/dnsbl_tables.la: 0d884721e65385008bf2befe7adfe34243cd47d733cbd4feb65a1c60787aec04
  /usr/local/lib/c_icap/dnsbl_tables.so: 8d33b40b6e455e01472c7bce451a20681c758942f04536ed793031a701639267
  /usr/local/lib/c_icap/srv_echo.a: 526613de820c012755f5ddcf3c3577442b14bde5235c291561b4d7427ff744fa
  /usr/local/lib/c_icap/srv_echo.la: 78e0b02fa46f41a4e09f0107a69ca4c03949e135174d38d1f49e43e3d57baa37
  /usr/local/lib/c_icap/srv_echo.so: 9e5c6e6c45a66b4dcf95546b4a4914657b5f231c96e582a0586d31a0819a7c2b
  /usr/local/lib/c_icap/srv_ex206.a: 9d73ec5abf34460b99c72a6e0e828e8b3533e6f3eae9acda7e3d75e3d63830b7
  /usr/local/lib/c_icap/srv_ex206.la: 662e8f5bd310ec075b91017fd97c682de28335cfec4ffba9f5bc833b48b41bf9
  /usr/local/lib/c_icap/srv_ex206.so: 14410b441473ecccda37fd10e4b2f9e336f710e6bbf6f11c36c90168a8485711
  /usr/local/lib/c_icap/sys_logger.a: e344468cb9c003752263ef5edaf95af670aca394f2eda082a134a82e94f4eae3
  /usr/local/lib/c_icap/sys_logger.la: c31e2858fa0960fb726edb59a54529973bf957e525b6b2041c17018f0e1f68bc
  /usr/local/lib/c_icap/sys_logger.so: 750c44af9dcf5e787700e9b94487d33559d4eeb2419acdf0141718f8b6eb0b78
  /usr/local/lib/libicapapi.la: 63321864df6cc69da4b07435f366ed7234267f88b4117dad2317bad6bc9d8cbf
  /usr/local/lib/libicapapi.so: '-'
  /usr/local/lib/libicapapi.so.2: 9d35a50afd39617f33a12d9d669d49beeb63cf460f025610933ca3625b14e982
  /usr/local/man/man8/c-icap-client.8.gz: d914da45c2e933fd2aeb60edb8fe1f2b92dbf50d3cf743e469350fac49c4ff31
  /usr/local/man/man8/c-icap-config.8.gz: 6a84f42ff295a788124b39a12a086b96e89574c598a2fa87afa54c5acde29f48
  /usr/local/man/man8/c-icap-libicapapi-config.8.gz: dcb07051cca83b936183ebb85068c60964f5fe6ee37883f0c1bd1d69434fbc53
  /usr/local/man/man8/c-icap-mkbdb.8.gz: 1ce5b5b9caebad6e7c757ecc8581296d6831ce2e3a2e623b2d3e1315c5153edf
  /usr/local/man/man8/c-icap-stretch.8.gz: 411399ebfcbb99df66c2bf229505c93a87d159d5d4eb98eb86e690518ffafbfe
  /usr/local/man/man8/c-icap.8.gz: 791a1ccbd0874f87b48b48c4d1e08f2ca4403e57276bdacc8cee2b650578afca
  /usr/local/share/licenses/c-icap-0.2.3,2/LGPL21: dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551
  /usr/local/share/licenses/c-icap-0.2.3,2/LICENSE: 771915ce001e64e6273d8877b28a1155e8c64a0053ed0b98d93dcb4562911c92
  /usr/local/share/licenses/c-icap-0.2.3,2/catalog.mk: 29b7cb124fa597ca2e1f4d0e24658932a6d15d3cca35b48015c0868103ce17a6
directories:
  /usr/local/share/licenses/c-icap-0.2.3,2/: n
  /usr/local/share/licenses/: y
  /usr/local/lib/c_icap/: n
  /usr/local/include/c_icap/: n
  /usr/local/etc/c-icap/: y
scripts:
  post-install: |
    echo "===> Creating users and/or groups."
    if ! /usr/sbin/pw groupshow c_icap >/dev/null 2>&1; then  echo "Creating group 'c_icap' with gid '959'.";  /usr/sbin/pw groupadd c_icap -g 959; else echo "Using existing group 'c_icap'."; fi
    if ! /usr/sbin/pw usershow c_icap >/dev/null 2>&1; then  echo "Creating user 'c_icap' with uid '959'.";  /usr/sbin/pw useradd c_icap -u 959 -g 959  -c "c-icap daemon" -d /var/empty -s /usr/sbin/nologin;  else echo "Using existing user 'c_icap'."; fi
    [ -f /usr/local/etc/c-icap/c-icap.conf ] || cp /usr/local/etc/c-icap/c-icap.conf.default /usr/local/etc/c-icap/c-icap.conf
    [ -f /usr/local/etc/c-icap/c-icap.magic ] || cp /usr/local/etc/c-icap/c-icap.magic.default /usr/local/etc/c-icap/c-icap.magic
    /sbin/ldconfig -m /usr/local/lib
    cd /usr/local
    cd /usr/local
  pre-deinstall: |
    if cmp -s /usr/local/etc/c-icap/c-icap.conf /usr/local/etc/c-icap/c-icap.conf.default; then rm -f /usr/local/etc/c-icap/c-icap.conf; fi
    if cmp -s /usr/local/etc/c-icap/c-icap.magic /usr/local/etc/c-icap/c-icap.magic.default; then rm -f /usr/local/etc/c-icap/c-icap.magic; fi
    /sbin/ldconfig -R
    if /usr/sbin/pw usershow c_icap >/dev/null 2>&1; then  echo "==> You should manually remove the \"c_icap\" user. "; fi
    cd /usr/local
    cd /usr/local
  post-deinstall: |
    cd /usr/local
    cd /usr/local
  install: "#!/bin/sh\n# $FreeBSD: ports/www/c-icap/files/pkg-install.in,v 1.8 2012/11/17
    06:02:29 svnexp Exp $\n\nDEST_DIR=${PKG_DESTDIR:-}\n\n_USER=c_icap\n_GROUP=c_icap\n\nLOG_DIR=$DEST_DIR/var/log/c-icap\nRUN_DIR=$DEST_DIR/var/run/c-icap\n\nif
    [ \"$2\" = \"POST-INSTALL\" ]; then\n\tif [ ! -d \"$LOG_DIR\" ]; then\n\t\tmkdir
    -p \"$LOG_DIR\" || exit 1\n\tfi\n\n\tif [ ! -d \"$RUN_DIR\" ]; then\n\t\tmkdir
    -p \"$RUN_DIR\" || exit 1\n\tfi\n\tchown -R \"$_USER:$_GROUP\" \"$LOG_DIR\" \"$RUN_DIR\"
    || exit 1\n\tchmod 0750 \"$LOG_DIR\" \"$RUN_DIR\" || exit 1\nfi\n\nexit 0\n"
  deinstall: "#!/bin/sh\n# $FreeBSD: ports/www/c-icap/files/pkg-deinstall.in,v 1.4
    2012/11/17 06:02:29 svnexp Exp $\n\nLOG_DIR=$DEST_DIR/var/log/c-icap\nRUN_DIR=$DEST_DIR/var/run/c-icap\n\nif
    [ \"$2\" != \"POST-DEINSTALL\" ]; then\n\texit 0\nfi\n\nif [ -d \"$LOG_DIR\" ];
    then\n\trmdir $LOG_DIR > /dev/null 2> /dev/null\nfi\n\nif [ -d \"$RUN_DIR\" ];
    then\n\trmdir $RUN_DIR > /dev/null 2> /dev/null\nfi\n\nif [ -d \"$LOG_DIR\" -o
    -d \"$RUN_DIR\" ]; then\n\techo \"You may want to delete the following directories:\"\n\tif
    [ -d \"$LOG_DIR\" ]; then\n\t\techo \"$LOG_DIR\"\n\tfi\n\tif [ -d \"$RUN_DIR\"
    ]; then\n\t\techo \"$RUN_DIR\"\n\tfi\nfi\n\nexit 0\n"
