Changeset 122


Ignore:
Timestamp:
03/26/09 21:43:50 (15 years ago)
Author:
nanardon
Message:
  • add control/md5sum containing md5sum of all files
  • rename configuration file to avoid later change in release
Location:
trunk
Files:
1 added
4 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/MANIFEST

    r116 r122  
    11Changes 
     2control/md5sum 
    23epoll.spec.in 
    34inc/Module/AutoInstall.pm 
     
    8485t/model_Vote.t 
    8586t/view_TT.t 
    86 vote.yml.example 
     87epoll.yml.example 
  • trunk/Makefile.PL

    r94 r122  
    1818package MY; 
    1919 
     20sub distdir { 
     21    my $dist = shift->SUPER::distdir(@_); 
     22    $dist =~ s/^(create_distdir :.*)/$1 md5sum/m; 
     23    $dist 
     24} 
     25 
     26sub dist_core { 
     27    my $dist = shift->SUPER::dist_core(@_); 
     28    $dist =~ s/^(\S.* :.*)/$1 md5sum/mg; 
     29    $dist 
     30} 
     31 
    2032sub postamble { 
    2133    return " 
     34 
     35md5sum: 
     36\tcat MANIFEST | sed 's/\\t.*//' | grep -v control/md5sum | xargs md5sum > control/md5sum 
     37 
     38checkmd5: 
     39\tmd5sum -c control/md5sum 
     40 
     41.PHONY: md5sum checkmd5 
     42 
    2243ChangeLog: 
    2344\tsvn log > ChangeLog 
  • trunk/epoll.spec.in

    r94 r122  
    2828make test 
    2929%endif 
     30make checkmd5 
    3031 
    3132%install 
    3233rm -rf %buildroot 
    3334%makeinstall_std 
     35 
     36mkdir -p %buildroot/etc 
     37install -m 700 epoll.yml.example %buildroot/etc/epoll.yml 
    3438 
    3539%clean 
     
    3943%defattr(-,root,root) 
    4044%doc Changes README 
     45%config(noreplace) %_sysconfdir/epoll.yml 
    4146%_bindir/* 
    4247%{_mandir}/man3/* 
  • trunk/lib/Vote.pm

    r118 r122  
    4040__PACKAGE__->config( 
    4141    'Plugin::ConfigLoader' => { 
    42         file => -f __PACKAGE__->path_to('vote.yml') 
    43             ? __PACKAGE__->path_to('vote.yml') 
    44             : '/etc/vote.yml', 
     42        file => -f __PACKAGE__->path_to('epoll.yml') 
     43            ? __PACKAGE__->path_to('epoll.yml') 
     44            : '/etc/epoll.yml', 
    4545    } 
    4646); 
Note: See TracChangeset for help on using the changeset viewer.