diff --git a/src/template/.similar b/src/template/.similar
index 527e6a2893dc3531dd5fd3942c9ffbc9e026d8c0..e0e6b07a741016fbe6bb01092a30b0fe0e6c24d2 100644
--- a/src/template/.similar
+++ b/src/template/.similar
@@ -1,3 +1,4 @@
 sparc-sun-solaris2.5=sparc_solaris-gcc
 i386-unknown-freebsd3.0=freebsd
 alpha-dec-osf4.0=alpha
+i386-unknown-netbsd1.2.1=netbsd
diff --git a/src/template/netbsd b/src/template/netbsd
new file mode 100644
index 0000000000000000000000000000000000000000..e5f772e7329212f1e56b22f206953d7efb375c06
--- /dev/null
+++ b/src/template/netbsd
@@ -0,0 +1,9 @@
+AROPT:cq
+SHARED_LIB:-fpic -DPIC
+CFLAGS:-O2 -m486 -pipe
+SRCH_INC:/usr/local/include
+SRCH_LIB:/usr/local/lib
+USE_LOCALE:no
+DLSUFFIX:.so
+YFLAGS:-d
+YACC: