Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37719036
en ru br
ALT Linux repos
S:0.6.4-alt1
5.0: 0.4-alt1
4.1: 0.4-alt0.M41.1
4.0: 0.4-alt0.M40.1

Group :: System/Base
RPM: indexhtml-common

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

pax_global_header00006660000000000000000000000064121106700410014502gustar00rootroot0000000000000052 comment=98a354b6421d97cdc69aa729ea9f62d15f9ada62
indexhtml-common-0.6.3/000075500000000000000000000000001211067004100147705ustar00rootroot00000000000000indexhtml-common-0.6.3/.gear/000075500000000000000000000000001211067004100157645ustar00rootroot00000000000000indexhtml-common-0.6.3/.gear/rules000064400000000000000000000000071211067004100170360ustar00rootroot00000000000000tar: .
indexhtml-common-0.6.3/CMakeLists.txt000064400000000000000000000012541211067004100175320ustar00rootroot00000000000000cmake_minimum_required(VERSION 2.6)
project(indexhtml-update NONE)

set(DATAROOT_DIR ${CMAKE_INSTALL_PREFIX}/share)
set(SBINDIR ${CMAKE_INSTALL_PREFIX}/sbin)
set(HTMLDOCDIR ${DATAROOT_DIR}/doc/HTML)
set(DEFAULTINDEXHTMLDIR ${DATAROOT_DIR}/doc/indexhtml CACHE PATH
"default indexhtml dir")
set(REDIRECT redirect.html)

configure_file(
${PROJECT_SOURCE_DIR}/${PROJECT_NAME}.in
${PROJECT_BINARY_DIR}/${PROJECT_NAME}
)

configure_file(
${PROJECT_SOURCE_DIR}/${REDIRECT}.in
${PROJECT_BINARY_DIR}/${REDIRECT}
)

install(PROGRAMS ${PROJECT_BINARY_DIR}/${PROJECT_NAME} DESTINATION ${SBINDIR})
install(FILES ${PROJECT_BINARY_DIR}/${REDIRECT} DESTINATION ${HTMLDOCDIR} RENAME
index.html)
indexhtml-common-0.6.3/indexhtml-common.spec000064400000000000000000000041061211067004100211270ustar00rootroot00000000000000%define _indexhtmldir %_defaultdocdir/indexhtml

Name: indexhtml-common
Version: 0.6.3
Release: alt1

Summary: indexhtml-common
License: %gpl3plus
Group: System/Base
Buildarch: noarch
Packager: ALT Docs Team <docs@packages.altlinux.org>

Source: %name-%version.tar

BuildRequires(pre): rpm-build-licenses
BuildRequires: cmake

%description
This package contains files required to integrate indexhtml packages.

%prep
%setup

%build
cmake -DCMAKE_INSTALL_PREFIX=%prefix -DDEFAULTINDEXHTMLDIR=%_indexhtmldir .
%make_build

%install
%makeinstall_std
mkdir -p %buildroot{%_indexhtmldir,%_sysconfdir/firsttime.d}
ln -s $(relative %_sbindir/indexhtml-update %_sysconfdir/firsttime.d/indexhtml) \
%buildroot%_sysconfdir/firsttime.d/indexhtml

%files
%_sbindir/*
%_defaultdocdir/HTML/*
%_indexhtmldir/
%_sysconfdir/firsttime.d/*

%changelog
* Tue Feb 19 2013 Michael Shigorin <mike@altlinux.org> 0.6.3-alt1
- indexhtml-update: avoid systemd dependency (see also #28528)

* Mon Feb 18 2013 Artem Zolochevskiy <azol@altlinux.ru> 0.6.2-alt1
- indexhtml-update adapted to work with /etc/locale.conf (closes: 28528)

* Thu Oct 29 2009 Artem Zolochevskiy <azol@altlinux.ru> 0.6.1-alt1
- indexhtml-update: better diagnostics, minor cleanup (thx Michael Shigorin)

* Mon Oct 26 2009 Artem Zolochevskiy <azol@altlinux.ru> 0.6-alt1
- indexhtml-update: treat first parameter as indexhtml dir
- add initial CMake build system

* Thu Oct 22 2009 Artem Zolochevskiy <azol@altlinux.ru> 0.5-alt1
- new indexhtmldir
- remove no more needed conflicts list

* Fri Mar 27 2009 Artem Zolochevskiy <azol@altlinux.ru> 0.4-alt1
- updated Conflicts list

* Fri Jan 23 2009 Artem Zolochevskiy <azol@altlinux.ru> 0.3-alt1
- fix quote use
- use stderr for debug output

* Wed Nov 26 2008 Artem Zolochevskiy <azol@altlinux.ru> 0.2-alt2
- updated Conflicts list

* Wed Sep 24 2008 Artem Zolochevskiy <azol@altlinux.ru> 0.2-alt1
- added firsttime.d sript (as symlink)

* Fri May 23 2008 Artem Zolochevskiy <azol@altlinux.ru> 0.1-alt2
- updated Conflicts list

* Tue May 20 2008 Artem Zolochevskiy <azol@altlinux.ru> 0.1-alt1
- initial build for Sisyphus

indexhtml-common-0.6.3/indexhtml-update.in000075500000000000000000000022231211067004100205760ustar00rootroot00000000000000#!/bin/sh

# indexhtml-update creates index.html as symlink to index-$lang.html in $INDEXHTMLDIR directory
# at least index-en.html is required
# $lang is taken from: /etc/sysconfig/i18n, $LANG, en

# default indexhtmldir
DEFAULTINDEXHTMLDIR=@DEFAULTINDEXHTMLDIR@
INDEXHTMLDIR=

fatal() {
echo "indexhtml-update: $*" >&2
exit 1
}

if [ -n "$1" ]; then
if [ -d "$1" -a -w "$1" ]; then
INDEXHTMLDIR="$1"
else
fatal "$1 not writeable"
fi
elif [ -d "$DEFAULTINDEXHTMLDIR" -a -w "$DEFAULTINDEXHTMLDIR" ]; then
INDEXHTMLDIR="$DEFAULTINDEXHTMLDIR"
else
fatal "$DEFAULTINDEXHTMLDIR (default) not writeable"
fi

if [ -z "$INDEXHTMLDIR" ]; then
fatal "no indexhtml directory available"
fi

# avoid systemd automatic dependency
LOCALECONF=/etc/locale.conf
if [ -e "$LOCALECONF" ]; then
[ -r "$LOCALECONF" ] && . "$LOCALECONF"
else
[ -r /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n
fi

lang=`echo "$LANG" |cut -b-2`
cd "$INDEXHTMLDIR"

if [ -f "index-$lang.html" ]; then
ln -sf "index-$lang.html" index.html
elif [ -f index-en.html ]; then
ln -sf index-en.html index.html
else
fatal "At least index-en.html should be present in $INDEXHTMLDIR"
fi

indexhtml-common-0.6.3/redirect.html.in000064400000000000000000000005171211067004100200670ustar00rootroot00000000000000<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="refresh" content="0; url=@DEFAULTINDEXHTMLDIR@/index.html">
<title>redirect</title>
</head>
<body>
<p>redirect</p>
</body>
</html>
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin