v4.0.0-rc
This commit is contained in:
38
pkg/Makefile
Normal file
38
pkg/Makefile
Normal file
@@ -0,0 +1,38 @@
|
||||
include config.mk
|
||||
|
||||
all:
|
||||
@echo "No option specified."
|
||||
|
||||
help:
|
||||
@echo "NOTICE: This program should not be run directly."
|
||||
@echo "It is intended to be run within Glacier"
|
||||
@echo ""
|
||||
@echo "Possible options for make:"
|
||||
@echo "- buildpkg"
|
||||
@echo "- installpkg"
|
||||
@echo "- installpkg_s"
|
||||
@echo "- updatepkg"
|
||||
@echo "- updatepkg_s"
|
||||
@echo "- removepkg"
|
||||
@echo "- removepkg_s"
|
||||
|
||||
buildpkg:
|
||||
# Commands required to build the package
|
||||
|
||||
installpkg:
|
||||
# Commands required to install the package as USER
|
||||
|
||||
installpkg_s:
|
||||
# Commands required to install the package as SYSTEM
|
||||
|
||||
updatepkg:
|
||||
# Comands required to update the package as USER
|
||||
|
||||
updatepkg_s:
|
||||
# Commands required to update the package as SYSTEM
|
||||
|
||||
removepkg:
|
||||
# Commands required to remove the package as USER
|
||||
|
||||
removepkg_s:
|
||||
# Commands required to remove the package as SYSTEM
|
||||
3
pkg/clean_mkconfig.sh
Normal file
3
pkg/clean_mkconfig.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
rm -f config.mk
|
||||
9
pkg/create_mkconfig.sh
Normal file
9
pkg/create_mkconfig.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
. /etc/make.conf
|
||||
|
||||
echo "MAKEFLAGS = ${MAKEFLAGS}" >> config.mk
|
||||
echo "CFLAGS = ${CFLAGS}" >> config.mk
|
||||
echo "CXXFLAGS = ${CXXFLAGS}" >> config.mk
|
||||
echo "PREFIX = ${PREFIX}" >> /config.mk
|
||||
echo "ARCH = ${ARCH}" >> config.mk
|
||||
15
pkg/meta.cfg
Normal file
15
pkg/meta.cfg
Normal file
@@ -0,0 +1,15 @@
|
||||
#
|
||||
# meta.cfg
|
||||
#
|
||||
|
||||
# Information
|
||||
PACKAGE_NAME = "";
|
||||
PACKAGE_VER = "";
|
||||
PACKAGE_DESC = "";
|
||||
MAINTAINER = "";
|
||||
LICENSE = "";
|
||||
ARCH = "";
|
||||
|
||||
# Dependencies/Conflicts
|
||||
DEPENDS = [""];
|
||||
CONFLICTS = [""];
|
||||
1
pkg/pm
1
pkg/pm
Submodule pkg/pm deleted from b387d1d3bb
27
pkg/run-pkg.c
Normal file
27
pkg/run-pkg.c
Normal file
@@ -0,0 +1,27 @@
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
int
|
||||
run_make_task(char task[])
|
||||
{
|
||||
char *build_args[] = {
|
||||
"/bin/make",
|
||||
task,
|
||||
NULL
|
||||
};
|
||||
|
||||
execvp(
|
||||
"/bin/make",
|
||||
build_args
|
||||
);
|
||||
if (errno != 0 ) {
|
||||
return errno;
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
main()
|
||||
{
|
||||
run_make_task("help");
|
||||
}
|
||||
Reference in New Issue
Block a user