---
name: boinc-astropulse
version: 6.01_5
origin: astro/boinc-astropulse
comment: Astropulse for BOINC
arch: freebsd:9:x86:64
www: http://setiathome.berkeley.edu/
maintainer: rene@FreeBSD.org
prefix: /usr/local
licenselogic: single
licenses:
- GPLv2
flatsize: 1881114
desc: |
  SETI - Search for Extra-Terrestrial Intelligence -- AstroPulse

  The project listens for broad-band, short-time pulses that might represent
  extraterrestial intelligence, or other phenomena such as rapidly rotating
  pulsars or exploding primordial black holes.

  The port automatically optimizes for the host CPU using the CPUTYPE
  variable in /etc/make.conf

  WWW: http://setiathome.berkeley.edu/
deps:
  xproto: {origin: x11/xproto, version: 7.0.24}
  xineramaproto: {origin: x11/xineramaproto, version: 1.2.1}
  xf86vidmodeproto: {origin: x11/xf86vidmodeproto, version: 2.3.1}
  xextproto: {origin: x11/xextproto, version: 7.2.1}
  xcb-util-renderutil: {origin: x11/xcb-util-renderutil, version: 0.3.8}
  xcb-util: {origin: x11/xcb-util, version: '0.3.9_1,1'}
  videoproto: {origin: x11/videoproto, version: 2.3.2}
  renderproto: {origin: x11/renderproto, version: 0.11.1}
  randrproto: {origin: x11/randrproto, version: 1.4.0}
  pixman: {origin: x11/pixman, version: 0.30.0}
  libxcb: {origin: x11/libxcb, version: 1.9.1}
  libXxf86vm: {origin: x11/libXxf86vm, version: 1.1.3}
  libXv: {origin: x11/libXv, version: '1.0.9,1'}
  libXrender: {origin: x11/libXrender, version: 0.9.8}
  libXrandr: {origin: x11/libXrandr, version: 1.4.1}
  libXinerama: {origin: x11/libXinerama, version: '1.1.3,1'}
  libXi: {origin: x11/libXi, version: '1.7.2,1'}
  libXfixes: {origin: x11/libXfixes, version: 5.0.1}
  libXext: {origin: x11/libXext, version: '1.3.2,1'}
  libXdmcp: {origin: x11/libXdmcp, version: 1.1.1}
  libXdamage: {origin: x11/libXdamage, version: 1.1.4}
  libXcursor: {origin: x11/libXcursor, version: 1.1.14}
  libXcomposite: {origin: x11/libXcomposite, version: '0.4.4,1'}
  libXau: {origin: x11/libXau, version: 1.0.8}
  libX11: {origin: x11/libX11, version: '1.6.1,1'}
  libSM: {origin: x11/libSM, version: '1.2.1,1'}
  libICE: {origin: x11/libICE, version: '1.0.8,1'}
  kbproto: {origin: x11/kbproto, version: 1.0.6}
  inputproto: {origin: x11/inputproto, version: 2.3}
  fixesproto: {origin: x11/fixesproto, version: 5.0}
  dri2proto: {origin: x11/dri2proto, version: 2.8}
  damageproto: {origin: x11/damageproto, version: 1.2.1}
  compositeproto: {origin: x11/compositeproto, version: 0.4.2}
  wxgtk2-common: {origin: x11-toolkits/wxgtk28-common, version: 2.8.12_2}
  wxgtk2: {origin: x11-toolkits/wxgtk28, version: 2.8.12_2}
  pangox-compat: {origin: x11-toolkits/pangox-compat, version: 0.0.2}
  pango: {origin: x11-toolkits/pango, version: 1.34.1_1}
  libXt: {origin: x11-toolkits/libXt, version: '1.1.4,1'}
  libXmu: {origin: x11-toolkits/libXmu, version: '1.1.1,1'}
  gtk: {origin: x11-toolkits/gtk20, version: 2.24.19_2}
  xorg-fonts-truetype: {origin: x11-fonts/xorg-fonts-truetype, version: 7.7_1}
  mkfontscale: {origin: x11-fonts/mkfontscale, version: 1.1.1}
  mkfontdir: {origin: x11-fonts/mkfontdir, version: 1.0.7}
  libfontenc: {origin: x11-fonts/libfontenc, version: 1.1.2}
  libXft: {origin: x11-fonts/libXft, version: 2.3.1}
  fontconfig: {origin: x11-fonts/fontconfig, version: '2.10.93,1'}
  font-util: {origin: x11-fonts/font-util, version: 1.3.0}
  font-misc-meltho: {origin: x11-fonts/font-misc-meltho, version: 1.0.3}
  font-misc-ethiopic: {origin: x11-fonts/font-misc-ethiopic, version: 1.0.3}
  font-bh-ttf: {origin: x11-fonts/font-bh-ttf, version: 1.0.3}
  encodings: {origin: x11-fonts/encodings, version: '1.0.4,1'}
  dejavu: {origin: x11-fonts/dejavu, version: 2.33}
  libxml2: {origin: textproc/libxml2, version: 2.8.0_2}
  expat: {origin: textproc/expat2, version: 2.1.0}
  polkit: {origin: sysutils/polkit, version: 0.105_1}
  gnome_subr: {origin: sysutils/gnome_subr, version: 1.0}
  ca_root_nss: {origin: security/ca_root_nss, version: 3.15.1}
  harfbuzz: {origin: print/harfbuzz, version: 0.9.19}
  freetype2: {origin: print/freetype2, version: 2.4.12_1}
  cups-client: {origin: print/cups-client, version: 1.5.4_1}
  boinc-client: {origin: net/boinc-client, version: 7.0.28_3}
  gstreamer-plugins: {origin: multimedia/gstreamer-plugins, version: '0.10.36_3,3'}
  gstreamer: {origin: multimedia/gstreamer, version: 0.10.36}
  shared-mime-info: {origin: misc/shared-mime-info, version: 1.1}
  pciids: {origin: misc/pciids, version: 20130818}
  hicolor-icon-theme: {origin: misc/hicolor-icon-theme, version: 0.12}
  gnomehier: {origin: misc/gnomehier, version: 3.0}
  fftw3-float: {origin: math/fftw3-float, version: 3.3.3_1}
  python27: {origin: lang/python27, version: 2.7.5_2}
  python2: {origin: lang/python2, version: 2}
  python: {origin: lang/python, version: '2.7,2'}
  perl: {origin: lang/perl5.14, version: 5.14.4}
  tiff: {origin: graphics/tiff, version: 4.0.3}
  png: {origin: graphics/png, version: 1.5.17}
  libdrm: {origin: graphics/libdrm, version: 2.4.46}
  libGLU: {origin: graphics/libGLU, version: 9.0.0}
  libGL: {origin: graphics/libGL, version: 8.0.5_4}
  jpeg: {origin: graphics/jpeg, version: 8_4}
  jbigkit: {origin: graphics/jbigkit, version: 1.6}
  jasper: {origin: graphics/jasper, version: 1.900.1_12}
  gtk-update-icon-cache: {origin: graphics/gtk-update-icon-cache, version: 2.24.19}
  graphite2: {origin: graphics/graphite2, version: 1.2.3}
  gdk-pixbuf2: {origin: graphics/gdk-pixbuf2, version: 2.28.2}
  freeglut: {origin: graphics/freeglut, version: 2.8.1}
  cairo: {origin: graphics/cairo, version: '1.10.2_5,2'}
  curl: {origin: ftp/curl, version: 7.31.0_1}
  pkgconf: {origin: devel/pkgconf, version: 0.9.2_1}
  pcre: {origin: devel/pcre, version: 8.33}
  orc: {origin: devel/orc, version: 0.4.17}
  libpthread-stubs: {origin: devel/libpthread-stubs, version: 0.3_3}
  libpciaccess: {origin: devel/libpciaccess, version: 0.13.2}
  libnotify: {origin: devel/libnotify, version: 0.7.5}
  libffi: {origin: devel/libffi, version: 3.0.13}
  libIDL: {origin: devel/libIDL, version: 0.8.14_1}
  icu: {origin: devel/icu, version: 50.1.2}
  gobject-introspection: {origin: devel/gobject-introspection, version: 1.36.0_2}
  glib: {origin: devel/glib20, version: 2.36.3}
  gettext: {origin: devel/gettext, version: 0.18.3}
  gconf2: {origin: devel/gconf2, version: 2.32.0_3}
  dconf: {origin: devel/dconf, version: 0.14.1}
  dbus-glib: {origin: devel/dbus-glib, version: 0.100.2}
  dbus: {origin: devel/dbus, version: 1.6.12}
  ORBit2: {origin: devel/ORBit2, version: 2.14.19}
  sqlite3: {origin: databases/sqlite3, version: 3.7.17_1}
  libiconv: {origin: converters/libiconv, version: 1.14_1}
  libmspack: {origin: archivers/libmspack, version: 0.3}
  atk: {origin: accessibility/atk, version: 2.8.0}
