Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 666672 - sys-process/cronie: Add support for legacy vixie-cron and crond init.d symlinks
Summary: sys-process/cronie: Add support for legacy vixie-cron and crond init.d symlinks
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Lars Wendler (Polynomial-C)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-21 05:26 UTC by Manuel Schmitt
Modified: 2018-09-21 07:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for legacy init.d names (patch,893 bytes, patch)
2018-09-21 05:26 UTC, Manuel Schmitt
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Manuel Schmitt 2018-09-21 05:26:17 UTC
Created attachment 547452 [details, diff]
Patch for legacy init.d names

As sys-process/vixie-cron is now obsolete, some users could be glad about legacy symlinks in /etc/init.d.

I propose to have a

    /etc/init.d/cronie -> /etc/init.d/crond
    /etc/init.d/cronie -> /etc/init.d/vixie-cron

if user wants.

What about

        --- a/sys-process/cronie/cronie-1.5.1-r1.ebuild
    +++ b/sys-process/cronie/cronie-1.5.1-r1.ebuild
    @@ -11,7 +11,7 @@ SRC_URI="https://github.com/cronie-crond/cronie/archive/${P}.tar.gz"
    
     LICENSE="ISC BSD BSD-2 GPL-2"
     KEYWORDS="alpha amd64 arm arm64 ~hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86"
    -IUSE="+anacron +inotify pam selinux"
    +IUSE="+anacron +inotify pam selinux legacy-init-crond legacy-init-vixiecron"
    
     DEPEND="pam? ( virtual/pam )
            anacron? ( !sys-process/anacron )"
    @@ -86,6 +86,16 @@ src_install() {
                    insinto /etc/cron.d
                    doins contrib/dailyjobs
            fi
    +
    +       if use legacy-init-crond ; then
    +               cd ${D}/etc/init.d
    +               ln -s cronie crond
    +       fi
    +
    +       if use legacy-init-vixiecron ; then
    +               cd ${D}/etc/init.d
    +               ln -s cronie vixie-cron
    +       fi
    
            einstalldocs
     }

Maybe the USE flag names are not ideal, but just a try.