diff options
Diffstat (limited to 'nx-X11/programs/Xserver/Xprint/etc/init.d/Imakefile')
-rw-r--r-- | nx-X11/programs/Xserver/Xprint/etc/init.d/Imakefile | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/Xprint/etc/init.d/Imakefile b/nx-X11/programs/Xserver/Xprint/etc/init.d/Imakefile new file mode 100644 index 000000000..dedefb199 --- /dev/null +++ b/nx-X11/programs/Xserver/Xprint/etc/init.d/Imakefile @@ -0,0 +1,97 @@ +XCOMM $Xorg: Imakefile,v 1.2 2003/01/20 17:02:01 gisburn Exp $ + +all:: xprint + +#if BuildGISWxprintglue +XPCUSTOMGLUE=GISWxprintglue +#elif BuildGISWxprint +XPCUSTOMGLUE = GISWxprint +#elif BuildDebianXprintPackage +XPCUSTOMGLUE = DebianGlue +#else +XPCUSTOMGLUE = default +#endif + +#if defined(SunArchitecture) +OS_DEFINES = -DOS_SOLARIS +#elif defined(LinuxArchitecture) +OS_DEFINES = -DOS_LINUX +#elif defined(AIXArchitecture) +OS_DEFINES = -DOS_AIX +#else +OS_DEFINES = +#endif + +#if NothingOutsideProjectRoot +#define EtcDir ProjectRoot/etc +#else +#define EtcDir /etc +#endif + +ETCDIR = EtcDir + +MakeScriptFromCpp(xprint, -DDEF_XPCUSTOMGLUE=$(XPCUSTOMGLUE) $(OS_DEFINES) -DProjectRoot=$(PROJECTROOT)) + +#if defined(FreeBSDArchitecture) +InstallNamedProg(xprint,xprint,$(PROJECTROOT)/etc/rc.d) +#else +XCOMM Solaris, Linux, etc. +InstallNamedProg(xprint,xprint,$(ETCDIR)/init.d) +#endif + +XCOMM Create startup/shutdown links in /etc/init.d/ for Solaris +#if defined(SunArchitecture) && (OSMajorVersion > 4) + +#define InstallStartupLink(rcdir,script,linkname) \ + MakeDir($(DESTDIR)$(ETCDIR)/rcdir) ; \ + RemoveFile($(DESTDIR)$(ETCDIR)/rcdir/linkname) ; \ + ln -s ../init.d/script $(DESTDIR)$(ETCDIR)/rcdir/linkname + +install:: + InstallStartupLink(rc0.d,xprint,K38xprint) + InstallStartupLink(rc1.d,xprint,K38xprint) + InstallStartupLink(rc2.d,xprint,S81xprint) + InstallStartupLink(rcS.d,xprint,K38xprint) +#endif /* defined(SunArchitecture) && (OSMajorVersion > 4) */ + +XCOMM Create startup/shutdown links in /etc/init.d/ for Linux +#if defined(LinuxDistribution) +# if (LinuxDistribution == LinuxSuSE) || \ + (LinuxDistribution == LinuxDebian) || \ + (LinuxDistribution == LinuxUnknown) +XCOMM SuSE Linux(-like) + +#define InstallStartupLink(rcdir,script,linkname) \ + MakeDir($(DESTDIR)$(ETCDIR)/rc.d/rcdir) ; \ + ln -sf ../script $(DESTDIR)$(ETCDIR)/rc.d/rcdir/linkname + +install:: + echo "# Installing /etc/init.d links for SuSE Linux(-like)" + InstallStartupLink(rc2.d,xprint,K21xprint) + InstallStartupLink(rc2.d,xprint,S21xprint) + InstallStartupLink(rc3.d,xprint,K21xprint) + InstallStartupLink(rc3.d,xprint,S21xprint) + InstallStartupLink(rc5.d,xprint,K21xprint) + InstallStartupLink(rc5.d,xprint,S21xprint) +# elif LinuxDistribution == LinuxRedHat +XCOMM RedHat Linux(-like) + +#define InstallStartupLink(rcdir,script,linkname) \ + MakeDir($(DESTDIR)$(ETCDIR)/rcdir) ; \ + ln -sf ../init.d/script $(DESTDIR)$(ETCDIR)/rcdir/linkname + +install:: + echo "# Installing /etc/init.d links for RedHat Linux(-like)" + InstallStartupLink(rc0.d,xprint,K61xprint) + InstallStartupLink(rc1.d,xprint,K61xprint) + InstallStartupLink(rc2.d,xprint,S61xprint) + InstallStartupLink(rc3.d,xprint,S61xprint) + InstallStartupLink(rc4.d,xprint,S61xprint) + InstallStartupLink(rc5.d,xprint,S61xprint) + InstallStartupLink(rc6.d,xprint,K61xprint) +# else +install:: + echo "WARNING: No links for /etc/init.d/xprint set." +# endif /* LinuxDistribution == * */ +#endif /* defined(LinuxArchitecture) */ + |