categories:
- astro
options: {X11: off}
files:
  /usr/local/share/licenses/boinc-astropulse-6.01_5/GPLv2: 32b1062f7da84967e7019d01ab805935caa7ab7321a7ced0e30ebe75e5df1670
  /usr/local/share/licenses/boinc-astropulse-6.01_5/LICENSE: 7e1394d03c5f275a402fe721ff1d1349449ea8602b52af954c76463afcdb6ef7
  /usr/local/share/licenses/boinc-astropulse-6.01_5/catalog.mk: f66b8bff1ad4fe36cde55de07f557a46ee6f8b15e4dfae700bf71823ee167b67
  /var/db/boinc/projects/setiathome.berkeley.edu/astropulse-6.1.amd64-portbld-freebsd: 8872cebfd946916e74013d98834522d089c606c02477c596fa6599cd2a7c9f4b
directories:
  /var/db/boinc/projects/setiathome.berkeley.edu/: y
  /usr/local/share/licenses/boinc-astropulse-6.01_5/: n
  /usr/local/share/licenses/: y
scripts:
  post-install: |
    cd /var/db/boinc/projects
    cd /usr/local
  pre-deinstall: |
    cd /var/db/boinc/projects
    cd /usr/local
  post-deinstall: |
    cd /var/db/boinc/projects
    cd /usr/local
  install: |
    #!/bin/sh

    # $FreeBSD: astro/boinc-astropulse/files/pkg-install.in 300895 2012-07-14 12:56:14Z beat $

    if [ "$2" != "POST-INSTALL" ]; then
        exit 0
    fi

    F=/var/db/boinc/projects/setiathome.berkeley.edu/app_info.xml

    if [ ! -f $F ]; then
        echo Creating new $F
        echo "<app_info>" > $F
        echo "</app_info>" >> $F
        chown boinc:nobody $F
    fi

    echo Adding astropulse_v6 lines to $F
    ed - $F <<EOF
    1a
    <app>
    <name>astropulse_v6</name>
    </app>
    <file_info>
    <name>astropulse-6.1.amd64-portbld-freebsd</name>
    <executable/>
    </file_info>
    <app_version>
    <app_name>astropulse_v6</app_name>
    <version_num>601</version_num>
    <file_ref>
    <file_name>astropulse-6.1.amd64-portbld-freebsd</file_name>
    <main_program/>
    </file_ref>
    </app_version>
    .
    w
    q
    EOF
  deinstall: |
    #!/bin/sh

    # $FreeBSD: astro/boinc-astropulse/files/pkg-deinstall.in 302381 2012-08-10 09:03:12Z rene $

    if [ "$2" != "POST-DEINSTALL" ]; then
        exit 0
    fi

    F=/var/db/boinc/projects/setiathome.berkeley.edu/app_info.xml
    echo Removing astropulse_v6 lines from $F

    l=`grep -n "<name>astropulse_v6</name>" $F | cut -f 1 -d :`
    if [ $? -ne 0 ]; then
        echo $F is corrupt
        exit 1
    fi
    l1=$(($l-1))
    l2=$(($l+13))
    sed -i.bak "${l1},${l2}d" $F # sed wants the braces
    rm $F.bak

    l=`wc -l $F | cut -f 1 -d / | sed 's/ //g'`
    if [ $l -eq 2 ]; then
        echo Removing empty $F
        rm $F
    fi
message: |
  *****************************************************************************
  ATTACHING PROJECT

  Just run boinc_gui (if installed), choose Attach, and follow instructions.
  Project URL is setiathome.berkeley.edu

  MANUAL INSTALLATION
   *) If this is your first time in any BOINC project, create a new account at
      http://setiathome.berkeley.edu/create_account_form.php

   *) Or get your account key at http://setiathome.berkeley.edu/get_passwd.php

   *) Attach to the project:
      cd /var/db/boinc
      boinccmd --project_attach setiathome.berkeley.edu <account key>
  *****************************************************************************
