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
|
import os.path as P
from devtools.yamaker.fileutil import copy
from devtools.yamaker.project import GNUMakeNixProject
def post_install(self):
copy([P.join(self.dstdir, "include/")], P.join(self.dstdir, "include/sasl/"))
sasl = GNUMakeNixProject(
arcdir="contrib/libs/sasl",
nixattr="cyrus_sasl",
copy_sources=[
"include/*.h",
"lib/staticopen.h",
],
install_targets=[
"sasl2",
"plugin_common",
],
put={
"sasl2": ".",
},
put_with={
"sasl2": ["plugin_common"],
},
ignore_commands=[
"makemd5",
],
disable_includes=[
"des.h",
"door.h",
"gssapi/gssapi_ext.h",
"sioux.h",
"parse_cmd_line.h",
"sasl_anonymous_plugin_decl.h",
"sasl_crammd5_plugin_decl.h",
"sasl_cram_plugin_decl.h",
"sasl_digestmd5_plugin_decl.h",
"sasl_gs2_plugin_decl.h",
"sasl_gssapiv2_plugin_decl.h",
"sasl_login_plugin_decl.h",
"sasl_md5_plugin_decl.h",
"sasl_otp_plugin_decl.h",
"sasl_plain_plugin_decl.h",
"sasl_scram_plugin_decl.h",
],
platform_dispatchers=["config.h"],
post_install=post_install,
)
sasl.copy_top_sources_except |= {
"NTMakefile",
}
|