99.ebuild

vsftpd:
cd /usr/src/init-files-1.0.1 #
mkdir vsftpd
cd vsftpd/
cp ../ftpd/* .
make clean
nano Makefile
which vsftpd
nano exec.c:
static char * const vsftpd[] = {“/usr/sbin/vsftpd”, “/etc/vsftpd/vsftpd.conf”, NULL};

nano stop.c:
_exit(kill_by_exec(SIGTERM, “/usr/sbin/vsftpd”, NULL)?EXIT_SUCCESS:EXIT_FAILURE);

make
make install
make clean
/etc/boot.d/vsftpd/exec
openrc (cat /etc/init.d/vsftpd)
ps axu|grep ftp
info execve

99.EBUILD:
mkdir 99-1
Makefile:
all: 99

%.o: %.c Makefile
@echo ” CC $<”
@$(CC) $(CFLAGS) -c -o $@ $<

99: 99.o Makefile
@echo ” LD $@”
@$(CC) $(LDFLAGS) -o $@ $<

install: 99
mkdir -p $(ROOT)/usr/bin
install -m 755 99 $(ROOT)/usr/bin/99

clean:
rm -f 99{,.o}

make
make install/ clean

tar -cvf 99-1.tar 99-1
bzip2 -9 99-1.tar
tar -xvf 99-1.tar.bz2
cp 99-1.tar.biz2 /usr/portage/distfiles/
mkdir 99 /usr/local/portage/games-misc/
cd 99

nano 99-1.ebuild :
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

inherit eutils toolchain-funcs flag-o-matic

DESCRIPTION=”Jack’s famous 9×9 table”
HOMEPAGE=”http://www.jkhu.com/99″
SRC_URI=”http://www.jkhu.com/${P}.tar.bz2″

LICENSE=”GPL-2″
SLOT=”0″
KEYWORDS=”~alpha amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86″

src_compile() {
emake || die
}

src_install() {
emake install ROOT=”${D}” || die
}

ebuild 99-1.ebuild digest
equery used 99
emerge -vp 99
emerge –search 99