summaryrefslogtreecommitdiffstats
path: root/rules/pop3spam.make
blob: 75356d321ff13b6f12e7603ff189e0b0def30554 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# -*-makefile-*-
# $Id$
#
# Copyright (C) 2004 by Robert Schwebel
#               2008 by Marc Kleine-Budde <mkl@pengutronix.de>
#          
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_POP3SPAM) += pop3spam

#
# Paths and names
#
POP3SPAM_VERSION	:= 0.9
POP3SPAM		:= pop3spam-$(POP3SPAM_VERSION)
POP3SPAM_SUFFIX		:= tar.bz2
POP3SPAM_URL		:= $(PTXCONF_SETUP_SFMIRROR)/pop3spam/$(POP3SPAM).$(POP3SPAM_SUFFIX)
POP3SPAM_SOURCE		:= $(SRCDIR)/$(POP3SPAM).$(POP3SPAM_SUFFIX)
POP3SPAM_DIR		:= $(BUILDDIR)/$(POP3SPAM)


# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------

$(POP3SPAM_SOURCE):
	@$(call targetinfo)
	@$(call get, POP3SPAM)

# ----------------------------------------------------------------------------
# Extract
# ----------------------------------------------------------------------------

$(STATEDIR)/pop3spam.extract:
	@$(call targetinfo)
	@$(call clean, $(POP3SPAM_DIR))
	@$(call extract, POP3SPAM)
	@$(call patchin, POP3SPAM)
	@$(call touch)

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

pop3spam_prepare: $(STATEDIR)/pop3spam.prepare

POP3SPAM_PATH	:= PATH=$(CROSS_PATH)
POP3SPAM_ENV 	:= $(CROSS_ENV)

#
# autoconf
#
POP3SPAM_AUTOCONF := $(CROSS_AUTOCONF_USR)

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

$(STATEDIR)/pop3spam.targetinstall:
	@$(call targetinfo)

	@$(call install_init, pop3spam)
	@$(call install_fixup, pop3spam,PACKAGE,pop3spam)
	@$(call install_fixup, pop3spam,PRIORITY,optional)
	@$(call install_fixup, pop3spam,VERSION,$(POP3SPAM_VERSION))
	@$(call install_fixup, pop3spam,SECTION,base)
	@$(call install_fixup, pop3spam,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>")
	@$(call install_fixup, pop3spam,DEPENDS,)
	@$(call install_fixup, pop3spam,DESCRIPTION,missing)

	@$(call install_copy, pop3spam, 0, 0, 0755, $(POP3SPAM_DIR)/src/pop3spam, /usr/bin/pop3spam)

	@$(call install_finish, pop3spam)
	@$(call touch)

# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------

pop3spam_clean:
	rm -rf $(STATEDIR)/pop3spam.*
	rm -rf $(PKGDIR)/pop3spam_*
	rm -rf $(POP3SPAM_DIR)

# vim: syntax=make