1 |
# mage-script app-dir/template.mage |
# mage-script app-dir/template.mage |
2 |
|
# |
3 |
|
# Usually you don't need generate mage files by yourself. |
4 |
|
# They can be autogenerated with smage2. |
5 |
|
# smage2 only-regen-tree /path/to/smage2/file |
6 |
|
# |
7 |
|
|
8 |
PKGNAME="template" |
PKGNAME="template" |
9 |
STATE="stable|unstable|old" |
STATE="stable|unstable|old" |
10 |
#PKGTYPE="sources|virtual" |
|
11 |
|
#PKGTYPE="virtual" |
12 |
|
|
13 |
DESCRIPTION="description" |
DESCRIPTION="description" |
14 |
HOMEPAGE="http://www.foobar.foo/" |
HOMEPAGE="http://www.foobar.foo/" |
17 |
SDEPEND=">= sys-dev/foo" |
SDEPEND=">= sys-dev/foo" |
18 |
PROVIDE="virtual/x11" |
PROVIDE="virtual/x11" |
19 |
|
|
20 |
preinstall() { |
preinstall() |
21 |
|
{ |
22 |
foo |
foo |
23 |
} |
} |
24 |
|
|
25 |
postinstall() { |
postinstall() |
26 |
|
{ |
27 |
foo |
foo |
28 |
} |
} |