Skip to content
This repository has been archived by the owner on May 22, 2019. It is now read-only.

Commit

Permalink
lightdm-webkit2-greeter ported from lightdm-webkit-greeter by karasu
Browse files Browse the repository at this point in the history
First commit
  • Loading branch information
faidoc committed May 21, 2014
0 parents commit 23ec57c
Show file tree
Hide file tree
Showing 25 changed files with 3,006 additions and 0 deletions.
Empty file added AUTHORS
Empty file.
674 changes: 674 additions & 0 deletions COPYING

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
SUBDIRS = data po src themes

DISTCLEANFILES = \
Makefile.in \
aclocal.m4 \
configure \
config.h.in \
config.h \
depcomp \
gtk-doc.make \
install-sh \
missing \
mkinstalldirs \
omf.make \
xmldocs.make \
po/Makefile.in.in

EXTRA_DIST = \
autogen.sh \
lightdm-webkit2-greeter.doap
12 changes: 12 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Overview of changes in lightdm-webkit-greeter 0.1.2

* Fix files not being added to tarball
* Don't use AC_CONFIG_MACRO_DIR in configure.ac

Overview of changes in lightdm-webkit-greeter 0.1.1

* Update to work with newer LightDM

Overview of changes in lightdm-webkit-greeter 0.1.0

* Split out into separate module from lightdm
1 change: 1 addition & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://launchpad.net/lightdm-webkit-greeter
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Lightdm-webkit2-greeter
======================

lightdm-webkit2-greeter

Dependencies
============

- liblightdm-gobject-1 (lightdm in Arch, liblightdm-gobject-1 in Ubuntu)
- gtk+-3.0
- webkit2gtk-3.0 (webkitgtk in Arch, libwebkit2gtk in Ubuntu)
- dbus-glib-1



21 changes: 21 additions & 0 deletions autogen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/sh
# Run this to generate all the initial makefiles, etc.

srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.

PKG_NAME="lightdm-webkit2-greeter"
REQUIRED_AUTOMAKE_VERSION=1.7

(test -f $srcdir/configure.ac \
&& test -d $srcdir/src) || {
echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
echo " top-level lightdm-webkit2-greeter directory"
exit 1
}

which gnome-autogen.sh || {
echo "You need to install gnome-common from the GNOME CVS"
exit 1
}
USE_GNOME2_MACROS=1 USE_COMMON_DOC_BUILD=yes . gnome-autogen.sh
99 changes: 99 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
dnl Process this file with autoconf to produce a configure script.

AC_INIT(lightdm-webkit2-greeter, 0.1.2)
AC_SUBST(THEME_DIR)
AC_CONFIG_HEADER(config.h)

LT_INIT()

AM_INIT_AUTOMAKE
AM_PROG_CC_C_O
AM_MAINTAINER_MODE
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES(yes)])

GNOME_COMPILE_WARNINGS(maximum)

dnl ###########################################################################
dnl Dependencies
dnl ###########################################################################

PKG_CHECK_MODULES(GREETER, [
liblightdm-gobject-1
gtk+-3.0
webkit2gtk-3.0
dbus-glib-1
])

PKG_CHECK_MODULES(WEB_EXTENSION, [webkit2gtk-3.0 >= 2.0.0])
AC_SUBST(WEB_EXTENSION_CFLAGS)
AC_SUBST(WEB_EXTENSION_LIBS)

dnl ###########################################################################
dnl Configurable values
dnl ###########################################################################
THEME_DIR="/usr/share/lightdm-webkit/themes/"
AC_ARG_WITH(theme-dir,
AS_HELP_STRING(--with-theme-dir=<path>,
Theme directory to use for webkit themes),
if test x$withval != x; then
THEME_DIR="$withval"
fi
)
AC_SUBST(THEME_DIR)
AC_DEFINE_UNQUOTED(THEME_DIR, "$THEME_DIR", Theme Dir)

CONFIG_DIR="/etc/lightdm/"
AC_ARG_WITH(config-dir,
AS_HELP_STRING(--with-config-dir=<path>,
Configuration directory of lightdm),
if test x$withval != x; then
CONFIG_DIR="$withval"
fi
)
AC_SUBST(CONFIG_DIR)
AC_DEFINE_UNQUOTED(CONFIG_DIR, "$CONFIG_DIR", Config Dir)

DESKTOP_DIR="/usr/share/xgreeters/"
AC_ARG_WITH(desktop-dir,
AS_HELP_STRING(--with-desktop-dir=<path>,
Desktop directory of lightdm),
if test x$withval != x; then
DESKTOP_DIR="$withval"
fi
)
AC_SUBST(DESKTOP_DIR)
AC_DEFINE_UNQUOTED(DESKTOP_DIR, "$DESKTOP_DIR", Desktop Dir)

dnl ###########################################################################
dnl Internationalization
dnl ###########################################################################

IT_PROG_INTLTOOL(0.35.0)
GETTEXT_PACKAGE=lightdm-webkit2-greeter
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", Gettext package)

dnl ###########################################################################
dnl Files to generate
dnl ###########################################################################

AC_OUTPUT([
Makefile
data/Makefile
src/Makefile
po/Makefile.in
themes/Makefile
themes/webkit/Makefile
])

dnl ###########################################################################
dnl Summary
dnl ###########################################################################

echo "
Light Display Manager WebKit2 Greeter $VERSION
==========================================

