---
name: pcfclock
version: 0.44_3
origin: sysutils/pcfclock
comment: Userland access to the pcfclock device
arch: freebsd:9:x86:64
www: http://www-stud.ims.uni-stuttgart.de/~voegelas/pcf.html
maintainer: frank@dynamical-systems.org
prefix: /usr/local
licenselogic: single
flatsize: 9916
desc: "This port provides the pcfdate utility which reads the time of day from a\npcfclock
  device, writes it to stdout or, optionally, sets the system time. \n\nYou can benefit
  from pcfdate in case that\n\n - your geographic location is in Central Europe within
  a radius of roughly\n   1500 km from the DCF77 transmitter near Frankfurt/Main,
  Germany,\n\n - you have the Conrad parallel port radio clock attached to your machine,\n\n
  - you have the pcfclock device driver enabled in your kernel configuration.\n\nThe
  primary use of pcfdate is to initialize the system time on boot. In its\nnormal
  operation the Conrad clock synchronizes with the transmitter once a\nday, and the
  time of day displayed refers to its internal quartz clock which,\nhowever, suffers
  from a considerable drift. The resulting accumulated error\ncan reach about 0.6
  sec after 24 hours. Combined with the clockspeed port\nthis can still be considered
  a useful initialization: sntpclock can later be\nused to gradually adjust the system
  time with the global network time very\neffectively within a few minutes.\n\nWWW:
  http://www-stud.ims.uni-stuttgart.de/~voegelas/pcf.html\n"
categories: [sysutils]
files:
  /usr/local/etc/rc.d/pcfdate: 2efd954f19f66bacb90ddd40efca296f2a04fb80351c151ba507cee27088d556
  /usr/local/man/man8/pcfdate.8.gz: 1702be906d5abcc0df638546ea45c59426cbcf0f433fb1c5941bd866d26c746e
  /usr/local/sbin/pcfdate: 979c8961595ebae2b9637d554787f3932631afef757e1566b95b9d71f1a1189b
scripts:
  post-install: |
    cd /usr/local
  pre-deinstall: |
    cd /usr/local
  post-deinstall: |
    cd /usr/local
  install: "#!/bin/sh\n\ncase $2 in\n    POST-INSTALL)\n    if [ ! -c /dev/pcfclock0
    ]; then\n\tif [ -x /dev/MAKEDEV ]; then\n\t    # FreeBSD 4.x\n\t    ( cd /dev
    && ./MAKEDEV pcfclock0 )\n\t    rv=$?\n\n\t    if [ ${rv} = 0 ]; then\n\t\techo
    \"$2: Device special file /dev/pcfclock0 created\"\n\t    else\n\t\techo \"$2:
    Unexpected failure creating /dev/pcfclock0\"\n\t\techo \"$2: Try 'cd /dev ; mknod
    pcfclock0 c 140 0 root:wheel'\"\n\t    fi\n\telse\n\t    # FreeBSD 5.x or later\n\t
    \   echo \"$2: No pcfclock device found\"\n\t    echo \"$2: Ensure to have pcfclock
    support enabled for your kernel\"\n\tfi\n    fi\n\n    ;;\nesac\n"
