summaryrefslogtreecommitdiff
path: root/packages/users/fpmake.pp
blob: a2eef4e4e25cccff4d9dd05ef7427279863c6558 (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
{$ifndef ALLPACKAGES}
{$mode objfpc}{$H+}
program fpmake;

uses fpmkunit;

Var
  P : TPackage;
  T : TTarget;
begin
  With Installer do
    begin
{$endif ALLPACKAGES}

    P:=AddPackage('users');
{$ifdef ALLPACKAGES}
    P.Directory:=ADirectory;
{$endif ALLPACKAGES}
    P.Version:='3.0.0';
    P.Author := 'Michael van Canneyt, Marco van de Voort';
    P.License := 'LGPL with modification, ';
    P.HomepageURL := 'www.freepascal.org';
    P.OSes := [freebsd,linux];
    P.Email := '';
    P.Description := 'Headers to access Unix groups and users.';
    P.NeedLibC:= false;

    P.SourcePath.Add('src');

    T:=P.Targets.AddUnit('crypth.pp',[linux]);
    T:=P.Targets.AddUnit('grp.pp');
    T:=P.Targets.AddUnit('pwd.pp');
    T:=P.Targets.AddUnit('shadow.pp',[linux]);
    T:=P.Targets.AddUnit('users.pp');
      with T.Dependencies do
        begin
          AddUnit('pwd');
          AddUnit('shadow',[linux]);
          AddUnit('grp');
        end;
    T.ResourceStrings := true;

    P.ExamplePath.Add('examples');
    P.Targets.AddExampleProgram('testpass.pp');
    P.Targets.AddExampleProgram('testpass2.pp');
    P.Targets.AddExampleProgram('testuser.pp');

{$ifndef ALLPACKAGES}
    Run;
    end;
end.
{$endif ALLPACKAGES}