- Fix stopping via rc script

- Fix build with clang [1]
- Trim Makefile headers
- Bump PORTREVISION

PR:		ports/173852
Submitted by:	Douglas Carmichael <dcarmich@dcarmichael.net>
Approved by:	Henry Hu <henry.hu.sh@gmail.com> (maintainer)
Obtained by:	slim svn repository [1]
Feature safe:	yes
This commit is contained in:
Guido Falsi 2012-11-27 23:11:32 +00:00
parent d69d8d0394
commit 204912b0b7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=307866
3 changed files with 21 additions and 10 deletions

View File

@ -1,12 +1,9 @@
# New ports collection makefile for: slim # Created by: Tobias Roth <ports@fsck.ch>
# Date created: 8 Jan 2006
# Whom: Tobias Roth <ports@fsck.ch>
#
# $FreeBSD$ # $FreeBSD$
PORTNAME= slim PORTNAME= slim
PORTVERSION= 1.3.4 PORTVERSION= 1.3.4
PORTREVISION= 2 PORTREVISION= 3
CATEGORIES= x11 CATEGORIES= x11
MASTER_SITES= http://slim.berlios.de/releases/ MASTER_SITES= http://slim.berlios.de/releases/
@ -15,8 +12,8 @@ COMMENT= Graphical login manager for X11, derived from Login.app
LICENSE= GPLv2 LICENSE= GPLv2
LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg \ LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg \
ck-connector.0:${PORTSDIR}/sysutils/consolekit \ ck-connector:${PORTSDIR}/sysutils/consolekit \
png15:${PORTSDIR}/graphics/png \ png15:${PORTSDIR}/graphics/png \
freetype:${PORTSDIR}/print/freetype2 \ freetype:${PORTSDIR}/print/freetype2 \
fontconfig:${PORTSDIR}/x11-fonts/fontconfig fontconfig:${PORTSDIR}/x11-fonts/fontconfig

View File

@ -0,0 +1,15 @@
--- log.h.orig 2012-06-26 10:20:14.000000000 +0200
+++ log.h 2012-11-25 20:00:39.294546666 +0100
@@ -1,6 +1,12 @@
#ifndef _LOG_H_
#define _LOG_H_
+#ifdef USE_CONSOLEKIT
+#include "Ck.h"
+#endif
+#ifdef USE_CONSOLEKIT
+#include "PAM.h"
+#endif
#include "const.h"
#include <fstream>

View File

@ -61,9 +61,8 @@ slim_prestop ()
find_pidfile find_pidfile
xpid=`ps -axww | grep '/bin/[X] .* -auth /var/run/slim.auth'` xpid=`ps -axww | grep '/bin/[X] .* -auth /var/run/slim.auth' | grep -v grep | awk '{print $1};'`
xpid="${xpid## }" [ -n "$xpid" ] && kill $xpid
[ -n "$xpid" ] && kill ${xpid%% *}
} }
run_rc_command "$1" run_rc_command "$1"