Tcron integrates 'cron' with ATX power-up capability. It can do multiple cron jobs with power-up/shutdown a day. Reproducible: Always Steps to Reproduce: 1.emerge tcron 2. 3. Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r1, 2.6.12-nitro5 i686) ================================================================= System uname: 2.6.12-nitro5 i686 AMD Athlon(tm) Gentoo Base System version 1.12.0_pre5 ccache version 2.4 [enabled] dev-lang/python: 2.3.4-r1, 2.4.1-r1 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=athlon-xp -mmmx -msse -m3dnow -mfpmath=sse -mno-push-args -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O3 -march=athlon-xp -mmmx -msse -m3dnow -mfpmath=sse -mno-push-args -pipe -fomit-frame-pointer -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo" LANG="ru_RU.UTF-8" LC_ALL="ru_RU.UTF-8" LINGUAS="ru" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/zugaina-portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowex X aac acpi acpi4linux alsa apm arts athena avi beepmp bidi bitmap-fonts bluetooth bmp bzip2 bzlib cairo ccache cdda cdrom codecs crypt curl curlwrappers dhcp divx4linux djbfft dnd dpms dv dvd dvdread ecc edl eds elf emboss encode esd exif faad fam fftw flood foomaticdb fortran ftp gdbm gif glut gpm gstreamer gtk gtk2 icq imagemagick imlib java jpeg kde kdeenablefinal lcms libg++ libwww lirc lzo lzw mad maildir md5sum mikmod mime mmx mmxext mng motif mp3 mpeg mplayer ncurses nls nptl nptlonly nvidia ogg oggvorbis opengl oss pam pdflib perl png python qt quicktime readline rss sdl slang spell sqlite sse ssl svg tcltk tcpd tetex theora tiff truetype truetype-fonts type1 type1-fonts unicode usb utf8 v4l v4l2 vorbis wmf xine xml2 xosd xpm xscreensaver xv xvid xvmc zlib linguas_ru userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS
Please use "New -> Gentoo Linux -> Component: Ebuilds" in future. Infrastructure is not the correct addressee.
Created attachment 66705 [details] Ebuild for tcron-0.5.0 Working ebuild. Not sure about deps needed. Also in install, seems to be code that might touch outside ${D} ... mkdir /var/spool/tcron, though it will never run since prefix=${D}/usr, which is never /usr/local. However, should be patched out? if [ /var/tmp/portage/tcron-0.5.0/image//usr = /usr/local ]; then \ chkconfig --add tcrond; \ if [ ! -d /var/spool/tcron ]; then mkdir /var/spool/tcron; fi; \ ldconfig; \ service tcrond restart; \ fi
Created attachment 66706 [details] Ebuild for tcron-0.5.0 Forgot LICENCE.
Created attachment 66946 [details] some workaround, fixing typos added KEYWORDS, patch for Makefile, fully rewrited init script (deps from vixie-cron)
Created attachment 66947 [details, diff] patch for Makefile removed unsupported actions in install section
Created attachment 66948 [details] init script as example taken vixie-cron init script
Comment on attachment 66946 [details] some workaround, fixing typos ># Copyright 1999-2005 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >inherit eutils > >DESCRIPTION="Tcron integrates 'cron' with ATX power-up capability" >HOMEPAGE="http://tcron.sourceforge.net" >SRC_URI="mirror://sourceforge/tcron/${P}.tar.bz2" >LICENSE="GPL-2" >SLOT="0" >IUSE="" >DEPEND="" >KEYWORDS="~x86" > >src_unpack() { > unpack ${A} > cd ${S} > epatch ${FILESDIR}/gentoo-makefile.patch >} > >src_install() { > > make \ > prefix=${D}/usr \ > mandir=${D}/usr/share/man \ > infodir=${D}/usr/share/info \ > libdir=${D}/usr/$(get_libdir) \ > sysconfdir=${D}/etc \ > install || die > > doinitd ${FILESDIR}/tcron > dodir /var/spool/tcron >} > >pkg_postinst() { > einfo 'Run "rc-update add tcrond default" to run tcron at startup.' > einfo 'Run "/etc/init.d tcrond start" to start service.' >}
Please, don't edit this inline. Atttach a *new* fixed ebuild and mark the previous ones as obsolete and reopen then.
Created attachment 66986 [details] finally, working ebuild without garbage hmmm... should tcron replace vixie-cron, e.g. provide virtual/cron?
You forgot to reopen.
Created attachment 79346 [details] ebuild with ~amd64 keyword, document creation, changed init.d to tcrond I added to the ebuild ~amd64 keyword (works perfectly well so far), dodoc statement as well as changed the init.d script name from tcron to tcrond because it was referred as such within the attached script.
*** Bug 122267 has been marked as a duplicate of this bug. ***
by way of fellow gentoo dev Jeremy Olexa (darkside): Hello, The Gentoo Team would like to firstly thank you for your ebuild submission. We also apologize for not being able to accommodate you in a timely manor. There are simply too many new packages. Allow me to use this opportunity to introduce you to Gentoo Sunrise. The sunrise overlay[1] is a overlay for Gentoo which we allow trusted users to commit to and all users can have ebuilds reviewed by Gentoo devs for entry into the overlay. So, the sunrise team is suggesting that you look into this and submit your ebuild to the overlay where even *you* can commit to. =) Because this is a mass message, we are also asking you to be patient with us. We anticipate a large number of requests in a short time. Thanks, On behalf of the Gentoo Sunrise Team, Jeremy. [1]: http://www.gentoo.org/proj/en/sunrise/ [2]: http://overlays.gentoo.org/proj/sunrise/wiki/SunriseFaq