Implemented DESCR (defaulting to the existing one)
This commit is contained in:
parent
25728cbcef
commit
4ae13a9d5c
|
@ -20,6 +20,7 @@
|
||||||
DEVNULL="/dev/null"
|
DEVNULL="/dev/null"
|
||||||
EMAIL=
|
EMAIL=
|
||||||
ID="@ID@"
|
ID="@ID@"
|
||||||
|
LANG="C"
|
||||||
LICENSE=
|
LICENSE=
|
||||||
METHOD=
|
METHOD=
|
||||||
PACKAGE=
|
PACKAGE=
|
||||||
|
@ -189,10 +190,12 @@ _package_pkgsrc()
|
||||||
|
|
||||||
#DESCR
|
#DESCR
|
||||||
_info "Creating $pkgname/DESCR..."
|
_info "Creating $pkgname/DESCR..."
|
||||||
#FIXME really implement
|
_pkgsrc_descr > "$pkgname/DESCR"
|
||||||
cat > "$pkgname/DESCR" << EOF
|
if [ $? -ne 0 ]; then
|
||||||
DeforaOS $PACKAGE
|
$RM -r -- "$pkgname"
|
||||||
EOF
|
_error "Could not create $pkgname/DESCR"
|
||||||
|
return 2
|
||||||
|
fi
|
||||||
|
|
||||||
#Makefile
|
#Makefile
|
||||||
_info "Creating $pkgname/Makefile..."
|
_info "Creating $pkgname/Makefile..."
|
||||||
|
@ -238,6 +241,15 @@ EOF
|
||||||
#- commit
|
#- commit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_pkgsrc_descr()
|
||||||
|
{
|
||||||
|
if [ -f "$PKGSRC_ROOT/wip/$pkgname/DESCR" ]; then
|
||||||
|
cat "$PKGSRC_ROOT/wip/$pkgname/DESCR"
|
||||||
|
return $?
|
||||||
|
fi
|
||||||
|
echo "DeforaOS $PACKAGE"
|
||||||
|
}
|
||||||
|
|
||||||
_pkgsrc_distinfo()
|
_pkgsrc_distinfo()
|
||||||
{
|
{
|
||||||
cat << EOF
|
cat << EOF
|
||||||
|
@ -309,7 +321,6 @@ EOF
|
||||||
PKG_DESTDIR_SUPPORT= user-destdir
|
PKG_DESTDIR_SUPPORT= user-destdir
|
||||||
MAKE_FLAGS+= PREFIX=\${PREFIX}
|
MAKE_FLAGS+= PREFIX=\${PREFIX}
|
||||||
MAKE_FLAGS+= DESTDIR=\${DESTDIR}
|
MAKE_FLAGS+= DESTDIR=\${DESTDIR}
|
||||||
AUTO_MKDIRS= yes
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
#rc.d scripts
|
#rc.d scripts
|
||||||
|
|
Loading…
Reference in New Issue
Block a user