Changeset 2308


Ignore:
Timestamp:
01/10/2008 13:37:21 (3 years ago)
Author:
jamesog
Message:

Update FreeBSD port skeleton for 0.11rc2.
New features:

  • BDB is now autodetected for the client
  • Config dir is configurable via CONFDIR environment variable
  • Monthly periodic script to run store compare
  • Man pages!
Location:
box/james/FreeBSD
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • box/james/FreeBSD/Makefile

    r2078 r2308  
    77 
    88PORTNAME=       boxbackup 
    9 PORTVERSION=    0.11 
     9DISTVERSION=    0.11rc2 
    1010CATEGORIES=     sysutils 
    1111MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE} 
    1212MASTER_SITE_SUBDIR=${PORTNAME} 
     13PKGNAMESUFFIX=  ${CLIENT_OR_SERVER} 
    1314EXTRACT_SUFX=   .tgz 
    1415 
     
    1920GNU_CONFIGURE=  yes 
    2021USE_PERL5=      yes 
    21 USE_GCC=        3.2+ 
    22 USE_AUTOTOOLS=  autoconf:261 aclocal:19 autoheader:261 
     22USE_AUTOTOOLS=  autoconf:262 aclocal:19 autoheader:262 
    2323ACLOCAL_ARGS+=  -I ${WRKSRC}/infrastructure/m4 
    2424 
     
    5858ALL_TARGET+=    build-backup-client 
    5959INSTALL_TARGET+=install-backup-client 
     60MAN5+=          bbackupd.conf 
     61MAN8+=          bbackupd.8 bbackupctl.8 bbackupd-config.8 bbackupquery.8 
     62SUB_FILES+=     999.boxbackup 
    6063.else 
    6164PLIST_SUB+=     CLIENT="@comment " 
     
    6770ALL_TARGET+=    build-backup-server 
    6871INSTALL_TARGET+=install-backup-server 
     72MAN5+=          bbstored.conf raidfile.conf 
     73MAN8+=          bbstored.8 bbstoreaccounts.8 bbstored-certs.8 bbstored-config.8 raidfile-config.8 
    6974.else 
    7075PLIST_SUB+=     SERVER="@comment " 
     
    7479.if defined(WITHOUT_CLIENT) 
    7580CONFLICTS=      boxbackup-client-[0-9]* 
    76 PKGNAMESUFFIX=  -server 
     81CLIENT_OR_SERVER=-server 
    7782.elif defined(WITHOUT_SERVER) 
    7883CONFLICTS=      boxbackup-server-[0-9]* 
    79 PKGNAMESUFFIX=  -client 
     84CLIENT_OR_SERVER=-client 
    8085.endif 
    8186 
     
    9398                ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL 
    9499.endif 
     100 
     101do-install: 
     102        @(cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET}) 
     103.if !defined(WITHOUT_CLIENT) 
     104        @${MKDIR} ${PREFIX}/etc/periodic/monthly; \ 
     105         ${INSTALL_SCRIPT} ${WRKDIR}/999.boxbackup ${PREFIX}/etc/periodic/monthly 
     106.endif 
     107.for manpage in ${MAN5} 
     108        @${INSTALL_MAN} ${WRKSRC}/documentation/${manpage} ${PREFIX}/man/man5 
     109.endfor 
     110.for manpage in ${MAN8} 
     111        @${INSTALL_MAN} ${WRKSRC}/documentation/${manpage} ${PREFIX}/man/man8 
     112.endfor 
    95113 
    96114post-install: 
  • box/james/FreeBSD/files/pkg-message.client

    r2008 r2308  
    11 
    22To run bbackupd at startup, add bbackupd_enable="YES" to /etc/rc.conf 
    3 Please see http://www.fluffy.co.uk/boxbackup/client.html for client 
    4 configuration options 
     3Please read bbackupd-config(8) and bbackupd.conf(5) for client configuration 
     4options. 
     5 
     6If you wish to run an automatic store compare every month, add 
     7monthly_boxbackup_compare_enable="YES" to /etc/periodic.conf. 
     8By default this runs a quick compare. To change this, set 
     9monthly_boxbackup_compare_args as appropriate in /etc/periodic.conf. 
     10See bbackupquery(8). 
     11 
     12Warning: The monthly periodic script will cause the monthly periodic(8) run to 
     13take much longer than usual, depending on the size of your backup store. Please 
     14read the comments in the script if you wish to run this as a separate job. 
     15 
  • box/james/FreeBSD/files/pkg-message.server

    r2008 r2308  
    11 
    22To run bbstored at startup, add bbstored_enable="YES" to /etc/rc.conf 
    3 Please see http://www.fluffy.co.uk/boxbackup/server.html for server 
    4 configuration options 
     3Please read bbstored-config(8) and bbstored.conf(5) for server configuration 
     4options. 
  • box/james/FreeBSD/pkg-plist

    r2008 r2308  
    1 %%CLIENT%%bin/bbackupctl 
    2 %%CLIENT%%bin/bbackupd 
    3 %%CLIENT%%bin/bbackupd-config 
    4 %%CLIENT%%bin/bbackupquery 
    5 %%SERVER%%bin/bbstoreaccounts 
    6 %%SERVER%%bin/bbstored 
    7 %%SERVER%%bin/bbstored-certs 
    8 %%SERVER%%bin/bbstored-config 
    9 %%SERVER%%bin/raidfile-config 
     1%%CLIENT%%sbin/bbackupctl 
     2%%CLIENT%%sbin/bbackupd 
     3%%CLIENT%%sbin/bbackupd-config 
     4%%CLIENT%%sbin/bbackupquery 
     5%%CLIENT%%etc/periodic/monthly/999.boxbackup 
     6%%SERVER%%sbin/bbstoreaccounts 
     7%%SERVER%%sbin/bbstored 
     8%%SERVER%%sbin/bbstored-certs 
     9%%SERVER%%sbin/bbstored-config 
     10%%SERVER%%sbin/raidfile-config 
    1011%%CLIENT%%@exec mkdir -p -m 0700 %D/etc/box/bbackupd 
    1112%%SERVER%%@exec mkdir -p -m 0700 %D/etc/box/bbstored 
     13%%CLIENT%%@exec mkdir -p -m 0755 %D/etc/periodic/monthly 
    1214%%CLIENT%%@dirrmtry etc/box/bbackupd 
    1315%%SERVER%%@dirrmtry etc/box/bbstored 
     16%%CLIENT%%@dirrmtry etc/periodic/monthly 
     17%%CLIENT%%@dirrmtry etc/periodic 
    1418@dirrmtry etc/box 
Note: See TracChangeset for help on using the changeset viewer.