prefix: $prefix
Theme directory: $THEME_DIR
Configuration directory: $CONFIG_DIR
"
9 changes: 9 additions & 0 deletions data/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
etcdir = /etc/lightdm/
etc_DATA = lightdm-webkit2-greeter.conf

desktopdir = $(DESKTOP_DIR)
desktop_DATA = lightdm-webkit2-greeter.desktop

EXTRA_DIST = \
$(etc_DATA) \
$(desktop_DATA)
30 changes: 30 additions & 0 deletions data/lightdm-webkit2-greeter.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#
# background = Background file to use, either an image path or a color (e.g. #772953)
# theme-name = GTK+ theme to use
# font-name = Font to use
# xft-antialias = Whether to antialias Xft fonts (true or false)
# xft-dpi = Resolution for Xft in dots per inch (e.g. 96)
# xft-hintstyle = What degree of hinting to use (hintnone, hintslight, hintmedium, or hintfull)
# xft-rgba = Type of subpixel antialiasing (none, rgb, bgr, vrgb or vbgr)
#
#[greeter]
#background=/usr/share/backgrounds/warty-final-ubuntu.png
#theme-name=Ambiance
#webkit-theme=webkit
#font-name=Ubuntu 11
#xft-antialias=true
#xft-dpi=96
#xft-hintstyle=slight
#xft-rgba=rgb


[greeter]
background=
theme-name=Clearlooks
webkit-theme=antergos
font-name=DejaVuSans 11
xft-antialias=true
xft-dpi=96
xft-hintstyle=slight
xft-rgba=rgb

6 changes: 6 additions & 0 deletions data/lightdm-webkit2-greeter.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[Desktop Entry]
Name=WebKit2 Greeter
Comment=WebKit2 Greeter
Exec=lightdm-webkit2-greeter
Type=Application
X-Ubuntu-Gettext-Domain=lightdm-webkit2-greeter
21 changes: 21 additions & 0 deletions lightdm-webkit2-greeter.doap
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<Project xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:gnome="http://api.gnome.org/doap-extensions#"
xmlns="http://usefulinc.com/ns/doap#">

<name xml:lang="en">lightdm-webkit2-greeter</name>
<shortdesc xml:lang="en">LightDM Webkit2 Greeter</shortdesc>
<homepage rdf:resource="https://launchpad.net/lightdm-webkit-greeter" />
<download-page rdf:resource="http://people.ubuntu.com/~robert-ancell/lightdm/" />
<bug-database rdf:resource="https://bugs.launchpad.net/lightdm-webkit-greeter" />
<category rdf:resource="http://api.gnome.org/doap-extensions#desktop" />

<maintainer>
<foaf:Person>
<foaf:name>Robert Ancell</foaf:name>
<foaf:mbox rdf:resource="mailto:[email protected]" />
<gnome:userid>rancell</gnome:userid>
</foaf:Person>
</maintainer>
</Project>
5 changes: 5 additions & 0 deletions lightdm.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

[SeatDefaults]
greeter-session=lightdm-webkit2-greeter
#greeter-session=lightdm-webkit-greeter
user-session=kde-plasma
4 changes: 4 additions & 0 deletions po/POTFILES.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# List of source files containing translatable strings.
# Please keep this file sorted alphabetically.
[encoding: UTF-8]
src/lightdm-webkit2-greeter.c
42 changes: 42 additions & 0 deletions src/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
webextension_LTLIBRARIES = liblightdm-webkit2-greeter-ext.la
webextensiondir = $(libdir)/lightdm-webkit2-greeter

liblightdm_webkit2_greeter_ext_la_SOURCES = \
lightdm-webkit2-greeter-ext.c

liblightdm_webkit2_greeter_ext_la_CFLAGS = \
$(GREETER_CFLAGS) \
$(WARN_CFLAGS) \
-DVERSION=\"$(VERSION)\" \
-DGETTEXT_PACKAGE=\"$(GETTEXT_PACKAGE)\" \
-DLOCALE_DIR=\"$(localedir)\" \
$(WEB_EXTENSION_CFLAGS)

liblightdm_webkit2_greeter_ext_la_LIBADD = \
$(WEB_EXTENSION_LIBS) \
$(GREETER_LIBS)

liblightdm_webkit2_greeter_ext_la_LDFLAGS = -module -avoid-version -no-undefined

greeter_PROGRAMS = lightdm-webkit2-greeter
greeterdir = $(bindir)

lightdm_webkit2_greeter_SOURCES = \
lightdm-webkit2-greeter.c

myapp_CPPFLAGS =

lightdm_webkit2_greeter_CFLAGS = \
$(GREETER_CFLAGS) \
$(WARN_CFLAGS) \
-DLIGHTDM_WEBKIT2_GREETER_EXTENSIONS_DIR=\""$(libdir)/lightdm-webkit2-greeter"\" \
-DVERSION=\"$(VERSION)\" \
-DGETTEXT_PACKAGE=\"$(GETTEXT_PACKAGE)\" \
-DLOCALE_DIR=\"$(localedir)\" \
-DBINARY=\"lightdm-webkit2-greeter\"

lightdm_webkit2_greeter_LDADD = \
$(GREETER_LIBS)

DISTCLEANFILES = \
Makefile.in
Loading

0 comments on commit 23ec57c

Please sign in to comment.