1# $Id$ 2 3# Sympa - SYsteme de Multi-Postage Automatique 4# 5# Copyright (c) 1997, 1998, 1999 Institut Pasteur & Christophe Wolfhugel 6# Copyright (c) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 7# 2006, 2007, 2008, 2009, 2010, 2011 Comite Reseau des Universites 8# Copyright (c) 2011, 2012, 2013, 2014, 2015, 2016, 2017 GIP RENATER 9# Copyright 2018 The Sympa Community. See the AUTHORS.md file at the 10# top-level directory of this distribution and at 11# <https://github.com/sympa-community/sympa.git>. 12# 13# This program is free software; you can redistribute it and/or modify 14# it under the terms of the GNU General Public License as published by 15# the Free Software Foundation; either version 2 of the License, or 16# (at your option) any later version. 17# 18# This program is distributed in the hope that it will be useful, 19# but WITHOUT ANY WARRANTY; without even the implied warranty of 20# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21# GNU General Public License for more details. 22# 23# You should have received a copy of the GNU General Public License 24# along with this program. If not, see <http://www.gnu.org/licenses/>. 25 26if SYSV_INIT 27init_SCRIPTS = sympa 28endif 29 30if SYSTEMD_UNITS 31units_DATA = \ 32 sympa-archive.service \ 33 sympa-bounce.service \ 34 sympa-outgoing.service \ 35 sympa-task.service \ 36 sympa.service 37noinst_DATA = \ 38 sympasoap.service \ 39 wwsympa.service \ 40 sympa-tmpfiles.conf 41endif 42 43EXTRA_DIST = \ 44 sympa.in \ 45 sympa-archive.servicein \ 46 sympa-bounce.servicein \ 47 sympa-outgoing.servicein \ 48 sympa-task.servicein \ 49 sympa.servicein \ 50 sympasoap.servicein \ 51 wwsympa.servicein \ 52 sympa-tmpfiles.confin 53 54CLEANFILES = $(init_SCRIPTS) $(units_DATA) $(noinst_DATA) 55 56sympa: sympa.in Makefile 57 @rm -f $@ 58 $(AM_V_GEN)$(SED) \ 59 -e 's|--CONFIG--|$(CONFIG)|' \ 60 -e 's|--sbindir--|$(sbindir)|' \ 61 -e 's|--initdir--|$(initdir)|' \ 62 -e 's|--piddir--|$(piddir)|' \ 63 -e 's|--lockdir--|$(lockdir)|' \ 64 < $(srcdir)/$@.in > $@ 65 @chmod +x $@ 66 67.servicein.service: Makefile 68 @rm -f $@ 69 $(AM_V_GEN)$(SED) \ 70 -e 's|--USER--|$(USER)|' \ 71 -e 's|--GROUP--|$(GROUP)|' \ 72 -e 's|--execcgidir--|$(execcgidir)|' \ 73 -e 's|--piddir--|$(piddir)|' \ 74 -e 's|--sbindir--|$(sbindir)|' \ 75 < $(srcdir)/$@in > $@ 76 77.confin.conf: Makefile 78 @rm -f $@ 79 $(AM_V_GEN)$(SED) \ 80 -e 's|--USER--|$(USER)|' \ 81 -e 's|--GROUP--|$(GROUP)|' \ 82 -e 's|--piddir--|$(piddir)|' \ 83 < $(srcdir)/$@in > $@ 84 85