diff options
author | Reinhard Tartler <siretart@tauware.de> | 2011-10-10 17:43:39 +0200 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2011-10-10 17:43:39 +0200 |
commit | f4092abdf94af6a99aff944d6264bc1284e8bdd4 (patch) | |
tree | 2ac1c9cc16ceb93edb2c4382c088dac5aeafdf0f /nx-X11/programs/Xserver/Xprint/etc/init.d/Imakefile | |
parent | a840692edc9c6d19cd7c057f68e39c7d95eb767d (diff) | |
download | nx-libs-f4092abdf94af6a99aff944d6264bc1284e8bdd4.tar.gz nx-libs-f4092abdf94af6a99aff944d6264bc1284e8bdd4.tar.bz2 nx-libs-f4092abdf94af6a99aff944d6264bc1284e8bdd4.zip |
Imported nx-X11-3.1.0-1.tar.gznx-X11/3.1.0-1
Summary: Imported nx-X11-3.1.0-1.tar.gz
Keywords:
Imported nx-X11-3.1.0-1.tar.gz
into Git repository
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) */ + |